Repository navigation
ci: pass --locked to the cargo commands of hermetic and pg-adapter - #202
Merged
Merged
Conversation
`lint` and `deny` already pass --locked. `hermetic` (nextest, the doctests, the OpenAPI tests) and `pg-adapter` (the Postgres and SMTP Docker suites) did not, so a Cargo.lock that no longer matches the manifests was rewritten on the runner. The tests then ran against dependencies nobody committed. Cargo has no config key or environment variable for --locked, so it goes on each command. Control, in a copy of the workspace whose Cargo.toml no longer matches Cargo.lock: - Each of the five commands stops before compiling, exit 101 or 102, naming the lock file. Cargo.lock is left as it was. - Without the flag, Cargo rewrites the copy's Cargo.lock. The contract cells and `mutants` build through scripts/contract.sh and scripts/mutants.sh, which developers run locally too. They are left alone. A change that makes Cargo.lock stale also changes a Cargo.toml or Cargo.lock. plan-ci.py runs `lint`, whose clippy passes --locked, for every such change. Refs: #49 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 16, 2026
Merged
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.
The first of the review's smaller CI fixes (
.agents/plans/cicd-review/PLAN.md, PR 4's list).What
hermeticandpg-adapternow pass--lockedto every cargo command:lintanddenyalready did. Before this, aCargo.lockthat no longer matched the manifests was rewritten on the runner, and the tests ran against dependencies nobody committed.Cargo has no config key or environment variable for
--locked(only--offlinehas one,net.offline), so the flag goes on each command.Control
I made a copy of the workspace and changed its
Cargo.tomlso that it no longer matchesCargo.lock:--locked: each of the five commands stops before compiling, with exit 101 or 102, and names the lock file.Cargo.lockis left as it was.Cargo.lock.Not changed
scripts/contract.shandscripts/mutants.sh, which the contract cells andmutantsrun and developers run locally. A change that makes the lock stale also changes aCargo.tomlorCargo.lock, andplan-ci.pyrunslint(clippy with--locked) for every such change.Docs:
cicd.md(the "still open" list) andrunning.md(the job table).Refs: #49
🤖 Generated with Claude Code