Skip to content

[25.05] various: avoid throwing for invalid platforms combinations in CI#427372

Merged
wolfgangwalther merged 5 commits intoNixOS:release-25.05from
wolfgangwalther:ci-backport-eval-asserts-various
Jul 22, 2025
Merged

[25.05] various: avoid throwing for invalid platforms combinations in CI#427372
wolfgangwalther merged 5 commits intoNixOS:release-25.05from
wolfgangwalther:ci-backport-eval-asserts-various

Conversation

@wolfgangwalther
Copy link
Contributor

Manual backport of #426645 and #427183.

Only trivial conflicts to resolve.

This assert is already handled by `meta.platforms`, which can be better
caught by CI than an `assert`. Also set `meta.platforms` to the earlier
defined `hplipPlatforms` for a single source of truth.

(cherry picked from commit 715d372)
These asserts should only trigger when a user tries to use that
combination. In CI, they should just not create an attrpath to evaluate.

(cherry picked from commit 093e739)
Same reasoning as commit before.

(cherry picked from commit e26ecf5)
Same reasoning as in the commit before.

(cherry picked from commit f115f69)
An assert can't be caught by CI for generation of attrpaths during Eval.
An error reported via meta.badPlatforms can be.

The alternative of returning null in the CI case, similar to the commits
before, is not helpful, because it only causes failed builds or eval
downstream - when this dependency is passed on and used as `null`.

(cherry picked from commit 6de5573)
@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: erlang General-purpose, concurrent, functional high-level programming language 4.workflow: backport This targets a stable branch labels Jul 22, 2025
github-actions[bot]

This comment was marked as resolved.

@wolfgangwalther wolfgangwalther dismissed github-actions[bot]’s stale review July 22, 2025 07:45

resolved conflict, because passthru.updateScript wasn't present on 25.05, yet.

@wolfgangwalther wolfgangwalther merged commit 76608f8 into NixOS:release-25.05 Jul 22, 2025
45 of 50 checks passed
@wolfgangwalther wolfgangwalther deleted the ci-backport-eval-asserts-various branch July 22, 2025 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.workflow: backport This targets a stable branch 6.topic: erlang General-purpose, concurrent, functional high-level programming language 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.

1 participant