Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
RFC-0053: defining pull-request workflow #53
RFC-0053: defining pull-request workflow #53
Changes from 5 commits
426e923
8bc00aa
5dbdf06
14f7a12
d5f78fa
07bfbec
d44a6cc
a731644
3682c00
1087e41
7d9c905
df31178
11bbd1c
2d2a28a
4a730fc
268a343
a4a63ee
9d9d570
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
It is a common practice that the merger, will backport changes without having a backport pull request.
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.
The pull-request is created in by the contributor in the 5th line, right below the bar.
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.
Tbh I'm not sure if that rule is too strict: I remember several cases where I actually wanted to write a test, but failed to find a suitable approach. One example that comes to my mind right now would be the autorandr module where you'd have to simulate several monitors in the test VM.
I'd rather go with "reviewers should encourage contributors to write tests for new modules" to make it clear that we want to have tests but if there's no way around this, it's still fine to skip that task.
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.
True, it is not possible to create module tests for everything.
Implies it is the responsibility of the reviewer to make sure tests are written (if possible). I can live with that.
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 guess another approach is to say that «new modules should have tests or an explicit description of problems with testing (e.g. hardware interaction)»
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.
Random idea: how about something like
@ofborg backport 19.09
?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.
The problem is the bot would create the pull-request and the contributor must be able to edit it.
There are two backport possibilities
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.
And the main catch is what happens if person A creates a PR and person B requests a backport…
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 the PR should include this. In case the update cannot go through
master
/staging
/staging-next
it should be made directly againstrelease-YY.MM
orstaging-YY.MM
.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.
So this would follow the rules of a normal pull-request, just to a different branch?
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.
And with an extra sentence about the reasons it's irrelevant for
master
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.
@FRidh I think I should also put some more information about the branch structure we have. Bad thing is that I don't know the way we use branches. I know the
master
andrelease
branches. But I don't know what the other branches in https://github.com/nixos/nixpkgs/ are for and how they interact with each other.These branches look like I should write about them:
staging
than for? I guess your pull-request goes tomaster
, and than you backport tostaging-next
andstaging
.staging-next
than for? I guess your pull-request goes tomaster
, and than you backport tostaging-next
andstaging
.staging-yy.mm
: Hmm we havestaging
andstaging-next
why do we need astaging-19.09
?release-yy.mm
: I guess this is the branch which tracks the so called stable channels (nixpkgs-19.03, nixpkgs-19.09, ... ).Did I miss one?
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.
Ah I found #26 I will read it and come back to this comment.
Large diffs are not rendered by default.
Large diffs are not rendered by default.