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

Feature request: Build passthru.tests automatically #77

Open
davidak opened this issue Dec 7, 2019 · 7 comments · May be fixed by #397
Open

Feature request: Build passthru.tests automatically #77

davidak opened this issue Dec 7, 2019 · 7 comments · May be fixed by #397
Labels
enhancement New feature or request

Comments

@davidak
Copy link

davidak commented Dec 7, 2019

It would be helpful to run passthru.tests automatically when they exists like nixpkgs-update and ofborg (will) do.

@Mic92 Mic92 added the enhancement New feature or request label Dec 9, 2019
@jonringer
Copy link
Contributor

jonringer commented Jan 22, 2020

I second this, it would be nice if there was something like a test.nix which was also produced, and just running nix-build test.nix would then run all of that tests which were affected by the package set changes.

I would love to add the feature, however, I am short on time :(

EDIT: or better yet, have another switch nix-review pr 82742 --tests and it will also run tests as well

@davidak
Copy link
Author

davidak commented Apr 24, 2021

EDIT: or better yet, have another switch nix-review pr 82742 --tests and it will also run tests as well

since you should run tests when reviewing a pr, they should be opt-out

@jonringer
Copy link
Contributor

Yes, but they can be very costly in compute, ram, and disk space (may bring in many more dependencies). And I think it would warrant opting-in to a review potentially taking a significant amount of system resources.

@davidak
Copy link
Author

davidak commented Apr 25, 2021

That's true, especially for nixosTests building a whole VM. Maybe we can exclude them und just run package tests automatically?

@Mic92
Copy link
Owner

Mic92 commented Apr 25, 2021

Vm tests would need to be build serial after packages have been build.

@lucasew
Copy link
Contributor

lucasew commented Oct 14, 2023

Vm tests would need to be build serial after packages have been build.

Why? Nix already does that by consequence.

BTW I am trying to do the evaluation to get all tests of the package differences but got stuck with a issue where getting the outPath of the test and triggering a error (non catchable) because some dependency is marked as broken.

I think it needs either some kind of ofborg support or some nixpkgs adjustments to deal with this.

@Pandapip1
Copy link
Contributor

How about building all tests except for VM tests by default, and opting-in to VM tests?

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

Successfully merging a pull request may close this issue.

5 participants