Skip to content

perf(nix): prepare dev dependencies in Crane test artifacts - #315

Merged
davidabram merged 1 commit into
perf/ci-stack-3-timing-diagnosticsfrom
perf/ci-stack-4-test-dependency-preparation
Oct 11, 2026
Merged

davidabram merged 1 commit into
perf/ci-stack-3-timing-diagnosticsfrom
perf/ci-stack-4-test-dependency-preparation

Conversation

@davidabram

Copy link
Copy Markdown
Member

Stack

Step 5 of 8, stacked directly above #311; next PR will optimize Turso test-only artifacts.

Change

Set doCheck = true for cargoArtifactsTest and run only cargoWithProfile check --locked --all-targets in its build phase. The pinned Crane's check phase then runs cargo test --locked --no-run against dummy sources, preparing the test and dev-dependency artifacts that cli-tests previously recompiled (24 crates). Do not run the redundant cargo build during deps preparation.

This affects only the test-profile Crane derivation, shared by cli-tests, cli-clippy and the opt-in Quint MBT check. Release and native artifacts remain unchanged.

Validation

  • nix build .#checks.x86_64-linux.cli-tests -L
  • nix build .#checks.x86_64-linux.cli-clippy -L
  • nix flake check -L on Linux and macOS
  • Inspect nix log for unexpected dependency recompilation; preserve 1,753 tests and 4 ignored.

Benchmark caveat: This PR alone can be slower because it increases the dependency archive. The following two PRs remove the Turso FFI artifacts and dependency debug info; validate the final combination against experimental variant J (source-change cli-tests ~75s versus ~139s baseline). The reported measurements are local Linux measurements, not yet independently reproduced by this PR's CI.

No tests or release outputs are deliberately changed.

@davidabram
davidabram added this pull request to stack #319 October 10, 2026 21:11
@davidabram
davidabram removed this pull request from stack #319 October 10, 2026 22:48
@davidabram
davidabram added this pull request to stack #320 October 10, 2026 22:50
@davidabram
davidabram marked this pull request as ready for review October 10, 2026 22:51
@davidabram
davidabram merged commit e30880e into remove-tokio-db-runtimes Oct 11, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant