feat(pypi): make whl_library reproducible under pipstar (#3589)#3632
feat(pypi): make whl_library reproducible under pipstar (#3589)#3632rickeylev merged 1 commit intobazel-contrib:release/1.9from
Conversation
…b#3589) This is testing the new API to make use of remote caching mechanisms. Needs: bazelbuild/bazel#27634 --------- Co-authored-by: Richard Levasseur <rlevasseur@google.com> (cherry picked from commit 06aa36d)
Summary of ChangesHello @rickeylev, 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 enhances the 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
This pull request makes the whl_library repository rule reproducible when using the Starlark-based pipstar extractor. This is achieved by returning repo_metadata(reproducible = True) when the conditions are met, which allows Bazel to use remote caching for these repositories. The change is well-contained, guarded by existing flags and a check for Bazel version compatibility. The accompanying documentation update clearly explains this new capability. I've made one minor suggestion to align the documentation syntax with the existing convention in the repository. Otherwise, the changes look good.
| :::{versionchanged} 1.9.0 | ||
| The `whl_library` is marked as reproducible if using starlark to extract and parse the | ||
| wheel contents without building an `sdist` first. | ||
| ::: |
There was a problem hiding this comment.
For consistency with other documentation blocks in the repository (e.g., in python/private/pypi/attrs.bzl), please use four colons (::::) for the versionchanged directive instead of three.
| :::{versionchanged} 1.9.0 | |
| The `whl_library` is marked as reproducible if using starlark to extract and parse the | |
| wheel contents without building an `sdist` first. | |
| ::: | |
| ::::{versionchanged} 1.9.0 | |
| The `whl_library` is marked as reproducible if using starlark to extract and parse the | |
| wheel contents without building an `sdist` first. | |
| :::: |
This is testing the new API to make use of remote caching mechanisms.
Needs: bazelbuild/bazel#27634
(cherry picked from commit 06aa36d)