Skip to content

tests/nixos: Parametrize on the system#13572

Merged
roberth merged 1 commit intoNixOS:masterfrom
xokdvium:nixos-tests-parametrize
Jul 29, 2025
Merged

tests/nixos: Parametrize on the system#13572
roberth merged 1 commit intoNixOS:masterfrom
xokdvium:nixos-tests-parametrize

Conversation

@xokdvium
Copy link
Copy Markdown
Contributor

Motivation

All of the existing tests only run on x86_64-linux and the whole nixpkgsFor makes it hard to reuse those for e.g. running the nixos tests with a sanitizer build of nix. This rips off the bandaid and removes the nixpkgsFor parameter in favor of a single instance of nixpkgs with a separate nixComponents.

Context

Progress towards reducing the usage of overlays and nixpkgsFor (cc @roberth)


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

All of the existing tests only run on x86_64-linux and
the whole `nixpkgsFor` makes it hard to reuse those for
e.g. running the nixos tests with a sanitizer build of nix.
This rips off the bandaid and removes the `nixpkgsFor` parameter
in favor of a single instance of nixpkgs with a separate `nixComponents`.
@xokdvium xokdvium requested a review from roberth July 29, 2025 18:00
@xokdvium xokdvium requested a review from edolstra as a code owner July 29, 2025 18:00
Copy link
Copy Markdown
Member

@roberth roberth left a comment

Choose a reason for hiding this comment

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

Agreed.
Tested by evaluating. echo >>flake.nix so that no rev is appended to package versions. Then hydraJobs.tests.functional_user.drvPath evaluates to the same derivation before and after.

@roberth roberth merged commit 6365cf1 into NixOS:master Jul 29, 2025
14 checks passed
@xokdvium xokdvium deleted the nixos-tests-parametrize branch July 29, 2025 18:31
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.

2 participants