Repository navigation
fix(audit): make bundle:audit:update safe under concurrency - #58
Merged
Merged
Conversation
…UPDATE, tolerate failed update
This was referenced Nov 14, 2026
Coverage Report for CI Build 43567172506Coverage decreased (-0.3%) to 86.207%Details
Uncovered Changes
Coverage Regressions37 previously-covered lines in 5 files lost coverage.
Coverage Stats
💛 - Coveralls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #57
bundle:audit:updatenow holds a blockingflockon<advisory-db>.lock(next to the database), so concurrent processes wait instead of failing on the ref lock.KETTLE_DEV_SKIP_AUDIT_UPDATE(1/true/yes/on) skips only the update;bundle:auditstill runs and stays a default.kettle-release --helpnext toKETTLE_DEV_SKIP_BUNDLE_AUDIT; CHANGELOG updated.Verified: new specs for each behavior (lock held during update, waiter blocks, skip switch, non-fatal failure, fatal without DB); full suite 924 examples, 0 failures; rubocop-gradual clean. Not verified: a real multi-process run against the live ruby-advisory-db.