Skip to content

Regression test for recent fixed output derivation bug#1660

Merged
Ericson2314 merged 1 commit intomasterfrom
regression-test-for-fods
Apr 13, 2026
Merged

Regression test for recent fixed output derivation bug#1660
Ericson2314 merged 1 commit intomasterfrom
regression-test-for-fods

Conversation

@Ericson2314
Copy link
Copy Markdown
Member

@Ericson2314 Ericson2314 commented Apr 13, 2026

It turns out that the hydra test suite was not testing fixed output derivations at all!

See the commit message for more details

@Ericson2314 Ericson2314 force-pushed the regression-test-for-fods branch from b487f16 to dadc7aa Compare April 13, 2026 20:28
@Ericson2314 Ericson2314 marked this pull request as draft April 13, 2026 20:32
@Ericson2314 Ericson2314 force-pushed the regression-test-for-fods branch from dadc7aa to 61b27ed Compare April 13, 2026 20:45
@Ericson2314 Ericson2314 marked this pull request as ready for review April 13, 2026 20:46
@Ericson2314 Ericson2314 force-pushed the regression-test-for-fods branch 2 times, most recently from 86cd5a0 to 0f18428 Compare April 13, 2026 20:52
It turns out that the hydra test suite was not testing fixed output
derivations at all!

Add a FOD test job (`fod.nix`) and end-to-end test
(`queue-runner/fixed-output-derivation.t`) that:

1. Builds a flat-hash FOD through Hydra, verifying success.
2. Builds the same FOD again, verifying the queue runner detects it
   as cached (`isCachedBuild`).

Also add a runtime check in the queue runner's `succeed_step`: for
outputs with statically-known paths (input-addressed and fixed CA),
verify that the paths reported by the builder match what
`output_paths()` computes. A mismatch is a hard error — this would
have caught the harmonia-store-core bug (missing trailing colon in the
FOD fingerprint) on the very first build.

I tested that this test fails before the fix, and succeeds after.

Also, delete a generated file that was accidentally committed by mistake
in 9911f01.
@Ericson2314 Ericson2314 force-pushed the regression-test-for-fods branch from 0f18428 to de0abe8 Compare April 13, 2026 20:53
@Ericson2314 Ericson2314 enabled auto-merge April 13, 2026 21:06
@Ericson2314 Ericson2314 added this pull request to the merge queue Apr 13, 2026
Merged via the queue into master with commit 87d7979 Apr 13, 2026
2 checks passed
@Ericson2314 Ericson2314 deleted the regression-test-for-fods branch April 13, 2026 21:12
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.

2 participants