Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CONTRIBUTING: Add note about how to commit new maintainers-list.nix entry #248013

Merged

Conversation

matthiasbeyer
Copy link
Contributor

In #247972 I found that the contributing file does not say how to add a maintainer, only the manual does (as @ius said in above PR).

Maybe we can add a note here.

@Janik-Haag
Copy link
Member

this probably relates to #245243

ius
ius previously requested changes Aug 8, 2023
Copy link
Contributor

@ius ius left a comment

Choose a reason for hiding this comment

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

Thanks, beat me to it.

Two remarks:

  1. <your github handle>: just handle I think, see this remark - it doesn't have to be a GitHub username (not all GH names are valid attribute anyway, I think?)

  2. Related: I wonder whether it should be explicit about submitting it as a separate commit. I think it makes sense and I see many reviewers request this, but on the other hand most committers/the GitHub default end up creating a merge commit, thus hiding said commit?

@matthiasbeyer
Copy link
Contributor Author

Fixed what you suggested!

I will squash this if someone requests it.

CONTRIBUTING.md Outdated Show resolved Hide resolved
@infinisil
Copy link
Member

this probably relates to #245243

Thanks for spreading awareness, I'd love some reviews for that once it's not a draft anymore btw, feel free to subscribe to it!

That PR is still a bit too much in flux though, I don't think it should be blocking this PR here. I can rebase my PR once this one is merged (yeah it's a bit annoying to rebase when things have been moved, but I can manage 😉)

@Lord-Valen
Copy link
Contributor

  1. Related: I wonder whether it should be explicit about submitting it as a separate commit. I think it makes sense and I see many reviewers request this, but on the other hand most committers/the GitHub default end up creating a merge commit, thus hiding said commit?

I think it should be. Also, merge commits don't hide other commits if what you mean by "hide" is something that implies that they somehow aren't in the branch. A merge commit adds a new commit with two parent commits (the latest commit of each branch) that resolves any conflicts. Both parent commits are included in the receiving branch. You might think that merge commits hide other commits since the dates of those commits don't change and the merge commit diff shows the same changes. A merge commit can occur any amount of time after its parents, which can result in a large distance between them. With the velocity of Nixpkgs, that usually means the merge commit and one of the parents have quite a few commits between them. Here's an example: 195975b merges abc3cc0 into master on e04428a.
Right now there are 22 commits on master in the time between 195975b and abc3cc0.

If you want to see an example of a merge commit for a PR with an additional maintainers: commit, you could explore the parents of 36ea4a4.

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
@VuiMuich
Copy link
Contributor

VuiMuich commented Sep 2, 2023

On my PR adding myself to maintainers #250939 I got advised to reorder the commits, so it is before the package commit. Might be worth adding a side note for this being preferred.
Idk if this technically makes any CI checks easier (fail earlier in eval maybe?), but logically it makes sense at least.

Edit: added the PR reference

Copy link
Contributor

@fricklerhandwerk fricklerhandwerk left a comment

Choose a reason for hiding this comment

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

@matthiasbeyer please rebase.

CONTRIBUTING.md Outdated Show resolved Hide resolved
Copy link
Member

@infinisil infinisil left a comment

Choose a reason for hiding this comment

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

This is in the wrong place now, should be in maintainers/README.md

@fricklerhandwerk
Copy link
Contributor

@infinisil: this section is about commit formatting. The organizational details are in the other file. I think it makes sense to have it here, and also use the opportunity to direct people to the new extended page.

@infinisil
Copy link
Member

True there are commit conventions in CONTRIBUTING.md, but they're further down. I'd be fine with it there, but I do think it should be in maintainers/README.md in the future (and same for package commit conventions, which should be in pkgs/README.md). But the PR here currently adds it to the PR template section, which is definitely wrong.

@VuiMuich
Copy link
Contributor

VuiMuich commented Sep 2, 2023

I agree, that it would be a better fit in the "How to create pull requests" section, probably as part of bullet 4.

Imo it would not hurt to double this small information in both the CONTRIBUTING.md and maintainers/README.md as it is easy to be overlooked.

@infinisil
Copy link
Member

infinisil commented Sep 2, 2023

@VuiMuich I'd rather not have it be duplicated. It makes it harder to know which part should be updated, or if you don't know about both parts they could get outdated. I think it's better to improve the linking between the sections.

I agree, that it would be a better fit in the "How to create pull requests" section, probably as part of bullet 4.

Step 4 links to the commit conventions here, where there's already information about the commit message formatting, it should be added there :)

Copy link
Member

@cafkafk cafkafk left a comment

Choose a reason for hiding this comment

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

Comma nitpick but lgtm

CONTRIBUTING.md Outdated Show resolved Hide resolved
@VuiMuich
Copy link
Contributor

VuiMuich commented Sep 3, 2023

I can follow that "harder to update" argument very well and as I have stumbled on a bunch of such discrepancies between different docs in the bigger nix eco system. With this in mind, I agree now, to better avoid this duplication.

Also putting it as a bullet in the "commit conventions" totally makes sense.

@fricklerhandwerk
Copy link
Contributor

@matthiasbeyer can you follow up with the changes? Since there seems to be a lot of energy behind this right now, if you lack time the docs team can take this over.

@matthiasbeyer
Copy link
Contributor Author

I was traveling today, I can have a look tomorrow!

@matthiasbeyer matthiasbeyer force-pushed the contributing/add-how-to-maintainer branch from c540df9 to 8e8eec5 Compare September 4, 2023 06:19
@matthiasbeyer
Copy link
Contributor Author

Squashed the comma commit from @cafkafk and added a new one moving the text block to "commit conventions" as per request.

I can squash these commits as well, if you like!

@cafkafk
Copy link
Member

cafkafk commented Sep 4, 2023

It probably makes most sense to have just a single commit for this, instead of one adding it and another moving it.

…ntry

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
@matthiasbeyer matthiasbeyer force-pushed the contributing/add-how-to-maintainer branch from 8e8eec5 to aa25691 Compare September 4, 2023 08:29
@asymmetric
Copy link
Contributor

Not sure if here or in another PR, but it would be good to also document how to add oneself to meta.maintainers, meaning just what you did in this PR:

  • how the commit should be formatted
  • the placement (together with a commit making a change to a package, or separately?)

Same for removal probably.

@infinisil
Copy link
Member

@asymmetric It's mostly there in maintainers/README.md, though it could use a bit of work

Copy link
Contributor

@fricklerhandwerk fricklerhandwerk left a comment

Choose a reason for hiding this comment

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

Let's merge this first and follow up afterwards.

@infinisil infinisil merged commit 4f71826 into NixOS:master Sep 6, 2023
16 checks passed
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.