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
.github/PULL_REQUEST_TEMPLATE: added md-to-db reminder #141820
Conversation
E.g #100057 |
could we instead or in complement suggest the install of a pre-push hook that checks this ? |
Pre-commit? And when then addition I think. |
I think there is, although nobody waits for it
…On October 16, 2021 4:07:17 PM GMT+03:00, Matthieu Coudron ***@***.***> wrote:
could we instead or in complement suggest the install of a pre-push hook that checks this ?
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#141820 (comment)
|
Oh, not pre-commit, push ones on GitHub side.
I think adding pre-commit checks is whole another discussion.
…On October 16, 2021 4:45:01 PM GMT+03:00, Moritz Hedtke ***@***.***> wrote:
Pre-commit? And when then addition I think.
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#141820 (comment)
|
I don't think we can add hooks on the server side. The CI already checks afaik so I don't think there is much room for improvement there |
CI fail on this should probably block merges then. |
Hmm, any objections? We can certainly do more here but I think this 1-line addition is good to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A CI check should be added but having both is also good.
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
A blocking commit hook is especially annoying when not properly done and failing in rebases. Also starting a nix-shell and then generating the docs takes best case a few seconds and worst case when nix starts to build things on staging a really long time. Blocking a merge because docs fail to build or are out of sync is annoying especially if the issue is unrelated and not easily fixable even by a commiter. In my opinion commiters just need to watch out if both files change and we should probably regenerate the docs in the CI that already builds the docs and make that fail if there is a diff but don't make it blocking. Also I think we should link to the full docs https://nixos.org/manual/nixpkgs/unstable/#chap-contributing to not duplicate instructions and keep a single source of truth. |
I think that it's not sufficent: that doc is not structured as a cheklist, but PR needs one.
This is already in place, but many commiters just tend to skip checks and merge right away. Also, we can try implementing checklist checker, which would be a small CI task comparing touched nixpkgs areas with checkboxes ticked in PR -- but it even sounds obnoxious) |
Is the check then grey or red? If it is grey, it should become red. If people ignore it anyway please mention that the next you see that happening.
Checking the boxes is not required and many core contributors ignore it and don't fill the template in at all, so that wouldn't really work. |
@@ -28,4 +28,5 @@ Reviewing guidelines: https://nixos.org/manual/nixpkgs/unstable/#chap-reviewing- | |||
- [ ] (Package updates) Added a release notes entry if the change is major or breaking | |||
- [ ] (Module updates) Added a release notes entry if the change is significant | |||
- [ ] (Module addition) Added a release notes entry if adding a new NixOS module | |||
- [ ] (Release notes changes) Ran `nixos/doc/manual/md-to-db.sh` to update generated release notes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that it's not sufficient: that doc is not structured as a checklist, but PR needs one.
Also this is duplicated with the point one level up. Why not convert that into a checklist instead of duplicating the info that is linked there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understood you correctly, then yeah — restructuring doc you've mentioned may prove useful.
Solution I propose tries to mitigate a pain point associated with adding "release notes" section.
As I see it, checklist itself is not designed to be a full documentation for how to contribute to nixpkgs -- it is only here to address critical-ish stuff people should really be reminded of checking before making PRs.
Even if they don't check those boxes, they would at least see that there is such thing as "generating release notes if release notes were added".
And "single source of truth" as good as it sounds wouldn't be read by most of our conributors :(
Motivation for this change
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)