-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
doc: add descriptions of CI jobs #12555
Conversation
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.
Mostly looks good! Couple of minor nits.
Could you please wrap to 80 chars? Obviously don't break up a line/link if it messes up the Markdown formatting.
COLLABORATOR_GUIDE.md
Outdated
only runs the linter targets, which is useful for changes that only affect comments or documentation. | ||
|
||
* [`citgm-smoker`](https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/) | ||
uses CitGM to allow you to run npm install && npm test on a large selection of common modules. This is useful to check whether a change will cause breakage in the ecosystem. To test node ABI changes you can run [citgm-abi-smoker](https://ci.nodejs.org/view/Node.js-citgm/job/citgm-abi-smoker/). |
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.
Maybe add a link to CitGM:
CitGM ->
[CitGM](https://github.com/nodejs/citgm)
Backticks:
npm install && npm test ->
npm install && npm test
For consistency:
[citgm-abi-smoker] -> [
citgm-abi-smoker
]
COLLABORATOR_GUIDE.md
Outdated
@@ -87,6 +87,23 @@ All pull requests that modify executable code should be subjected to | |||
continuous integration tests on the | |||
[project CI server](https://ci.nodejs.org/). | |||
|
|||
Here is a summary of current CI jobs: |
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.
Maybe:
Here are some useful CI jobs:
We don't want to imply that this is an exhaustive list.
Please could you format your commit message according to the Contributing Guidelines? Maybe something like this?
If you don't have time it can be rewritten by whoever lands this, but if you are going to help out more on the project (as I hope you do), then it saves work if you produce better commit messages. The Also at the moment your Git author name and email address are set to:
People usually choose to use their full names for commits. To set your name globally you can do: git config --global user.name "REPLACE ME"
git config --global user.email "memthings@gmail.com" # Or whichever email address you prefer. To change the author for a single commit you can do: git commit --amend --author="REPLACE ME <memthings@gmail.com>"
git push --force-with-lease If you don't want to have your name against this commit, that's fine too. |
@morrme thanks a lot for doing this! Suggesting changes is no trouble when people are responsive. Let me know if you want me to change your name/email on landing. |
@gibfahn it was my pleasure ! as for the name: no, it's no big deal, as long as it doesn't affect anything on your end. |
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.
LGTM
COLLABORATOR_GUIDE.md
Outdated
only runs the linter targets, which is useful for changes that only affect comments | ||
or documentation. | ||
|
||
* [`citgm-smoker`](https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/) |
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.
This could be the shorter https://ci.nodejs.org/job/citgm-smoker/
if you omit the view/Node.js-citgm
. Same for citgm-abi-smoker
later in this paragraph.
COLLABORATOR_GUIDE.md
Outdated
is designed to allow one to run a single test over and over on a specific platform | ||
to confirm that the test is reliable. | ||
|
||
* [`node-test-commit`](https://ci.nodejs.org/job/node-test-commit/) |
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.
Is this job intended to be manually run, as opposed to being started by node-test-pull-request
? If there isn't a good use case for running this job without running node-test-pull-request
then I would be inclined not to include it as a separate bullet point.
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 sometime manually run when people just want to test a commit rather than a Pull Request. I don't think there's any particular reason to, as you can just choose not to rebase, which is all node-test-pull-request
really does before starting node-test-commit
. So it probably does make sense not to include it for now. If someone has a good reason to re-add it, they can do it later.
COLLABORATOR_GUIDE.md
Outdated
@@ -318,7 +337,7 @@ information regarding the change process: | |||
|
|||
- A `PR-URL:` line that references the *full* GitHub URL of the original | |||
pull request being merged so it's easy to trace a commit back to the | |||
conversation that led up to that change. | |||
conversation that led up to that change. |
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.
Extraneous whitespace change here?
COLLABORATOR_GUIDE.md
Outdated
@@ -87,6 +87,25 @@ All pull requests that modify executable code should be subjected to | |||
continuous integration tests on the | |||
[project CI server](https://ci.nodejs.org/). | |||
|
|||
Here are some useful CI jobs: |
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.
Perhaps make this a heading?
#### Useful CI Jobs
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.
Should I make the change now or wait until someone else agrees ? Not sure of the protocol here. @gibfahn ?
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.
@morrme if it seems reasonable to you then go for it. The only downside to implementing suggested changes is that if lots of people disagree you might have to change it back. This one doesn't seem very controversial, so yeah I'd go ahead and change it.
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.
LGTM with @jasnell's comments addressed.
COLLABORATOR_GUIDE.md
Outdated
* [`citgm-smoker`](https://ci.nodejs.org/job/citgm-smoker/) | ||
uses [`CitGM`](https://github.com/nodejs/citgm) to allow you to run `npm install && npm test` | ||
on a large selection of common modules. This is useful to check whether a change will | ||
cause breakage in the ecosystem. To test node ABI changes you can run [`citgm-abi-smoker`](https://ci.nodejs.org/job/citgm-abi-smoker/). |
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.
Should this be changed to
To test Node ABI changes
or
To test Node.js ABI changes
or is it fine as is?
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.
Yes please, Node.js
in text wherever possible.
Impressed that you're reviewing your own PR 😁.
COLLABORATOR_GUIDE.md
Outdated
cause breakage in the ecosystem. To test node ABI changes you can run [`citgm-abi-smoker`](https://ci.nodejs.org/job/citgm-abi-smoker/). | ||
|
||
* [`node-stress-single-test`](https://ci.nodejs.org/job/node-stress-single-test/) | ||
is designed to allow one to run a single test over and over on a specific platform |
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 single test
-> a group of tests
Fixes: #12021 I made the suggested changes and created a navigation link to maintain consistency with other section headings.
@jasnell LGTY? |
@gibfahn there are some conflicts now (i guess because something else was merged ahead of this?). looks like it's just my addition of this section to the TOC. |
Thanks for the ping, looks like this got lost. Please could you rebase this on |
@gibfahn no luck. I can try starting over if that will help. |
@morrme what do you mean by "no luck". In the worst case you should be able to start a rebase which will fail and then you will need to manually resolve the conflict. At that point you should then be able to force push to this branch. |
If you need help to walk through those steps just let me know. |
@mhdawson It did not work for me. I also tried to resolve the conflict manually but that didn't work either. I could try doing a new PR to get it done quickly... |
@morrme I recommend doing this: git fetch --all # Update all your remotes
git checkout doc-ci-jobs # Make sure you're on the right branch
git reset --hard @~ # drop the last commit (the merge one)
git rebase -i @~9 # rebase on HEAD~9 as you made 9 commits
git rebase upstream/master # Rebase on the upstream, should be easier now there's just one commit
git status # Shows you the file that has conflicts, in this case COLLABORATOR_GUIDE.md
Before:After:(Note that I kept the bit marked git add COLLABORATOR_GUIDE.md
git rebase --continue
git status # Will show that your branch has diverged from origin/doc-ci-jobs
git push --force-with-lease # Overwrite your remote branch with the updated local one Let me know if that works for you. EDIT: I recommend trying to work through and understand the git squash and rebase workflow, it's pretty opaque initially, but once you get used to it it makes sense. Let me know if you have any questions. |
@morrme if it helps I'm happy to arrange a time to do a hangout/zoom to work through it. |
I'm afraid not, it looks like at some point you did a If you follow what I suggested it should work, you just have to remove the extra commit you added, I'll update that comment (EDIT: updated the instructions) |
@gibfahn There was a button on the PR that allowed me to fix the resolution manually. I hadn't gotten anywhere with it but your instructions actually helped that too. That's the merge commit you see from 2 days ago. |
The problem with that is that the CI will fail if you use the web UI to fix issues, as it rebases onto the latest master (to make sure there aren't any incompatibilities). IMO this is an issue with the |
@morrme, at this point I'd say feel free to submit a new PR with your changes. Somebody else could pick it up it but since you've done the work to get it this far, it would be nice to see it be tagged with your name. |
I applied your commits to a branch on my fork, rebased and squashed. Branch: https://github.com/gibfahn/node/tree/doc-ci-jobs |
@morrme thank you for your contribution. We make good progress on Node.js only because of the contributions of a broad range of people like yourself. |
@morrme in general the worst that can happen is you lose your changes, so in general feel free to try things (history is usually recoverable anyway). If you want to contribute again feel free! |
PR-URL: nodejs#12555 Fixes: nodejs#12021 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Fixes: #12021
Checklist