Repository navigation
rust: prevent stale Cargo.lock changing Cargo.lock.in - v1 - #16754
Open
jufajardini wants to merge 1 commit into
Open
jufajardini wants to merge 1 commit into
jufajardini wants to merge 1 commit into
Conversation
rust/Cargo.lock is generated from Cargo.lock.in by configure, but if Cargo.lock.in is changed and configure isn't re-run, nothing regenerates the Cargo.lock file. The build then uses the stale lock, and the copy-back added in 0e65ccc writes it over the committed Cargo.lock.in. This can lead to suricata-verify test failures, as updated dependency versions aren't used, and to the reverted Cargo.lock.in being committed by mistake. Make Cargo.lock a prerequisite of all-local so it is regenerated when Cargo.lock.in is newer, and preserve its timestamp on copy-back, so this doesn't happen on every build. Ticket: 9465
suricata-review-bot
left a comment
There was a problem hiding this comment.
AI-generated review.
Verdict: approve
No high- or medium-severity findings.
Automated at commit fa647970a2cf using Claude Code with claude-opus-5-5/xhigh. Run: 8cabdfe7cd42c25c.
|
Information: QA skipped due to no C or rust code changed detected. Set to force a run. Pipeline = code |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #16754 +/- ##
==========================================
- Coverage 83.98% 83.97% -0.02%
==========================================
Files 1008 1008
Lines 286748 286748
==========================================
- Hits 240832 240790 -42
- Misses 45916 45958 +42
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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.
rust/Cargo.lock is generated from Cargo.lock.in by configure, but if Cargo.lock.in is changed and configure isn't re-run, nothing regenerates the Cargo.lock file. The build then uses the stale lock, and the copy-back added in 0e65ccc writes it over the committed Cargo.lock.in.
This can lead to suricata-verify test failures, as updated dependency versions aren't used, and to the reverted Cargo.lock.in being committed by mistake.
Make Cargo.lock a prerequisite of all-local so it is regenerated when Cargo.lock.in is newer, and preserve its timestamp on copy-back, so this doesn't happen on every build.
Ticket: 9465
Link to ticket: https://redmine.openinfosecfoundation.org/issues/9465
Describe changes: