-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
tests.trivial-builders.references: provide passthru attributes and override interface on non-Linux platforms #273183
base: master
Are you sure you want to change the base?
tests.trivial-builders.references: provide passthru attributes and override interface on non-Linux platforms #273183
Conversation
8863dc9
to
160258a
Compare
160258a
to
1c4c1d4
Compare
1c4c1d4
to
b546bb0
Compare
Forward override interface and essential passthru attributes of `tests.trivial-builders.references` to non-Linux platforms. Enable `pkgs`-wide `samples` overriding via the override interface of `tests.trivial-builders.references` in Nixpkgs overlays.
b546bb0
to
507db5e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather suggest to keep static attribute names, but set meta.platforms
so that the attributes aren't evaluated outside linux
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, the NixOS test modules do not provide an option to specify/expose meta.platforms
, nor does the result derivation come with overrideAttrs
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting
nix-repl> :lf github:ShamrockLee/nixpkgs/test-references-shellcheck-fix
nix-repl> legacyPackages.x86_64-linux.tests.trivial-builders.references.meta
{ broken = false; maintainers = [ ... ]; timeout = 3600; }
nix-repl> legacyPackages.x86_64-linux.tests.trivial-builders.references.override<TAB>
legacyPackages.x86_64-linux.tests.trivial-builders.references.override
legacyPackages.x86_64-linux.tests.trivial-builders.references.overrideDerivation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure you need meta.platforms
? If so, it can be added in nixos/lib/testing/meta.nix
, or we could give that a freeformType
.
- Fixing the overriding situation here: nixos.runTest: Add extend, overrideTestDerivation #299542
Description of changes
NixOS VM Tests are not supported outside Linux so far, and we leave tests.trivial-builders.references = { } for non-Linux systems to please the CI.
If applied, non-Linux users will be able to run
testScriptBin
and accesspassthru
attributes and override interface oftest.trivial-builders.references
the way Linux users do.Status: waiting for #178717. It brings several renames and one extra test cases that depends on
samples
.Cc: @roberth
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.