Skip to content

[Reverted] First-class GitHub team reviews#456341

Merged
Mic92 merged 3 commits intoNixOS:masterfrom
tweag:first-class-team-reviews
Oct 28, 2025
Merged

[Reverted] First-class GitHub team reviews#456341
Mic92 merged 3 commits intoNixOS:masterfrom
tweag:first-class-team-reviews

Conversation

@infinisil
Copy link
Member

@infinisil infinisil commented Oct 28, 2025

Note

This one was reverted in #456391
New PR: #456481

This changes automation to request reviews from listed GitHub teams instead of their individual members when possible, allowing the team maintainers to make use of GitHub's advanced code review settings and making the team-review-requested:NixOS/someTeam PR filter more useful.

This applies for:

  • lib.teams that are listed as a package maintainer using the new meta.teams (thanks to check-meta: add a teams attribute #394797), with lib.teams.*.github being set to the matching GitHub team:
    meta = {
      teams = with lib.teams; [ someTeam ];
    };
  • GitHub teams that are listed as a code owner in ci/OWNERS:
    someFile @NixOS/someTeam
    

This pretty much implements #447514 after the preparatory work of #449986 and #450864.

Things done

  • [~] Fully tested -> Almost, I can't replicate the PR comparison check in my repo anymore, but all individual scripts are tested

Add a 👍 reaction to pull requests you find important.

@infinisil infinisil requested a review from a team October 28, 2025 00:53
@infinisil infinisil linked an issue Oct 28, 2025 that may be closed by this pull request
@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: stdenv Standard environment 6.topic: continuous integration Affects continuous integration (CI) in Nixpkgs, including Ofborg and GitHub Actions 6.topic: policy discussion Discuss policies to work in and around Nixpkgs backport release-25.05 labels Oct 28, 2025
@RossComputerGuy
Copy link
Member

Great job on this, been meaning to do this but got sidetracked.

@nixpkgs-ci nixpkgs-ci bot added 9.needs: reviewer This PR currently has no reviewers requested and needs attention. and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Oct 28, 2025
@Mic92 Mic92 added this pull request to the merge queue Oct 28, 2025
Merged via the queue into NixOS:master with commit 6242b00 Oct 28, 2025
54 of 56 checks passed
@github-project-automation github-project-automation bot moved this to Done in Stdenv Oct 28, 2025
@nixpkgs-ci

This comment was marked as outdated.

@wolfgangwalther
Copy link
Contributor

I think this merge was way too quick. We didn't go through a round of review on this. This introduces new Bash code against our policy. Revert in #456391, @infinisil please open it again, so that we can properly discuss it.

@infinisil
Copy link
Member Author

We should encourage quick merges, but yeah 4 hours is perhaps a bit too quick :P

But @wolfgangwalther, the policy states

New CI features need to be introduced in JavaScript, not Bash.

This is for all intents and purposes not a new CI feature. All the scripts in the PR exist already and are just extended and refactored. I don't mind writing new JS, but I do mind rewriting working bash in JS.

@wolfgangwalther
Copy link
Contributor

wolfgangwalther commented Oct 28, 2025

the policy states

New CI features need to be introduced in JavaScript, not Bash.

This is for all intents and purposes not a new CI feature. All the scripts in the PR exist already and are just extended and refactored. I don't mind writing new JS, but I do mind rewriting working bash in JS.

The discussion in #453985 (comment) explicitly mentioned such a case, so yes "significantly expanding scope of an existing bash script" is considered a feature. Now, I have not looked at the actual changes here at all, the timing alone was reason enough for a revert. But at first glance they looked like a significant review effort, which was another big reason against introducing new bash code given in #453985 (comment).

I certainly don't want to push rewriting the reviewer scripts in JavaScript onto you. I have that on my list, and will do it as part of a new feature I have in mind. But this might not play with your timeline.

Edit: To be clear - I suggest you re-open the existing PR right now, because I assume we can discuss details about the actual logic, the nix code etc., all without even looking at the bash code right now. This might not mean we immediately merge, but we will certainly be able to progress this topic further.

@infinisil infinisil changed the title First-class GitHub team reviews [Reverted] First-class GitHub team reviews Oct 28, 2025
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 6.topic: policy discussion Discuss policies to work in and around Nixpkgs 6.topic: stdenv Standard environment 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

Status: Done

Development

Successfully merging this pull request may close these issues.

First-class GitHub team support for review requests

4 participants