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

Closed
astro wants to merge 3 commits from astro/it-infra:hydra-local-binary-cache into master
Contributor

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.
Author
Contributor

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 2021-02-22 07:17:56 +08:00 Compare
Owner

Root-on-ZFS avoids this issue.

Root-on-ZFS avoids this issue.
sb10q closed this pull request 2021-10-30 16:29:06 +08:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/it-infra#11
No description provided.