Skip to content

test: share scaffold fixtures and consolidate nix invocations - #1420

Merged
c-vigo merged 1 commit into
devfrom
feature/1417-test-runtime-fixtures
Aug 11, 2026
Merged

c-vigo merged 1 commit into
devfrom
feature/1417-test-runtime-fixtures

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements #1417 (WP5 of the #1413 audit): the suite's dominant wall-clock costs — repeated init-workspace.sh scaffold runs and per-test nix develop/nix build launches with identical inputs — now share cached fixtures. No assertion was removed or weakened; failure attribution is preserved in every merged sweep. TDD RED-first does not apply (test-infrastructure refactor, no production behavior change).

Changes

Timing (local, warm nix store — CI/cold benefits are larger)

Suite Before After
Workflow-shape sweep (897 tests) 27.0 s 16–17.7 s (~−35%)
test_flake_devshell.py full 28.6 s (17+1) 20.8 s (15+1; 3 probes merged into 1)
test_setup_toolchain_env.py ~32 step executions 42 passed in 0.36 s (1 shared + distinct-input runs)
init-workspace.bats (238 tests) 125 s 119 s (19 fewer scaffold runs; rsync is cheap locally, the win shows on slower I/O)
test_flake_hooks.py fixtures 3 nix builds 1

Verification

  • Workflow-shape sweep: 897 passed (count unchanged from dev).
  • test_flake_devshell.py: 15 passed, 1 skipped (NixOS-gated skip, runs on CI ubuntu); ci.yml -k expression collects 10/16 with no stale names (grep clean).
  • test_flake_hooks.py + test_flake_services.py -k "not services_poc_boots": 39 passed.
  • test_setup_toolchain_env.py: 42 passed.
  • bats tests/bats/init-workspace.bats: 238/238 ok.
  • prek run --all-files: green.

Closes #1417

@c-vigo
c-vigo merged commit 9e0af0d into dev Aug 11, 2026
13 checks passed
@c-vigo
c-vigo deleted the feature/1417-test-runtime-fixtures branch August 11, 2026 09:56
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