Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow running all the tests with the daemon #5058

Merged
merged 2 commits into from Jul 28, 2021
Merged

Conversation

thufschmitt
Copy link
Member

When NIX_DAEMON_PACKAGE is set, make all the tests use the Nix daemon.
That way we can test every piece of Nix functionality both with and without the daemon.

Tests for which using the daemon isn’t possible or doesn’t make sense can selectively be disabled with needLocalStore.
Similarely, tests can enforce a constraint on a new-enough daemon by using requireDaemonNewerThan 2.4pre_20210714

(There’s a few tests that break with the daemon for bad reasons. I didn’t fix these, but they are marked with buggyNeedLocalStore)

Fix #4824

When `NIX_DAEMON_PACKAGE` is set, make all the tests use the Nix daemon.
That way we can test every piece of Nix functionality both with and
without the daemon.

Tests for which using the daemon isn’t possible or doesn’t make sens can
selectively be disabled with `needLocalStore`
For some reason, an old socket occasionally stays here on OSX, causing
the subsequent tests to fail
Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. Simply tracking what fails is super valuable even.

@edolstra edolstra merged commit c5ade24 into master Jul 28, 2021
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/tweag-nix-dev-update-16/14379/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Force the use of the daemon in all the tests
4 participants