-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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 code examples to node test runner #43359
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.
Thanks a bunch! cc @cjihrig
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. Thanks!
Commit Queue failed- Loading data for nodejs/node/pull/43359 ✔ Done loading data for nodejs/node/pull/43359 ----------------------------------- PR info ------------------------------------ Title doc: add code examples to node test runner (#43359) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch manekinekko:node-test-docs-update -> nodejs:master Labels doc, test Commits 3 - doc: add code examples to node test runner - Update doc/api/test.md - Update doc/api/test.md Committers 2 - Wassim Chegham - GitHub PR-URL: https://github.com/nodejs/node/pull/43359 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: Akhil Marsonya Reviewed-By: Harshitha K P Reviewed-By: Luigi Pinca Reviewed-By: James M Snell ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/43359 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: Akhil Marsonya Reviewed-By: Harshitha K P Reviewed-By: Luigi Pinca Reviewed-By: James M Snell -------------------------------------------------------------------------------- ℹ This PR was created on Thu, 09 Jun 2022 10:25:59 GMT ✔ Approvals: 6 ✔ - Benjamin Gruenbaum (@benjamingr): https://github.com/nodejs/node/pull/43359#pullrequestreview-1001843939 ✔ - Colin Ihrig (@cjihrig) (TSC): https://github.com/nodejs/node/pull/43359#pullrequestreview-1002140928 ✔ - Akhil Marsonya (@marsonya): https://github.com/nodejs/node/pull/43359#pullrequestreview-1002274416 ✔ - Harshitha K P (@HarshithaKP): https://github.com/nodejs/node/pull/43359#pullrequestreview-1002774716 ✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/43359#pullrequestreview-1003208538 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/43359#pullrequestreview-1003512636 ✖ Last GitHub CI failed ℹ Green GitHub CI is sufficient -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/2493221011 |
@manekinekko can you please update info on GitHub so we can land this automatically and (possibly) squash it to one commit :)?
|
I just made my email public. Can you try again and let me know? Thank you |
Commit Queue failed- Loading data for nodejs/node/pull/43359 ✔ Done loading data for nodejs/node/pull/43359 ----------------------------------- PR info ------------------------------------ Title doc: add code examples to node test runner (#43359) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch manekinekko:node-test-docs-update -> nodejs:master Labels doc, test, commit-queue-squash Commits 3 - doc: add code examples to node test runner - Update doc/api/test.md - Update doc/api/test.md Committers 2 - Wassim Chegham - GitHub PR-URL: https://github.com/nodejs/node/pull/43359 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: Akhil Marsonya Reviewed-By: Harshitha K P Reviewed-By: Luigi Pinca Reviewed-By: James M Snell ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/43359 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: Akhil Marsonya Reviewed-By: Harshitha K P Reviewed-By: Luigi Pinca Reviewed-By: James M Snell -------------------------------------------------------------------------------- ℹ This PR was created on Thu, 09 Jun 2022 10:25:59 GMT ✔ Approvals: 6 ✔ - Benjamin Gruenbaum (@benjamingr): https://github.com/nodejs/node/pull/43359#pullrequestreview-1001843939 ✔ - Colin Ihrig (@cjihrig) (TSC): https://github.com/nodejs/node/pull/43359#pullrequestreview-1002140928 ✔ - Akhil Marsonya (@marsonya): https://github.com/nodejs/node/pull/43359#pullrequestreview-1002274416 ✔ - Harshitha K P (@HarshithaKP): https://github.com/nodejs/node/pull/43359#pullrequestreview-1002774716 ✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/43359#pullrequestreview-1003208538 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/43359#pullrequestreview-1003512636 ✖ Last GitHub CI failed ℹ Green GitHub CI is sufficient -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/2495155286 |
⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! |
@benjamingr Sorry about that! My email is visible on my profile page though. Am I missing something? |
The change would be something to make in the first git commit. The author for that commit is:
You'll want to amend that commit to use your email address (or not I suppose if you don't want that public, in which case I can land this manually). |
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
0ea9a19
to
ed16e28
Compare
@Trott I've squashed my commits and my commit should have my email address. Let's see if that fixes the issue. |
Commit Queue failed- Loading data for nodejs/node/pull/43359 ✔ Done loading data for nodejs/node/pull/43359 ----------------------------------- PR info ------------------------------------ Title doc: add code examples to node test runner (#43359) Author Wassim Chegham (@manekinekko) Branch manekinekko:node-test-docs-update -> nodejs:main Labels doc, test Commits 1 - doc: add code examples to node test runner Committers 1 - Wassim Chegham PR-URL: https://github.com/nodejs/node/pull/43359 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: Akhil Marsonya Reviewed-By: Harshitha K P Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Franziska Hinkelmann Reviewed-By: Rich Trott ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/43359 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: Akhil Marsonya Reviewed-By: Harshitha K P Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Franziska Hinkelmann Reviewed-By: Rich Trott -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last review: ⚠ - doc: add code examples to node test runner ℹ This PR was created on Thu, 09 Jun 2022 10:25:59 GMT ✔ Approvals: 8 ✔ - Benjamin Gruenbaum (@benjamingr): https://github.com/nodejs/node/pull/43359#pullrequestreview-1001843939 ✔ - Colin Ihrig (@cjihrig) (TSC): https://github.com/nodejs/node/pull/43359#pullrequestreview-1002140928 ✔ - Akhil Marsonya (@marsonya): https://github.com/nodejs/node/pull/43359#pullrequestreview-1002274416 ✔ - Harshitha K P (@HarshithaKP): https://github.com/nodejs/node/pull/43359#pullrequestreview-1002774716 ✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/43359#pullrequestreview-1003208538 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/43359#pullrequestreview-1003512636 ✔ - Franziska Hinkelmann (@fhinkel) (TSC): https://github.com/nodejs/node/pull/43359#pullrequestreview-1006639788 ✔ - Rich Trott (@Trott) (TSC): https://github.com/nodejs/node/pull/43359#pullrequestreview-1007529851 ✔ Last GitHub CI successful ℹ Green GitHub CI is sufficient -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/2503782670 |
Commit Queue failed- Loading data for nodejs/node/pull/43359 ✔ Done loading data for nodejs/node/pull/43359 ----------------------------------- PR info ------------------------------------ Title doc: add code examples to node test runner (#43359) Author Wassim Chegham (@manekinekko) Branch manekinekko:node-test-docs-update -> nodejs:main Labels doc, test Commits 1 - doc: add code examples to node test runner Committers 1 - Wassim Chegham PR-URL: https://github.com/nodejs/node/pull/43359 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: Akhil Marsonya Reviewed-By: Harshitha K P Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Franziska Hinkelmann Reviewed-By: Rich Trott ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/43359 Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: Akhil Marsonya Reviewed-By: Harshitha K P Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Franziska Hinkelmann Reviewed-By: Rich Trott -------------------------------------------------------------------------------- ℹ This PR was created on Thu, 09 Jun 2022 10:25:59 GMT ✔ Approvals: 8 ✔ - Benjamin Gruenbaum (@benjamingr): https://github.com/nodejs/node/pull/43359#pullrequestreview-1001843939 ✔ - Colin Ihrig (@cjihrig) (TSC): https://github.com/nodejs/node/pull/43359#pullrequestreview-1002140928 ✔ - Akhil Marsonya (@marsonya): https://github.com/nodejs/node/pull/43359#pullrequestreview-1002274416 ✔ - Harshitha K P (@HarshithaKP): https://github.com/nodejs/node/pull/43359#pullrequestreview-1002774716 ✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/43359#pullrequestreview-1003208538 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/43359#pullrequestreview-1003512636 ✔ - Franziska Hinkelmann (@fhinkel) (TSC): https://github.com/nodejs/node/pull/43359#pullrequestreview-1006639788 ✔ - Rich Trott (@Trott) (TSC): https://github.com/nodejs/node/pull/43359#pullrequestreview-1008458724 ✔ Last GitHub CI successful ℹ Green GitHub CI is sufficient -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD 358008f473..72f9597d3e main -> origin/main ✔ origin/main is now up-to-date main is out of sync with origin/main. Mismatched commits: - 0c7231265a tools: update lint-md-dependencies to rollup@2.75.6 - 72f9597d3e tools: update lint-md-dependencies to rollup@2.75.6 -------------------------------------------------------------------------------- HEAD is now at 72f9597d3e tools: update lint-md-dependencies to rollup@2.75.6 ✔ Reset to origin/main - Downloading patch for 43359 From https://github.com/nodejs/node * branch refs/pull/43359/merge -> FETCH_HEAD ✔ Fetched commits as 72f9597d3e8f..ed16e2897c85 -------------------------------------------------------------------------------- [main 3cab79599a] doc: add code examples to node test runner Author: Wassim Chegham Date: Thu Jun 9 12:23:40 2022 +0200 1 file changed, 43 insertions(+) ✔ Patches applied -------------------------------------------------------------------------------- --------------------------------- New Message ---------------------------------- doc: add code examples to node test runnerhttps://github.com/nodejs/node/actions/runs/2506616458 |
It looks like the automatic merge is still failing. @Trott maybe you can merge this manually then (if that's possible). I don't know how to fix it. Sorry about the inconvenience 😃 |
Landed in 6975dd1. |
PR-URL: #43359 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@manekinekko what happened is that you merged a suggestion by @aduh95 into this PR, when you squashed it included the Co-Authored-By part which node-core-utils doesn't currently (fully) support automatically so a member (in this case Luigi) fixed the formatting and landed it. |
Thank you @benjamingr for the explanation. And thank you @lpinca for landing this PR 💖 |
PR-URL: #43359 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Depends on #42658 |
PR-URL: #43359 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: nodejs/node#43359 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Add a few code examples to the
TestContext
docs.cc @benjamingr @fhinkel