test(gazelle): Update remove_invalid_(binary|library) gazelle tests.#3601
test(gazelle): Update remove_invalid_(binary|library) gazelle tests.#3601dougthor42 wants to merge 1 commit intobazel-contrib:mainfrom
Conversation
These changes will make a little more sense in a followup PR that finishes the "delete invalid targets" work started in bazel-contrib#3046. In that PR, I pushed back on changes that resulted in py_test and py_library targets getting removed if they were invalid (see bazel-contrib#3046 (review) and bazel-contrib#3046 (comment)). This PR updates tests by adding some always-valid targets and does some light renaming of the targets.
Summary of ChangesHello @dougthor42, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request refines the Gazelle test suite for Python rules, specifically updating tests related to the removal of invalid build targets. The changes are a preparatory step for a subsequent PR that will expand the invalid target removal logic to encompass Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
The pull request updates the Gazelle integration tests for Python by adding valid targets and renaming existing ones in the remove_invalid_binary and remove_invalid_library test cases. These changes correctly set up the expected state for Gazelle's current behavior and prepare for future improvements in how invalid targets are handled. The modifications to the BUILD.in and BUILD.out files are consistent with Gazelle's rule generation and merging logic, ensuring that valid targets are maintained while invalid ones are correctly identified for removal.
Update
remove_invalid_(binary|library)gazelle tests.These changes will make a little more sense in a followup PR that finishes the "delete invalid targets" work started in #3046. In that PR, I pushed back on changes that would mean
py_testandpy_librarytargets got removed if they were invalid (see #3046 (review)).It's now time to fix that and make it so any invalid target, not just
py_binary, is removed see #3046 (comment)). That change will come in a followup PR.This PR updates tests by adding some always-valid targets and does some light renaming of the targets.