Skip to content

nixos/tests: disable nixosTests.nixos-test-driver.containers for now#503014

Closed
jfly wants to merge 1 commit into
NixOS:masterfrom
jfly:disable-test-that-requires-dev-net
Closed

nixos/tests: disable nixosTests.nixos-test-driver.containers for now#503014
jfly wants to merge 1 commit into
NixOS:masterfrom
jfly:disable-test-that-requires-dev-net

Conversation

@jfly

@jfly jfly commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

We're unsure about exposing /dev/net in the build sandbox. Until we figure that out (tracked by NixOS/infra#987), let's just disable the test that requires /dev/net (note: this is not a strict requirement for tests that use test containers, it only applies to tests that test networking between test containers and qemu vms).

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

We're unsure about exposing `/dev/net` in the build sandbox. Until we
figure that out (tracked by NixOS/infra#987),
let's just disable the test that requires `/dev/net` (note: this is not
a strict requirement for tests that use test containers, it only applies
to tests that test networking between test containers and qemu vms).
Comment thread nixos/tests/all-tests.nix
containers = runTest ./nixos-test-driver/containers.nix;
# Disabled until we figure out if we want to expose `/dev/net` in the build
# sandbox on Hydra. See <https://github.com/NixOS/infra/issues/987>.
# containers = runTest ./nixos-test-driver/containers.nix;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can't we disable it with meta.hydraPlatforms = [];? While Hydra shouldn't build it, I'd very much like to keep it "accessible" in-tree.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't know. This doesn't seem to affect the behavior of import nixos/release-combined.nix {} at all. Is this meta.hydraPlatforms something that hydra itself looks at somewhere?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

OK that's really odd: nixos tests accept a meta.hydraPlatforms, but it's flat-out ignored 🙃

Feel free to ship it then as immediate fix.
I may look into fixing this properly. I feel like we should set hydraPlatforms for all of these tests until we are in a state where these can be run on h.n.o.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Proposed a solution in #503721 .

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS labels Mar 24, 2026
@mweinelt mweinelt marked this pull request as draft March 24, 2026 12:10
@mweinelt mweinelt marked this pull request as ready for review March 24, 2026 12:10
@Eveeifyeve

Eveeifyeve commented Mar 31, 2026

Copy link
Copy Markdown
Member

Can this pull request be closed as #503721 was merged instead? As the pull request disables the test that includes /dev/net in hydra.

@jfly

jfly commented Mar 31, 2026

Copy link
Copy Markdown
Contributor Author

Yes, thanks for the ping!

@jfly jfly closed this Mar 31, 2026
@jfly jfly deleted the disable-test-that-requires-dev-net branch March 31, 2026 16:03
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 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants