Skip to content

ci/eval/compare: handle missing packages#439198

Merged
wolfgangwalther merged 1 commit intoNixOS:masterfrom
wolfgangwalther:ci-fix-pings
Sep 1, 2025
Merged

ci/eval/compare: handle missing packages#439198
wolfgangwalther merged 1 commit intoNixOS:masterfrom
wolfgangwalther:ci-fix-pings

Conversation

@wolfgangwalther
Copy link
Contributor

@wolfgangwalther wolfgangwalther commented Sep 1, 2025

Not all packages that are reported as changed will actually exist on the platform that the maintainers are collected on.

This is the case for some attributes that are only available on Darwin or explicitly set to null on Linux. By filtering out packages without maintainers, these are ignored - and we should potentially get a small performance improvement as well.

Fixes #438652 (comment) and should hopefully make CI on staging-next green again.


The CI failure was https://github.com/NixOS/nixpkgs/actions/runs/17377113706/job/49326131217. The run on the previous commit was this https://github.com/NixOS/nixpkgs/actions/runs/17369117763/job/49301365388. The latter shows 3 kinds of traces originating in the now removed code:

  • trace: [...] exists but is null: these are very special cases, elf-header and libintl here. These are set to null and passed around like this to effectively disable them. This should, in theory, be solved differently, but that's certainly out of scope for this PR.
  • trace: Failed to locate [...].: most of these are about package additions. These will be filtered out with the changes in ci/eval/compare: ping maintainers of removed packages #438652, so nothing to worry about anymore.
  • trace: Failed to locate tests.stdenv.hooks.no-broken-symlinks.[...].: These are only added to the attrset for Darwin & BSDs, so just don't have an attribute on Linux. They appear as changed packages on Darwin, then can't be looked up for maintainers on Linux.

Things done


Add a 👍 reaction to pull requests you find important.

Not all packages that are reported as changed will actually exist on the
platform that the maintainers are colleted on.

This is the case for some attributes that are only available on Darwin
or explicitly set to `null` on Linux. By filtering out packages without
maintainers, these are ignored - and we should potentially get a small
performance improvement as well.
@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: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions backport release-25.05 labels Sep 1, 2025
@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Sep 1, 2025
Copy link
Contributor

@philiptaron philiptaron left a comment

Choose a reason for hiding this comment

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

I like concatMap for this use case (map + filter) but this definitely works.

@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Sep 1, 2025
@wolfgangwalther wolfgangwalther merged commit 3327ed1 into NixOS:master Sep 1, 2025
35 of 38 checks passed
@wolfgangwalther wolfgangwalther deleted the ci-fix-pings branch September 1, 2025 16:24
@nixpkgs-ci
Copy link
Contributor

nixpkgs-ci bot commented Sep 1, 2025

Successfully created backport PR for release-25.05:

@github-actions github-actions bot added the 8.has: port to stable This PR already has a backport to the stable release. label Sep 1, 2025
@wolfgangwalther
Copy link
Contributor Author

CI for staging-next is fixed: https://github.com/NixOS/nixpkgs/actions/runs/17382924267/job/49344392876?pr=438642

Indeed the compare step runs ~10 secs faster.

@philiptaron
Copy link
Contributor

Wonderful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions 8.has: port to stable This PR already has a backport to the stable release. 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. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants