Skip to content

Comments

ci/eval/compare: avoid CI failures on non-github maintainer records#437407

Closed
zeuner wants to merge 1 commit intoNixOS:masterfrom
zeuner:ci-maintainers-fix
Closed

ci/eval/compare: avoid CI failures on non-github maintainer records#437407
zeuner wants to merge 1 commit intoNixOS:masterfrom
zeuner:ci-maintainers-fix

Conversation

@zeuner
Copy link
Contributor

@zeuner zeuner commented Aug 27, 2025

Filtering out maintainer records without a GitHub contact before computing the GitHub-specific ping list.

A well-formed maintainer records requires either an e-mail, a matrix or a GitHub contact. However, the current CI implementation fails to evaluate if there is no GitHub contact, no matter whether the other contacts are present. This can lead to misleading CI messages (e.g. https://github.com/NixOS/nixpkgs/actions/runs/17257678120/job/48972816114?pr=437389) on a perfectly valid PR pointing to perfectly valid maintainer records. Inexperienced contributers might think they did something wrong, and inexperienced reviewers might think the PR is not worth looking at due to the CI failure.

This was already fixed in ofborg before (NixOS/ofborg#665), but apparently the fix wasn't merged before the code was moved to nixpkgs.

Of course this does not replace the need to provide ping handlers for the other contact entry variants, which should be processed in separate PRs.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@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 Aug 27, 2025
@Mic92

This comment was marked as off-topic.

@wolfgangwalther

This comment was marked as off-topic.

@zeuner zeuner force-pushed the ci-maintainers-fix branch from 9050cba to 43d5f64 Compare August 28, 2025 00:18
Comment on lines +98 to +99
# TODO: create ping lists for other contacts once non-GitHub ping
# implementations get merged
Copy link
Contributor

Choose a reason for hiding this comment

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

I won't accept this TODO.

Comment on lines +109 to +110
# TODO: If community consensus (e.g. an RFC) makes `githubId` mandatory,
# simplify to `pkg.maintainers`
Copy link
Contributor

Choose a reason for hiding this comment

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

Community consensus is already reached, this is just about getting the implementation merged, so I won't accept this TODO either.

@MattSturgeon
Copy link
Contributor

With #437469 merged and #437085 heavily approved, just awaiting green CI, github and githubId are required attributes.

I think we can consider this PR superseded by #437085?

@wolfgangwalther
Copy link
Contributor

I agree, this would only be a temporary fix for now less than a week. We can't merge any PRs touching the packages that the two remaining maintainers without githubId are maintaing, at least not without by-passing failing CI. But that should be fine.

@zeuner zeuner mentioned this pull request Sep 2, 2025
1 task
@zeuner zeuner mentioned this pull request Sep 21, 2025
13 tasks
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 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.

4 participants