Skip to content

nixos/testing: restrict arguments to makeTest#164660

Merged
roberth merged 9 commits intoNixOS:masterfrom
ncfavier:tests-restrict-arguments
Mar 24, 2022
Merged

nixos/testing: restrict arguments to makeTest#164660
roberth merged 9 commits intoNixOS:masterfrom
ncfavier:tests-restrict-arguments

Conversation

@ncfavier
Copy link
Member

Disallow passing arbitrary arguments to makeTest since they are not used; this can help catch mistakes.

Then fix those mistakes, as well as some unrelated errors and warnings.

@github-actions github-actions bot added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label Mar 18, 2022
@ncfavier ncfavier requested a review from roberth March 18, 2022 00:32
Comment on lines 7 to 12
Copy link
Member Author

Choose a reason for hiding this comment

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

@Ericson2314 note that the test fails if I add this to the actual machine configuration.

Copy link
Member

Choose a reason for hiding this comment

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

Got nerd-sniped and fixed it.

Disallow passing arbitrary arguments to makeTest since they are not
used; this can help catch mistakes.
Fixes errors caught by "nixos/testing: restrict arguments to makeTest" as
well as some unrelated errors and warnings.
@ncfavier ncfavier force-pushed the tests-restrict-arguments branch from 31c8308 to ca8c877 Compare March 18, 2022 01:44
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Mar 18, 2022
@github-actions github-actions bot added the 8.has: module (update) This PR changes an existing module in `nixos/` label Mar 21, 2022
@roberth
Copy link
Member

roberth commented Mar 21, 2022

@ofborg test without-nix installer.simple

@ofborg test caddy ceph-multi-node chromium cri-o

@ofborg test gitolite-fcgiwrap jitsi-meet misc rstudio-server

@ofborg test step-ca tor without-nix

@roberth roberth force-pushed the tests-restrict-arguments branch from 1f358d1 to b2d3baa Compare March 21, 2022 22:14
@ofborg ofborg bot added 2.status: merge conflict This PR has merge conflicts with the target branch and removed 2.status: merge conflict This PR has merge conflicts with the target branch labels Mar 21, 2022
@ncfavier
Copy link
Member Author

LGTM!

@roberth
Copy link
Member

roberth commented Mar 22, 2022

The chromium package wasn't buildable.

@ofborg test caddy ceph-multi-node cri-o

@roberth roberth merged commit ce5a33e into NixOS:master Mar 24, 2022
@roberth
Copy link
Member

roberth commented Mar 24, 2022

Awesome. Thank you @ncfavier !

@ncfavier ncfavier deleted the tests-restrict-arguments branch March 24, 2022 18:10
@ajs124 ajs124 mentioned this pull request Apr 12, 2022
13 tasks
@ncfavier ncfavier mentioned this pull request May 6, 2022
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants