Skip to content

Fix container upload when Hydra skips individual check-runs#242

Merged
angerman merged 1 commit into
mainfrom
fix/discover-fallback
Feb 28, 2026
Merged

Fix container upload when Hydra skips individual check-runs#242
angerman merged 1 commit into
mainfrom
fix/discover-fallback

Conversation

@angerman
Copy link
Copy Markdown
Collaborator

Summary

  • When Hydra resolves builds from cache, it creates only aggregate required check-runs — not individual per-build check-runs like x86_64-linux.ghc96-iog-env
  • This causes the GHA Discover step to find zero -env closures, producing an empty matrix and skipping all container uploads
  • Add a fallback: when no Hydra check-runs are found, evaluate store paths directly from the flake using nix eval with extra/discover-env.nix
  • Also install Nix and checkout the repo in the Discover step to support the fallback

Context

After merging #239 and #240, the container upload workflows failed 3 consecutive times because Hydra completed all builds from cache without creating individual GitHub check-runs. This is the root cause of the upload failures on the current main.

Test plan

  • Verify the fallback nix eval produces the correct matrix (locally tested the Nix expression)
  • Merge and confirm containers are uploaded on the next main push
  • When Hydra does create individual check-runs (non-cached builds), the primary path is still used

When Hydra resolves builds from cache, it creates only aggregate
"required" check-runs but not individual per-build check-runs.
This causes the GHA upload workflow to discover zero -env closures
and skip all container uploads.

Add a fallback path: when no Hydra check-runs ending in "-env"
are found, evaluate the store paths directly from the flake using
nix eval with extra/discover-env.nix. This ensures containers are
always uploaded regardless of Hydra's check-run behavior.

Also install Nix and checkout the repo in the Discover step to
support the fallback evaluation.
@angerman angerman added this pull request to the merge queue Feb 28, 2026
Merged via the queue into main with commit 3085e73 Feb 28, 2026
876 of 884 checks passed
@angerman angerman deleted the fix/discover-fallback branch February 28, 2026 04:22
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