Skip to content

Improve derivation "advanced attrs" test, fix almost-bug#13032

Merged
Mic92 merged 2 commits intoNixOS:masterfrom
obsidiansystems:more-outputs-test
Apr 15, 2025
Merged

Improve derivation "advanced attrs" test, fix almost-bug#13032
Mic92 merged 2 commits intoNixOS:masterfrom
obsidiansystems:more-outputs-test

Conversation

@Ericson2314
Copy link
Copy Markdown
Member

Motivation

See each commit for details. I changed the tests to perhaps catch the bug. That the tests didn't need to be updated again proved there was no bug, but it was close!

Context


Add 👍 to pull requests you find important.

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

@Ericson2314 Ericson2314 added the backport 2.28-maintenance Automatically creates a PR against the branch label Apr 15, 2025
@Ericson2314 Ericson2314 requested a review from edolstra as a code owner April 15, 2025 16:10
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Apr 15, 2025
…alues

We had fields set to the same values before in our test data. This is
not a problem per-se, but does mean we wouldn't catch certain mixups.
Now, the fields are set to distinct values (where possible), which makes
the test more robust.
This was almost a bug! It wasn't simply because another assignment would
clobber it later.
@Mic92 Mic92 enabled auto-merge April 15, 2025 16:49
@Mic92 Mic92 merged commit 89ba6df into NixOS:master Apr 15, 2025
12 checks passed
@Ericson2314 Ericson2314 deleted the more-outputs-test branch April 15, 2025 18:20
mergify bot added a commit that referenced this pull request Apr 15, 2025
…3032

Improve derivation "advanced attrs" test, fix almost-bug (backport #13032)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 2.28-maintenance Automatically creates a PR against the branch with-tests Issues related to testing. PRs with tests have some priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants