Repository navigation
perf(nix): speed up Rust checks and deduplicate Quint MBT - #308
Merged
Merged
Conversation
davidabram
marked this pull request as ready for review
October 9, 2026 20:46
This was referenced Oct 9, 2026
davidabram
added this pull request to stack #313
October 10, 2026 10:19
davidabram
force-pushed
the
perf/nix-test-profile-quint-dedup
branch
from
October 10, 2026 14:24
7bc4c63 to
89648b2
Compare
davidabram
removed this pull request from stack #313
October 10, 2026 14:25
davidabram
added this pull request to stack #312
October 10, 2026 14:27
davidabram
removed this pull request from stack #312
October 10, 2026 22:50
davidabram
added this pull request to stack #320
October 10, 2026 22:50
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.
Pull request stack
You are reviewing step 1/4: #308. Parent:
main. Next: #309.Summary
testprofile instead of the default optimizedreleaseprofile, using line-table-only debug info.cargoArtifactsTestand pass it consistently to bothcli-testsandcli-clippyso they reuse a matching dependency cache. The existing release-profilecargoArtifactsand distributable CLI builds are unchanged.mutation-trace-quint-connectcheck from the default flakechecksset. The fullcli-testssuite already runs those 16 MBT tests.packages.mutation-trace-quint-connectand update.github/workflows/quint.ymlto call its new attribute. Preserve its pinned Rust and Quint environment, and document both execution modes.Motivation
The October 9 baseline Nix CI jobs showed
nix flake checktaking 20m34s on Linux and 28m59s on macOS. Most wall time was Rust dependency/test compilation, not Nix evaluation. Prior to this patch,cli-testsand the separate Quint MBT check each compiled a release-profile test binary and ran the overlapping MBT suite.CI timing comparison
Actual wall-clock duration of
time nix flake check --fallback --print-build-logsfrom successful GitHub Actions jobs on October 9, 2026 (lower is better):113945871110, macOS job113945871153.113982336224, macOS job113982335618.nix build .#scestep took 6m 02.125s (Linux) / 9m 04.637s (macOS) afterward, versus 44.083s / 42.341s before, because the release-profile dependency build is now deferred until the native CLI build step. End-to-end job time improves less than the headline flake-check metric.Validation
When CI runs, verify:
Confirm that
cli-testsincludes all MBT tests once, and the focused package executes the same 16 tests on explicit invocation. Check Cargo logs for--profile testin test/Clippy derivations and--profile releasefor native CLI builds.Status: GitHub Actions Nix CI completed successfully on Linux and macOS; Quint, CodeQL, and Dependency Review also passed. This environment itself has no Nix installation, so results above are measured from GitHub Actions logs.
Trade-off: Test- and release-profile dependency artifacts are necessarily separate. This improves recompilation of tests while potentially adding a second dependency build on completely cold CI stores. Benchmark end-to-end cold and warm builds before asserting a performance gain.
Scope
Four files:
flake.nix, Quint CI workflow, existing MBT context documentation, and existing flake-performance context documentation. No changes to Rust application code, tests, Rust toolchain pins, or production build logic.