mirror of
https://github.com/NixOS/nix
synced 2025-07-01 08:28:00 +02:00
Revert "Revert "Revert "Adapt scheduler to work with dynamic derivations"""
The bug reappeared after all, and the fix introduced a different bug. We
want to release 2.27 imminently so there is no time to do a proper fix,
which appears to require a larger reworking. Hopefully we will have it
for 2.28, however.
This reverts commit c98525235f
.
This commit is contained in:
parent
494953cfb6
commit
f636ced7d2
16 changed files with 45 additions and 374 deletions
|
@ -18,9 +18,4 @@ clearStore
|
|||
|
||||
drvDep=$(nix-instantiate ./text-hashed-output.nix -A producingDrv)
|
||||
|
||||
# Store layer needs bugfix
|
||||
requireDaemonNewerThan "2.27pre20250205"
|
||||
|
||||
out2=$(nix build "${drvDep}^out^out" --no-link)
|
||||
|
||||
test $out1 == $out2
|
||||
expectStderr 1 nix build "${drvDep}^out^out" --no-link | grepQuiet "Building dynamic derivations in one shot is not yet implemented"
|
||||
|
|
|
@ -13,4 +13,4 @@ restartDaemon
|
|||
NIX_BIN_DIR="$(dirname "$(type -p nix)")"
|
||||
export NIX_BIN_DIR
|
||||
|
||||
nix build -L --file ./non-trivial.nix --no-link
|
||||
expectStderr 1 nix build -L --file ./non-trivial.nix --no-link | grepQuiet "Building dynamic derivations in one shot is not yet implemented"
|
||||
|
|
|
@ -4,11 +4,8 @@ source common.sh
|
|||
|
||||
out1=$(nix-build ./text-hashed-output.nix -A hello --no-out-link)
|
||||
|
||||
# Store layer needs bugfix
|
||||
requireDaemonNewerThan "2.27pre20250205"
|
||||
|
||||
clearStore
|
||||
|
||||
out2=$(nix-build ./text-hashed-output.nix -A wrapper --no-out-link)
|
||||
expectStderr 1 nix-build ./text-hashed-output.nix -A wrapper --no-out-link | grepQuiet "Building dynamic derivations in one shot is not yet implemented"
|
||||
|
||||
diff -r $out1 $out2
|
||||
# diff -r $out1 $out2
|
||||
|
|
|
@ -5,6 +5,8 @@ source common.sh
|
|||
# Store layer needs bugfix
|
||||
requireDaemonNewerThan "2.27pre20250205"
|
||||
|
||||
skipTest "dyn drv input scheduling had to be reverted for 2.27"
|
||||
|
||||
expected=100
|
||||
if [[ -v NIX_DAEMON_PACKAGE ]]; then expected=1; fi # work around the daemon not returning a 100 status correctly
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue