Hi there,
i am trying to play around with hydra and thus rebuilding my system. So i installed hydra on one (that’s just the situation why i at that problem, but i dont see a relation to that).
On one particular system i am failing on the test of asciidoc and i really dont get why.
The machine follows nixos-unstable and is configured via this flake GitHub - Shawn8901/nix-configuration . The affected machine is called tank
.
The test of asciidoc is failing on the comparison of the generated timestamps of the documentation and the error is looking like this
asciidoc> SOURCE: asciidoc: tests/inputs/lang-pt-BR-test.txt
asciidoc> PASSED: docbook: tests/data/lang-pt-BR-article-test-docbook.xml
asciidoc> PASSED: docbook5: tests/data/lang-pt-BR-article-test-docbook5.xml
asciidoc> FAILED: xhtml11: tests/data/lang-pt-BR-article-test-xhtml11.html
asciidoc> +++ tests/data/lang-pt-BR-article-test-xhtml11.html
asciidoc> — got
asciidoc> - 2002-11-25 00:37:42 UTC
asciidoc> + 1980-01-02 00:00:00 UTC
The asciidoc package of nixpkgs is patching the tests/inputs
files so that they contain the timestamp 1980-01-02 00:00:00 UTC
(see nixpkgs/default.nix at da5b47eba8ad4ad30dbc0de17dd1f64ccc07f0f3 · NixOS/nixpkgs · GitHub).
On all machines i try to build the package with nix build github:shawn8901/nix-configuration#nixosConfigurations.tank.pkgs.asciidoc --print-build-logs --rebuild
Other machines (e.G pointalpha
) do build that package fine without any test fails.
So it seems somehow to me, that on the failing machine the package behaves different and really dont understand why thats the case.
I dont know if its somehow relevant but my nix.conf of that machine looks like this:
# WARNING: this file is generated from the nix.* options in
# your NixOS configuration, typically
# /etc/nixos/configuration.nix. Do not edit it!
allowed-users = *
auto-optimise-store = true
builders =
cores = 4
experimental-features = nix-command flakes
extra-sandbox-paths =
keep-derivations = true
keep-outputs = true
max-jobs = 2
netrc-file = /run/agenix/nix-netrc
require-sigs = true
sandbox = true
sandbox-fallback = false
substituters = https://cache.pointjig.de/nixos https://cache.nixos.org/
system-features = gccarch-x86-64-v2 gccarch-x86-64-v3 benchmark big-parallel kvm nixos-test
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nixos:vjrrtYYXDQx4qWPPQ0BeO2cr/O/VCkqOWgbFe2bPfi4=
trusted-substituters =
trusted-users = hydra-queue-runner root shawn
!include /run/agenix/github_access_token
extra-allowed-uris = https://gitlab.com/api/v4/projects/rycee%2Fnmd https://git.sr.ht/~rycee/nmd https://github.com/zhaofengli/nix-base32.git https://github.com/zhaofengli/sea-orm
The non-failing machine differs in the extra-allowed-uris (not set) and keep-derivations and keep-outputs (both not set) and hydra-queue-runner as additional trusted user (see nix.conf - Diff Checker).
If I remove the patching of the tests (replacement of the substitute) the package builds fine.
I somehow suspect the sandbox being broken.
nix store verify --all -no-trust
returns no errors.
The drv of the package is /nix/store/xq8wsi07q4sq66lal4z315ymgdwsyclm-asciidoc-10.2.0.drv
which matches Hydra - Log of step 1 of build 203942212 of job nixpkgs:python-updates:asciidoc.x86_64-linux
Does by chance someone has an idea whats wrong with my machine or any input where I could continue to search for the issue?
I appreciate every help or input.