Skip to content

ci: request subsystem maintainers review#1053

Merged
trueNAHO merged 1 commit intonix-community:masterfrom
0xda157:ping-maintainers
Jul 30, 2025
Merged

ci: request subsystem maintainers review#1053
trueNAHO merged 1 commit intonix-community:masterfrom
0xda157:ping-maintainers

Conversation

@0xda157
Copy link
Copy Markdown
Contributor

@0xda157 0xda157 commented Mar 24, 2025

Still WIP, waiting for move to nix-community

@danth
Copy link
Copy Markdown
Member

danth commented Mar 26, 2025

When this is complete we can also remove the "Maintainer CC" section from the pull request template

@0xda157
Copy link
Copy Markdown
Contributor Author

0xda157 commented Mar 27, 2025

anyone know why this error is happening?

 error:
       … in the condition of the assert statement
         at /nix/store/g4ppspdl4fy7hnp4jgjl4ll03v7i08w3-source/pkgs/build-support/trivial-builders/default.nix:136:5:
          135|     # TODO: To fully deprecate, replace the assertion with `lib.isString` and remove the warning
          136|     assert lib.assertMsg (lib.strings.isConvertibleWithToString text) ''
             |     ^
          137|       pkgs.writeText ${lib.strings.escapeNixString name}: The second argument should be a string, but it's a ${builtins.typeOf text} instead.'';

       … in the left operand of the OR (||) operator
         at /nix/store/g4ppspdl4fy7hnp4jgjl4ll03v7i08w3-source/lib/asserts.nix:39:31:
           38|   # TODO(Profpatsch): add tests that check stderr
           39|   assertMsg = pred: msg: pred || builtins.throw msg;
             |                               ^
           40|

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: attribute 'name' missing

@0xda157 0xda157 force-pushed the ping-maintainers branch 2 times, most recently from 53a468b to 94ebde1 Compare April 11, 2025 18:58
Copy link
Copy Markdown
Member

@trueNAHO trueNAHO left a comment

Choose a reason for hiding this comment

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

The

nix build .#get-maintainers

command is failing with:

       error: expected a list but found a string: "<GITHUB_ID>"

@0xda157 0xda157 force-pushed the ping-maintainers branch 2 times, most recently from 3825455 to f3e490b Compare April 29, 2025 16:49
Copy link
Copy Markdown
Member

@trueNAHO trueNAHO left a comment

Choose a reason for hiding this comment

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

The code LGTM, although it is hard to say whether this actually works because GitHub Actions are fairly confusing sometimes.

@danth, do you think the current MAX_MAINTAINERS=5 approach is a reasonable heuristic to avoid accidental pings?

Copy link
Copy Markdown
Member

@trueNAHO trueNAHO left a comment

Choose a reason for hiding this comment

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

LGTM.

Let's wait a bit longer on danth's opinion:

@danth, do you think the current MAX_MAINTAINERS=5 approach is a reasonable heuristic to avoid accidental pings?

@MattSturgeon
Copy link
Copy Markdown
Member

FYI: I believe you can only request review for people who have some rights on the repo (triage I believe).

That's the main reason the NixOS org has a "NixOS/nixpkgs-maintainers" team, see RFC-39.

If maintainers don't join that team (or at least join the org), ofborg can't request their review on PRs.

The github docs hint at the requirements to request and/or be requested, but the phrasing is kinda vague in places.

@0xda157
Copy link
Copy Markdown
Contributor Author

0xda157 commented May 15, 2025

FYI: I believe you can only request review for people who have some rights on the repo (triage I believe).

That's the main reason the NixOS org has a "NixOS/nixpkgs-maintainers" team, see RFC-39.

If maintainers don't join that team (or at least join the org), ofborg can't request their review on PRs.

The github docs hint at the requirements to request and/or be requested, but the phrasing is kinda vague in places.

hmmm if/when when move to nix-community (me and danth have agreed on this, waiting for response from @trueNAHO) we could make a stylix maintainers team, not sure if it would make sense to add people as triagers on the current repo.

@MattSturgeon
Copy link
Copy Markdown
Member

MattSturgeon commented May 15, 2025

not sure if it would make sense to add people as triagers on the current repo

Triage only gives non-critical perms, like managing issues, assigning people, requesting reviews, being requestable, etc (OTTOMH).

Generally, if you trust someone to maintain a target module, you should trust them with that level of perm. If someone abuses triage perms then they shouldn't be a maintainer in the first place 🤠

You'd probably want two teams; core-maintainers and target-maintainers. Ideally core-maintainers and/or a bot would have perms to add people to the target-maintainers team, so the nix-comnunity admins don't need constant involvement.

That should be straightforward to set up.

@0xda157
Copy link
Copy Markdown
Contributor Author

0xda157 commented May 17, 2025

sounds like continuing with this requires @danth who has been busy recently, so this pr will await his return.


@trueNAHO if you could respond to that email from danth about the nix-communtiy that would be great

@danth
Copy link
Copy Markdown
Member

danth commented May 17, 2025

do you think the current MAX_MAINTAINERS=5 approach is a reasonable heuristic to avoid accidental pings?

Yes, this seems reasonable. A single module having more than 5 active maintainers seems unlikely, and pinging people for many-module changes is what we want to avoid.

I believe you can only request review for people who have some rights on the repo

From the UI, I believe this is the case (it only gives me core maintainers and Copilot as possible choices).

We could either:

  • Wait until we migrate to nix-community, and create a target maintainers team (if the nix-community admins agree to this)
  • Or, change the script to just ping people in a comment rather than formally requesting a review

@danth
Copy link
Copy Markdown
Member

danth commented May 21, 2025

Wait until we migrate to nix-community, and create a target maintainers team

@zowoq is working on automatically adding our maintainers to a team in nix-community, see nix-community/infra#1837

@zowoq
Copy link
Copy Markdown

zowoq commented Jul 28, 2025

sounds like @zowoq needs to approve the changes before it takes effect.

Done.

Would transferring ownership of the app to nix-community help with this? I can't see any other way to grant other people access to it.

I think transferring the app would allow access to other people but changes still need to be approved by by an org owner anyway.

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
@0xda157 0xda157 force-pushed the ping-maintainers branch from c36fbda to dadbbb6 Compare July 30, 2025 00:45
@trueNAHO trueNAHO changed the title ci: review request maintainers ci: request subsystem maintainers review Jul 30, 2025
@trueNAHO trueNAHO merged commit b4e1daa into nix-community:master Jul 30, 2025
6 checks passed
@stylix-automation
Copy link
Copy Markdown
Contributor

Successfully created backport PR for release-25.05:

stylix-automation bot pushed a commit that referenced this pull request Jul 30, 2025
Link: #1053

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
(cherry picked from commit b4e1daa)
@github-actions github-actions bot added the has: port to stable This has been backported to the latest stable branch label Jul 30, 2025
trueNAHO added a commit that referenced this pull request Jul 30, 2025
Link: #1053

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
(cherry picked from commit b4e1daa)
@0xda157 0xda157 deleted the ping-maintainers branch July 30, 2025 17:22
trueNAHO added a commit to trueNAHO/stylix that referenced this pull request Aug 7, 2025
Fixes: b4e1daa ("ci: request subsystem maintainers review (nix-community#1053)")

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
trueNAHO added a commit that referenced this pull request Aug 7, 2025
…1825)

Fixes: b4e1daa ("ci: request subsystem maintainers review (#1053)")
Link: #1825

Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
trueNAHO added a commit to trueNAHO/stylix that referenced this pull request Aug 18, 2025
Fixes: b4e1daa ("ci: request subsystem maintainers review (nix-community#1053)")
trueNAHO added a commit that referenced this pull request Aug 18, 2025
Fixes: b4e1daa ("ci: request subsystem maintainers review (#1053)")
Link: #1848

Reviewed-by: Daniel Thwaites <danth@danth.me>
stylix-automation bot pushed a commit that referenced this pull request Aug 18, 2025
Fixes: b4e1daa ("ci: request subsystem maintainers review (#1053)")
Link: #1848

Reviewed-by: Daniel Thwaites <danth@danth.me>
(cherry picked from commit 9810b32)
trueNAHO added a commit that referenced this pull request Aug 18, 2025
Fixes: b4e1daa ("ci: request subsystem maintainers review (#1053)")
Link: #1848

Reviewed-by: Daniel Thwaites <danth@danth.me>
(cherry picked from commit 9810b32)
make-42 pushed a commit to make-42/stylix that referenced this pull request Sep 13, 2025
Link: nix-community#1053

Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
make-42 pushed a commit to make-42/stylix that referenced this pull request Sep 13, 2025
Fixes: b4e1daa ("ci: request subsystem maintainers review (nix-community#1053)")
Link: nix-community#1848

Reviewed-by: Daniel Thwaites <danth@danth.me>
trueNAHO added a commit to trueNAHO/stylix that referenced this pull request Nov 17, 2025
Checkout the PR instead of the potentially arbitrarily diverged base
branch.

Fixes: b4e1daa ("ci: request subsystem maintainers review (nix-community#1053)")
trueNAHO added a commit to trueNAHO/stylix that referenced this pull request Nov 17, 2025
Checkout the PR instead of the potentially arbitrarily diverged base
branch.

Fixes: b4e1daa ("ci: request subsystem maintainers review (nix-community#1053)")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

has: port to stable This has been backported to the latest stable branch topic: ci /.github/ subsystem topic: flake /flake.nix, /flake.lock, and /flake/ subsystems

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants