Run the functional tests in a NixOS environment#10922
Run the functional tests in a NixOS environment#10922Ericson2314 merged 15 commits intoNixOS:masterfrom
Conversation
|
Indeed I discussed just this sort of change with @tfc recently, and I'd take a slightly different architectural approach: instead of including environment-dependent setup/teardown, |
The implementation and benefit of this idea are unclear to me. I have not changed the architecture to keep the diff manageable, so I'd like to proceed with this and refactor later. |
|
Discussed in Nix maintainer meeting:
|
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
3b4c254 to
18f602d
Compare
This is useful when iterating on the functional tests when trying to run them in a VM test, for example.
This reproduces an instance of NixOS#4813
roberth: Not strictly necessary, but probably a good habit Co-authored-by: Eelco Dolstra <[email protected]>
Co-authored-by: Valentin Gagarin <[email protected]>
83871c8 to
dcee46a
Compare
|
@roberth IMO you can self-merge once it's all green. |
…ion" ShellCheck doesn't want us to add extra parentheses for show. This reverts commit 7c9f3ee.
cb96b87 to
d968466
Compare
| die() { | ||
| echo "fatal error: $*" >&2 | ||
| exit 1 | ||
| } |
There was a problem hiding this comment.
I wasn't aware, but it is similar. fail doesn't prefix anything.
They do seem to differ a bit in their use cases, which suggests that their behavior could be differentiated more. Perhaps:
die:echo "fatal error in test setup: $*"fail:echo "test failed: $*"
d70a198 to
bacd9fc
Compare
bacd9fc to
445a4a0
Compare
|
The extra swap appears to handle the extra evaluations with no significant slowdown 🎉 |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Motivation
By running the functional tests also in a mostly normal NixOS environment, we increase our test coverage.
This reproduces
timeout.sh)It also allows for testing
Context
Rewrite of most of Run test suite on NixOS #7778
Possible follow-ups:
sudoaction in the functional testsPriorities and Process
Add 👍 to pull requests you find important.
The Nix maintainer team uses a GitHub project board to schedule and track reviews.