Open copumpkin opened 8 years ago
I'd love it if certain "seeds" for test environments could be remembered, so as to better reproduce ephemerally-failing test. For example, in the /dev/{,u}random
case, the device files could be logged, so those drawn values could be "prepended" to the device file when the test is run again.
I marked this as stale due to inactivity. → More info
I closed this issue due to inactivity. → More info
At the most basic level, I think we could set up the
derivation
primitive to take two scripts instead of one.nixpkgs
'sstdenv.mkDerivation
wrapper could abstract over that and still present the same interface, except it could shovecheckPhase
and friends into the second script, possibly going out of its way to preserve the environment and cwd from the first script if it proves helpful.The advantage to doing this is that we could start coming up with cleaner rules for tests vs. builds. Both would still affect the derivation hash, but:
$out
or other outputs.