nixbld: add hydra-binary-cache-store.patch that is rebased on hydra-restrictdist.patch #11

Open
astro wants to merge 3 commits from astro/it-infra:hydra-local-binary-cache into master
astro commented 11 months ago

The patch can only restrict downloads of *.narinfo but not of nar/*.nar.xz. Their path contains only a hash without the derivation name. We would have to scan all .narinfo to get that.

Restricting the .narinfo should be enough to break binary cache functionality for a derivation.


Dragons ahead

The patch can only restrict downloads of `*.narinfo` but not of `nar/*.nar.xz`. Their path contains only a hash without the derivation name. We would have to scan all `.narinfo` to get that. Restricting the `.narinfo` should be enough to break binary cache functionality for a derivation. --- Dragons ahead
Owner

Applied this, the "error 10 while decompressing xz file" bug is still present.

Applied this, the ["error 10 while decompressing xz file" bug](https://git.m-labs.hk/M-Labs/it-infra/issues/4#issuecomment-1111) is still present.
Poster

I was not aware that Perl will automatically mangle newlines in files. I hope to have solved the corruption issue by adding :raw.

I was not aware that Perl will automatically mangle newlines in files. I hope to have solved the corruption issue by adding `:raw`.
Owner

Nope. It's having none of it.

 > nix-store -r /nix/store/0n0w7h88j13wdw2mimvghy0062r60ill-sinara-systems-99d3594
these paths will be fetched (0.00 MiB download, 0.12 MiB unpacked):
  /nix/store/0n0w7h88j13wdw2mimvghy0062r60ill-sinara-systems-99d3594
copying path '/nix/store/0n0w7h88j13wdw2mimvghy0062r60ill-sinara-systems-99d3594' from 'https://nixbld.m-labs.hk'...
error 10 while decompressing xz file
error: build of '/nix/store/0n0w7h88j13wdw2mimvghy0062r60ill-sinara-systems-99d3594' failed

Nope. It's having none of it. ```text > nix-store -r /nix/store/0n0w7h88j13wdw2mimvghy0062r60ill-sinara-systems-99d3594 these paths will be fetched (0.00 MiB download, 0.12 MiB unpacked): /nix/store/0n0w7h88j13wdw2mimvghy0062r60ill-sinara-systems-99d3594 copying path '/nix/store/0n0w7h88j13wdw2mimvghy0062r60ill-sinara-systems-99d3594' from 'https://nixbld.m-labs.hk'... error 10 while decompressing xz file error: build of '/nix/store/0n0w7h88j13wdw2mimvghy0062r60ill-sinara-systems-99d3594' failed ```
astro force-pushed hydra-local-binary-cache from 73877839b6 to 9d0da9bf44 8 months ago
This pull request has changes conflicting with the target branch.
nixbld-etc-nixos/configuration.nix
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.