DeterminateSystems / flake-checker

Health checks for your Nix flakes
https://determinate.systems
Apache License 2.0
179 stars 3 forks source link

Problems with 24.11 #143

Open usmcamp0811 opened 3 days ago

usmcamp0811 commented 3 days ago

I've been trying to update my system flake to 24.11 for the past week and been running into issues and I finally just now tracked down one of the issues to the Rust in flake-checker causing some compilation issues I think.

This is all the related error message I've got.

building '/nix/store/mkcqb9s5ah59vl8fx7w038ipl8vvbb1l-cargo-package-wasm-streams-0.4.0.drv'...
building '/nix/store/3m7d3ym0db8ndyxd3dqjlihgvk289nmv-hadoop-conf.drv'...
building '/nix/store/jjlyw8mqfx9dkd4k2pxri4k1lpx4ckrk-nixos-tmpfiles.d.drv'...
building '/nix/store/zm15jva0vn32pv2vw2z744pdns5yqn93-unit-qdrant.service.drv'...
error: builder for '/nix/store/sm56fw57zraqdpmwcbcsp5vwm80ipasl-flake-checker-0.2.0.drv' failed with exit code 101;
       last 44 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/4mn8pnmpsqx2d8nx0283vqcbxfmiqydr-kp6aq2vim1rg0qr6qmm4kdcfvizin22r-source
       > source root is kp6aq2vim1rg0qr6qmm4kdcfvizin22r-source
       > Running phase: patchPhase
       > Executing configureCargoCommonVars
       > decompressing cargo artifacts from /nix/store/qcraircjpr14qxpkhzy4phmdhzgxpmbi-flake-checker-deps-0.2.0/target.tar.zst to target
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > will append /build/kp6aq2vim1rg0qr6qmm4kdcfvizin22r-source/.cargo-home/config.toml with contents of /nix/store/19pg6lfvzd903h34b2g0kwbk5dks08a2-vendor-cargo-deps/config.toml
       > default configurePhase, nothing to do
       > Running phase: buildPhase
       > ++ command cargo --version
       > cargo 1.81.0-nightly (4dcbca118 2024-06-11)
       > ++ command cargo build --release --message-format json-render-diagnostics --target x86_64-unknown-linux-musl
       >    Compiling parse-flake-lock v0.1.1 (/build/kp6aq2vim1rg0qr6qmm4kdcfvizin22r-source/parse-flake-lock)
       >    Compiling flake-checker v0.2.0 (/build/kp6aq2vim1rg0qr6qmm4kdcfvizin22r-source)
       >     Finished `release` profile [optimized] target(s) in 3.64s
       > Running phase: checkPhase
       > ++ command cargo test --release --target x86_64-unknown-linux-musl
       >    Compiling flake-checker v0.2.0 (/build/kp6aq2vim1rg0qr6qmm4kdcfvizin22r-source)
       >     Finished `release` profile [optimized] target(s) in 1.13s
       >      Running unittests src/main.rs (target/x86_64-unknown-linux-musl/release/deps/flake_checker-897095c8ed7175de)
       >
       > running 5 tests
       > test flake::test::explicit_nixpkgs_keys ... ok
       > test flake::test::dirty_flake_locks ... ok
       > test flake::test::missing_nixpkgs_keys ... ok
       > test flake::test::clean_flake_locks ... ok
       > test flake::test::cel_conditions ... FAILED
       >
       > failures:
       >
       > ---- flake::test::cel_conditions stdout ----
       > thread 'flake::test::cel_conditions' panicked at src/flake.rs:193:17:
       > assertion failed: result.unwrap().is_empty()
       > note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
       >
       >
       > failures:
       >     flake::test::cel_conditions
       >
       > test result: FAILED. 4 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
       >
       > error: test failed, to rerun pass `--bin flake-checker`
       For full logs, run 'nix log /nix/store/sm56fw57zraqdpmwcbcsp5vwm80ipasl-flake-checker-0.2.0.drv'.
copying path '/nix/store/518rxhpb002g40rnm3x5iy4ykm5iqd5j-libpulseaudio-17.0' from 'https://cache.nixos.org'...
copying path '/nix/store/29axv68nmjdda61s0ll2pjvd31jgm2jq-ktextwidgets-5.116.0' from 'https://cache.nixos.org'...
copying path '/nix/store/3hv1xz8pls32hnncvfsk49xzsrkypcf4-python3.11-qtconsole-5.6.1' from 'https://cache.nixos.org'...
copying path '/nix/store/1m642r470vs78ryzdglj3lixx76k179q-python3.11-opentelemetry-instrumentation-fastapi-0.48b0' from 'https://cache.nixos.org'...
copying path '/nix/store/90z9i95sv3xiwdyfq4d7bk9kiqyr9lnd-qtmultimedia-5.15.15-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/b9gykb4vc0848icri1ffy0p92c3h4vc6-qttools-5.15.15-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/vh4vd8c0hskpqjfkgxpz7sixcyhsxq0w-solid-5.116.0-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/hxmkjh3fxp547glapmv4i93hvypj3zgc-sonnet-5.116.0-bin' from 'https://cache.nixos.org'...
copying path '/nix/store/zzq649ji5ishj6b6bixlfa6732r1z6q7-x264-0-unstable-2023-10-01-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/jd47wyijsnaxwfqk4826kssa257pr2yj-x265-3.6' from 'https://cache.nixos.org'...
copying path '/nix/store/pldvs6gvbxm347x9vc087nxvpxq80l70-xavs-55' from 'https://cache.nixos.org'...
copying path '/nix/store/002wrzdz2bq6mqiwjf7aq91lnvc6sfxb-xcb-util-keysyms-0.4.1' from 'https://cache.nixos.org'...
copying path '/nix/store/by90jxqx8dg4ca594szv1m5pyjkl8bzw-xmlsec-1.3.5' from 'https://cache.nixos.org'...
copying path '/nix/store/d44hkx0x8jym9md4bvq6z9jp4fwjpj5l-xevd-0.5.0-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/zcwhzy3r7qm3ljcn3w1bd84hbnahkkcj-xeve-0.5.1-lib' from 'https://cache.nixos.org'...
copying path '/nix/store/gi1nwzhsyxpmsfdm9nfw3fxsy2iy69fm-xvidcore-1.3.7' from 'https://cache.nixos.org'...
error: 1 dependencies of derivation '/nix/store/crw9s2wgvnxl3v0hxy4wmcva33sxf1v6-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ak77dz3i7mm9mfp31ibfgf731vnp3l85-nixos-system-reckless-24.11.20241116.057f63b.drv' failed to build

--show-trace isn't super helpful.. I just removed it from my flake for the time being.

For reference my flake and the branch I am working the update on are at: https://gitlab.com/usmcamp0811/dotfiles/-/commits/nixos24.11-update

MarkRijckenberg commented 20 hours ago

I have the exact same issue with flake-checker v0.2.0 and flake::test::cel_conditions in NixOS 25.05 (unstable).

lucperkins commented 13 hours ago

@usmcamp0811 24.11 is not yet considered stable, so these errors aren't too surprising. I'd recommend waiting until it's stable and trying again.