Repository navigation
fix(nix): skip the test suite in the release binary build (doCheck = false) - #1661
Merged
Merged
Conversation
…ck = false) The Nix release channel (Test nix run) builds rustledger from the flake and, via crane's default checkPhase, runs the full test suite. But the flake's srcFilter strips test fixtures (.bin fuzz corpora, spec/*.md, importer sample_stub) for caching, so fixture-dependent tests fail to compile — repeatedly breaking the Nix channel one fixture at a time (validation.md, then parser fuzz_regressions .bin, then the importer stub). Set doCheck = false on the rustledger crane build. The channel check only needs the binary to build and run (nix run … -- --version); tests run in CI on the full, unfiltered repo. Fixes the whole class rather than chasing each fixture. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Merged
Contributor
There was a problem hiding this comment.
Pull request overview
Disables running the Rust test suite during the Nix flake release binary build so nix run … -- --version doesn’t fail when srcFilter omits fixture files needed to compile some tests.
Changes:
- Set
doCheck = falsefor thecraneLib.buildPackagederivation that builds therustledgerbinary. - Add an explanatory comment documenting why tests are skipped for the release-channel build path.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+146
to
+152
| # Build the binary WITHOUT running the test suite. crane's | ||
| # `srcFilter` strips test fixtures (`.bin` fuzz corpora, | ||
| # `spec/*.md`, importer stubs) for caching, so `cargo test` fails | ||
| # to compile fixture-dependent tests — repeatedly breaking the Nix | ||
| # release channel one fixture at a time. Tests run in CI on the | ||
| # full, unfiltered repo; the Nix release-channel check only needs | ||
| # the binary to build and run (`nix run … -- --version`). |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
robcohen
added a commit
that referenced
this pull request
Jul 1, 2026
Patch release: green the Nix release channel by not running the test suite in the Nix binary build (#1661, doCheck = false), so crane's fixture-stripping no longer breaks fixture-dependent tests. No library/binary/component behavior change. Workspace 0.17.3 -> 0.17.4 (cargo set-version); packages/mcp-server bumped to match. Co-authored-by: Claude Opus 4.8 <[email protected]>
robcohen
added a commit
that referenced
this pull request
Jul 2, 2026
…#1682) The unmodified PKGBUILD build (codegen-units=1 over the whole workspace) plus its check() (full release-mode test suite) exceeds 90 minutes on a 2-core runner — the job timed out on the v0.18.0/v0.19.0 channel runs at 45m and on the v0.19.0 rerun at 90m (#1681's bump was insufficient). CI-only relaxations, mirroring the Nix doCheck=false fix (#1661): - yay --mflags --nocheck skips check(): the test suite runs in repo CI on every PR; this smoke test verifies the source package builds and runs. - CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16 parallelizes codegen (thin LTO kept). Real AUR users still build with the PKGBUILD's full settings. Co-authored-by: Claude Opus 4.8 <[email protected]>
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.
Fixes the recurring Test Nix release-channel failure at its root.
Why it keeps breaking
The channel test runs
nix run … -- --version— it builds rustledger from the flake, and crane runs the full test suite (checkPhase) by default. But the flake'ssrcFilterstrips test fixtures (.binfuzz corpora,spec/*.md, the importersample_stub) for caching, so fixture-dependent tests fail to compile. Fixing one fixture just exposes the next (validation.md → parserfuzz_regressions/*.bin→ importer stub) — whack-a-mole.Fix
doCheck = falseon therustledgercrane build. The release-channel check only needs the binary to build and run; tests run in CI on the full, unfiltered repo. One change fixes the whole class, including future fixtures.Verified:
nix eval .#packages.x86_64-linux.rustledger.drvPathresolves cleanly with the change.🤖 Generated with Claude Code