Files
JakeHillion adeab57d1c
commit-validation / validate-single-commit (pull_request) Successful in 2s
flake / flake (push) Successful in 4m17s
nix-builder (aarch64-linux) Build completed successfully
tests: normalize nix store paths in snapshots for stability
Snapshot tests were flaky because they contained /nix/store paths with
hashes and version numbers that change when dependencies are updated,
causing test failures even when the actual content was semantically
identical.

Added a normalizeStorePaths function to tests/lib.nix that uses
builtins.split with a regex to replace the entire store path derivation
(hash and name) with a fixed placeholder. This is applied during
snapshot generation and when comparing actual values against snapshots.

Test plan:
- Regenerated all 7 snapshots with normalized paths
- Built all test checks successfully
- Verified snapshots now contain stable paths like
  /nix/store/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/bin/mount
2026-01-11 19:41:04 +00:00
..