Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Another trial of magic-nix which uses the github internal cache as a binary cache for
nix
.Magic nix does not offer out-of-the-box any public cache interaction and we would need to make this work together with cachix. In another exploration, @locallycompact encountered problems by having both enabled: DeterminateSystems/magic-nix-cache#78
However, before tackling this I wondered what the build time improvement would be. This PR contains commits and links to the findings:
magic-nix
orcachix
.accept-flake-config
to seed magic cache from cachix.hydra-node
build with primed cache: https://github.com/cardano-scaling/hydra/actions/runs/10418269282/job/28854308115 -> build step only:1m04s
, overall2m49s
(still uploading)3m14s
Are our builds non-deterministic due to IFD?
4m45s
and no pushed paths pushed?4:19s
, also no paths pushed againcachix-action
https://github.com/cardano-scaling/hydra/actions/runs/10419403396 -> rebuild of hydra-node in4m47s
1m28s
,1m50s
1m25s
(accidental cache hit)5m04s
1m39s
hydra-node
was never cached)This write-up is also available on the logbook: https://github.com/cardano-scaling/hydra/wiki/Logbook-2024-H1#2024-08-16