1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-18 15:01:08 +01:00
nix/tests/functional/dyn-drv
John Ericson c98525235f Revert "Revert "Adapt scheduler to work with dynamic derivations""
This fixes dynamic derivations, reverting #9081.

I believe that this time around, #9052 is fixed. When I first rebased
this, tests were failing (which wasn't the case before). The cause of
those test failures were due to the crude job in which the outer goal
tried to exit with the inner goal's status.

Now, that error handling has been reworked to be more faithful. The exit
exit status and exception of the inner goal is returned by the outer
goal. The exception was what was causing the test failures, but I
believe it was not having the right error code (there is more than one
for failure) that caused #9081.

The only cost of doing things the "right way" was that I had to
introduce a hacky `preserveException` boolean. I don't like this, but,
then again, none of us like anything about how the scheduler works.
Issue #11927 is still there to clean everything up, subsuming the need
for any `preserveException` because I doubt we will be fishing
information out of state machines like this at all.

This reverts commit 8440afbed7.

Co-Authored-By: Eelco Dolstra <edolstra@gmail.com>
2025-02-05 17:26:32 -05:00
..
build-built-drv.sh Revert "Revert "Adapt scheduler to work with dynamic derivations"" 2025-02-05 17:26:32 -05:00
common.sh tests/functional: Skip tests that don't work in NixOS environment yet 2024-06-20 14:54:11 +02:00
config.nix Revert "Merge pull request #11826 from DeterminateSystems/revert-11804" 2024-11-11 15:21:34 +01:00
config.nix.in Put functional tests in tests/functional 2023-10-06 09:05:56 -04:00
dep-built-drv.sh Revert "Revert "Adapt scheduler to work with dynamic derivations"" 2025-02-05 17:26:32 -05:00
eval-outputOf.sh Print value on type error 2024-01-22 08:56:02 -08:00
failing-outer.sh Revert "Revert "Adapt scheduler to work with dynamic derivations"" 2025-02-05 17:26:32 -05:00
meson.build Revert "Revert "Adapt scheduler to work with dynamic derivations"" 2025-02-05 17:26:32 -05:00
old-daemon-error-hack.nix Revert "Merge pull request #11826 from DeterminateSystems/revert-11804" 2024-11-11 15:21:34 +01:00
old-daemon-error-hack.sh Put functional tests in tests/functional 2023-10-06 09:05:56 -04:00
recursive-mod-json.nix Format .nix files 2025-01-24 17:04:02 +01:00
recursive-mod-json.sh Put functional tests in tests/functional 2023-10-06 09:05:56 -04:00
text-hashed-output.nix Revert "Revert "Adapt scheduler to work with dynamic derivations"" 2025-02-05 17:26:32 -05:00
text-hashed-output.sh housekeeping: shellcheck for tests/functional/dyn-drv/text-hashed-output.sh 2024-06-12 17:41:16 -04:00