-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
[build] Regenerate Ruby lockfile in rb:pin task #17768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -189,6 +189,8 @@ end | |
|
|
||
| desc 'Sync gem checksums from Gemfile.lock to MODULE.bazel (use force to re-download all)' | ||
| task :pin, [:force] do |_task, arguments| | ||
| Bazel.execute('run', [], '//rb:bundle-update') | ||
|
|
||
|
Comment on lines
+192
to
+193
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 3. Bundle-update executed twice rb:update runs //rb:bundle-update and then invokes rb:pin, which now runs //rb:bundle-update again, doubling the work (and network/CPU) in the update flow. This redundancy can significantly slow down rb:update with no functional benefit. Agent Prompt
|
||
| gemfile_lock = 'rb/Gemfile.lock' | ||
|
Comment on lines
190
to
194
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1. No tests for rb:pin The PR changes rb:pin behavior by running //rb:bundle-update, but no regression test is added to ensure this contract stays enforced. Without coverage, this bug fix can silently regress and break rb:pin/frozen-bundler workflows again. Agent Prompt
|
||
| module_bazel = 'MODULE.bazel' | ||
| force = arguments[:force] == 'force' | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. Pin upgrades gem versions
🐞 Bug≡ CorrectnessAgent Prompt
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools