Repository navigation
chore(ci): lint and test the release configuration, and gate merges on it - #2606
Merged
Merged
Conversation
…n it Release binaries build --no-default-features plus mimalloc/ag-rledger, but every job that ran clippy or unit tests built --all-features, and the Slim Build job was not in the required `build` gate. It was red on main (no sccache installed for its cargo test step) while `build` stayed green. The slim job now runs clippy -D warnings and cargo test for rustledger in the release configuration and for rustledger-plugin, rustledger-importer and rustledger-loader in the feature sets that build gives them; installs sccache; has its own path filter (those crates' fixtures, the ratchet script, ci.yml); and is checked by `build` ahead of the should_build exit. Closes #2605 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
📊 Benchmark Results
vs base, measured in this run
A difference counts only when it clears the combined spread of the two measurements, per shape (2σ: What do these numbers mean?
|
It showed a red slim job turns build red (run 38147291713). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
Member
Author
Gate probeThe first push (
The probe is removed in the next commit. ( Review loop
The loop converged at round 2. Required checks are green on |
Contributor
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
The default bash -e has no pipefail, so tee hid a failing cargo test; only the result grep caught it, and a compile error read as "no release_build_ test ran". Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
This was referenced Oct 11, 2026
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.
What
Release binaries are built
--no-default-featuresplusmimalloc/ag-rledger(#2541). Every CI job that runs clippy or the unit tests builds--all-features, andSlim Build (no wasmtime), the only job that touches the release configuration, was not in the requiredbuildgate.It was in fact red on main when this PR was opened:
612e162f's run hasSlim Build (no wasmtime)= failure andbuild= success. The step #2593 added (cargo test ... release_build_) dies withcould not execute process `sccache ...`because the workflow setsRUSTC_WRAPPER=sccacheand this job never installed it. The earliercargo treestep never invokes the wrapper, which is why the job passed before.This PR changes
slim-build-no-wasmtimein.github/workflows/ci.yml:mozilla-actions/sccache-action, the same pin the other jobs use) and theclippycomponent. SetsRUST_MIN_STACKas thecijob does.--all-targets -- -D warnings:-p rustledger --no-default-features --features mimalloc,ag-rledger-p rustledger-plugin --no-default-features(no runtimes),-p rustledger-importer --no-default-features --features toml-config,-p rustledger-loader(defaults: nowasm-plugins/python-plugins).cargo testwith the same four package/feature sets.release_build_step, and makes it fail if norelease_build_test ran.should_buildOR a newslimfilter:crates/rustledger{,-loader,-plugin,-importer}/**(fixtures and snapshots, which are not*.rs),scripts/check-slim-no-wasmtime.sh, andci.ymlitself. Before, a change to the ratchet script or this workflow skipped it.build'sneeds. Its result is checked before theshould_buildearly exit, asvscode-extension's is, because a ci.yml-only PR runs it withshould_buildfalse. It must besuccessorskipped, andsuccesswhenevershould_buildis true.No Rust code changes were needed: every one of those configurations is clippy-clean and passes locally on main (#2593 already gated the 9 extract tests).
How tested
nix develop:-D warningsis clean for all four configurations.cargo test: rustledger slim has 533 lib + 11 ag-rledger + 28 rledger unit tests plus every integration binary passing, includingcli_commands_testwith 60. rustledger-plugin without default features: 115 + 189 + others. rustledger-importer withtoml-config: 227 + others. rustledger-loader at defaults: 123 + others. 0 failures.actionlint(nixpkgs): the same 10 findings on main and on this branch, all pre-existing shellcheck notes. Nothing new.d22aa069) adding a test that fails only withoutpython-plugin-wasm. The result is in the comment below. That commit is then reverted.Closes #2605
🤖 Generated with Claude Code
https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr