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

test: fix typos #55063

Merged
merged 2 commits into from
Sep 28, 2024
Merged

test: fix typos #55063

merged 2 commits into from
Sep 28, 2024

Conversation

NathanBaulch
Copy link
Contributor

Just thought I'd contribute some typo fixes that I stumbled on. Nothing controversial (hopefully).

Use the following command to get a quick summary of the specific corrections made:

git diff HEAD^! --word-diff-regex='\w+' -U0 \
  | grep -E '\[\-.*\-\]\{\+.*\+\}' \
  | sed -r 's/.*\[\-(.*)\-\]\{\+(.*)\+\}.*/\1 \2/' \
  | sort | uniq -c | sort -n

FWIW, the top typos are:

  • exptected
  • conent
  • compatability
  • verifiy
  • determing
  • occurence
  • declaraion
  • inut
  • destroyd
  • splitted
  • treshold
  • thowing
  • descripton
  • seperator
  • preceeding
  • triggerred

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/single-executable
  • @nodejs/web-standards

@nodejs-github-bot nodejs-github-bot added addons Issues and PRs related to native addons. esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Sep 22, 2024
@panva
Copy link
Member

panva commented Sep 22, 2024

@NathanBaulch thank you for your first contribution!

I only skimmed through the changed files to see if anything stands out, don't take this as a review of your changes as a whole, just this bit:

Please revert all changes made in the test/fixtures/wpt directory (and its sub-directories), those are coming from an upstream project.

@panva
Copy link
Member

panva commented Sep 22, 2024

I would also recommend to split the remaining typo fixes into 3 separate PRs

  • typo fixes to file content's comments
  • typo fixes to file content's non-comments
  • typo fixes in file names

@NathanBaulch
Copy link
Contributor Author

Sure, we can start with the comment typos in this PR @panva - I've restored all the non-comment ones.

@panva panva added the request-ci Add this label to start a Jenkins CI on a PR. label Sep 24, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Sep 24, 2024
@nodejs-github-bot
Copy link
Collaborator

Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.25%. Comparing base (ffe0dc5) to head (45ca0fd).
Report is 401 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #55063   +/-   ##
=======================================
  Coverage   88.24%   88.25%           
=======================================
  Files         651      651           
  Lines      183877   183877           
  Branches    35853    35858    +5     
=======================================
+ Hits       162269   162281   +12     
+ Misses      14899    14892    -7     
+ Partials     6709     6704    -5     

see 25 files with indirect coverage changes

@nodejs-github-bot
Copy link
Collaborator

@@ -171,7 +171,7 @@ const buildType = process.config.target_defaults ?

// If env var is set then enable async_hook hooks for all tests.
if (process.env.NODE_TEST_WITH_ASYNC_HOOKS) {
const destroydIdsList = {};
const destroyIdsList = {};
Copy link
Member

Choose a reason for hiding this comment

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

Should this be "destroy" or "destroyed"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't sure, happy to change it.

@nodejs-github-bot
Copy link
Collaborator

@RedYetiDev RedYetiDev added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Sep 27, 2024
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina added the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 28, 2024
@nodejs-github-bot nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Sep 28, 2024
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/55063
✔  Done loading data for nodejs/node/pull/55063
----------------------------------- PR info ------------------------------------
Title      test: fix typos (#55063)
   ⚠  Could not retrieve the email or name of the PR author's from user's GitHub profile!
Branch     NathanBaulch:typos-test -> nodejs:main
Labels     test, addons, esm, author ready, needs-ci
Commits    2
 - test: fix typos
 - test: restore non-comment typos
Committers 1
 - Nathan Baulch <[email protected]>
PR-URL: https://github.com/nodejs/node/pull/55063
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/55063
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
--------------------------------------------------------------------------------
   ℹ  This PR was created on Sun, 22 Sep 2024 11:01:35 GMT
   ✔  Approvals: 2
   ✔  - Filip Skokan (@panva): https://github.com/nodejs/node/pull/55063#pullrequestreview-2324365793
   ✔  - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/55063#pullrequestreview-2334977790
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2024-09-27T15:26:50Z: https://ci.nodejs.org/job/node-test-pull-request/62803/
- Querying data for job/node-test-pull-request/62803/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  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
   18acff0d01..f5d454ac7e  main       -> origin/main
✔  origin/main is now up-to-date
main is out of sync with origin/main. Mismatched commits:
 - 5aadbb8ad2 src: add receiver to fast api callback methods
 - f5d454ac7e src: add receiver to fast api callback methods
--------------------------------------------------------------------------------
HEAD is now at f5d454ac7e src: add receiver to fast api callback methods
   ✔  Reset to origin/main
- Downloading patch for 55063
From https://github.com/nodejs/node
 * branch                  refs/pull/55063/merge -> FETCH_HEAD
✔  Fetched commits as f5d454ac7e6b..45ca0fd106d8
--------------------------------------------------------------------------------
Auto-merging test/es-module/test-typescript.mjs
[main 1348c25f7f] test: fix typos
 Author: Nathan Baulch <[email protected]>
 Date: Sun Sep 22 15:03:43 2024 +1000
 72 files changed, 275 insertions(+), 275 deletions(-)
 rename test/benchmark/{test-bechmark-readline.js => test-benchmark-readline.js} (100%)
Auto-merging test/es-module/test-typescript.mjs
[main f1e42cb278] test: restore non-comment typos
 Author: Nathan Baulch <[email protected]>
 Date: Tue Sep 24 11:56:41 2024 +1000
 33 files changed, 231 insertions(+), 231 deletions(-)
 rename test/benchmark/{test-benchmark-readline.js => test-bechmark-readline.js} (100%)
   ✔  Patches applied
There are 2 commits in the PR. Attempting autorebase.
Rebasing (2/4)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
test: fix typos

PR-URL: #55063
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>

[detached HEAD a892fa29fd] test: fix typos
Author: Nathan Baulch <[email protected]>
Date: Sun Sep 22 15:03:43 2024 +1000
72 files changed, 275 insertions(+), 275 deletions(-)
rename test/benchmark/{test-bechmark-readline.js => test-benchmark-readline.js} (100%)
Rebasing (3/4)
Rebasing (4/4)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
test: restore non-comment typos

PR-URL: #55063
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>

[detached HEAD a5bfc4cefb] test: restore non-comment typos
Author: Nathan Baulch <[email protected]>
Date: Tue Sep 24 11:56:41 2024 +1000
33 files changed, 231 insertions(+), 231 deletions(-)
rename test/benchmark/{test-benchmark-readline.js => test-bechmark-readline.js} (100%)

Successfully rebased and updated refs/heads/main.

ℹ Add commit-queue-squash label to land the PR as one commit, or commit-queue-rebase to land as separate commits.

https://github.com/nodejs/node/actions/runs/11082939946

@aduh95 aduh95 added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels Sep 28, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 28, 2024
@nodejs-github-bot nodejs-github-bot merged commit 28c7394 into nodejs:main Sep 28, 2024
72 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 28c7394

@NathanBaulch NathanBaulch deleted the typos-test branch September 29, 2024 06:59
targos pushed a commit that referenced this pull request Oct 4, 2024
PR-URL: #55063
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
targos pushed a commit that referenced this pull request Oct 4, 2024
PR-URL: #55063
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
@NathanBaulch NathanBaulch mentioned this pull request Oct 9, 2024
@aduh95 aduh95 mentioned this pull request Oct 9, 2024
louwers pushed a commit to louwers/node that referenced this pull request Nov 2, 2024
PR-URL: nodejs#55063
Reviewed-By: Filip Skokan <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
@marco-ippolito marco-ippolito added the dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. label Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addons Issues and PRs related to native addons. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants