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

nixos/tests: add missing tests #156314

Merged
merged 3 commits into from
Jan 24, 2022
Merged

Conversation

B4dM4n
Copy link
Contributor

@B4dM4n B4dM4n commented Jan 23, 2022

Motivation for this change

Some tests from the nixos/tests folder were missing in the all-tests.nix file. This meant they couldn't be run from the nixosTests attribute set and therefore not be linked to their packages.

Things done

Build the following tests on x86_64-linux:

Succeeded:

  • nixosTests.brscan5
  • nixosTests.emacs-daemon
  • nixosTests.haka
  • nixosTests.iscsi-multipath-root
  • nixosTests.isso
  • nixosTests.jenkins-cli
  • nixosTests.k3s-single-node
  • nixosTests.k3s-single-node-docker
  • nixosTests.molly-brown
  • nixosTests.pict-rs
  • nixosTests.resolv
  • nixosTests.rstudio-server
  • nixosTests.rsyncd
  • nixosTests.soapui

Failed:

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.05 Release Notes (or backporting 21.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

Some tests from the `nixos/tests` folder were missing in the `all-tests.nix`
file. This meant they couldn't be run from the `nixosTests` attribute
set and therefore not be linked to their packages.
@github-actions github-actions bot added the 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS label Jan 23, 2022
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild 10.rebuild-linux: 0 This PR does not cause any packages to rebuild labels Jan 23, 2022
@Synthetica9 Synthetica9 added the 6.topic: testing Tooling for automated testing of packages and modules label Jan 23, 2022
@symphorien
Copy link
Member

Maybe it's a good occasion to add them to passthru.tests on the corresponding packages?

@B4dM4n
Copy link
Contributor Author

B4dM4n commented Jan 23, 2022

Yeah, this would be a good time to improve passthru.tests usage.

I will push the update soon.

@B4dM4n
Copy link
Contributor Author

B4dM4n commented Jan 23, 2022

Links from all packages to the tests are added.

Interestingly some packages already referred to tests which were not present in nixosTests:

passthru.tests = { inherit (nixosTests) rsyncd; };

passthru.tests.basic = nixosTests.molly-brown;

passthru.tests.teeworlds = nixosTests.teeworlds;

@symphorien
Copy link
Member

Interestingly some packages already referred to tests which were not present in nixosTests:

maybe ofborg does not label "passthru.tests does not evaluate" as a failure (because most packages don't have one at all) so people don't notice it

@ofborg ofborg bot requested a review from fgaz January 23, 2022 20:24
@ofborg ofborg bot added 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1-10 10.rebuild-linux: 1 and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild 10.rebuild-linux: 0 This PR does not cause any packages to rebuild labels Jan 23, 2022
@symphorien symphorien merged commit 1b1fe46 into NixOS:master Jan 24, 2022
@B4dM4n B4dM4n deleted the nixos-tests-missing branch January 25, 2022 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: emacs Text editor 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: testing Tooling for automated testing of packages and modules 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1-10 10.rebuild-linux: 1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants