Skip to content

test: make fs watch test more stable - #41715

Merged
nodejs-github-bot merged 1 commit into
nodejs:masterfrom
benjamingr:test-fs-watch-non-recursive-stabilize
Jan 29, 2022
Merged

test: make fs watch test more stable#41715
nodejs-github-bot merged 1 commit into
nodejs:masterfrom
benjamingr:test-fs-watch-non-recursive-stabilize

Conversation

@benjamingr

@benjamingrbenjamingr commented Jan 27, 2022

Copy link
Copy Markdown
Member

The test currently uses a timeout to deal with a watch event for the directory being created.

This is flaky e.g. https://ci.nodejs.org/job/node-test-binary-windows-js-suites/RUN_SUBSET=2,nodes=win10-COMPILED_BY-vs2019/lastCompletedBuild/testReport/(root)/test/pummel_test_fs_watch_non_recursive_/

Instead this changes the common.mustNotCall to allow calls with testdirname so we do not depend on timing as much.

@benjamingr
benjamingrforce-pushed the test-fs-watch-non-recursive-stabilize branch from e6f5abb to ec2ac66CompareJanuary 27, 2022 10:41
@benjamingrbenjamingr added flaky-test Issues and PRs related to the tests with unstable failures on the CI. test Issues and PRs related to the tests. labels Jan 27, 2022
@nodejs-github-botnodejs-github-bot added the needs-ci PRs that need a full CI run. label Jan 27, 2022
@benjamingrbenjamingr added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 27, 2022
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 27, 2022
@nodejs-github-bot

This comment has been minimized.

Comment threadtest/pummel/test-fs-watch-non-recursive.js Outdated
Comment threadtest/pummel/test-fs-watch-non-recursive.js Outdated
@Trott

Copy link
Copy Markdown
Member

@nodejs/testing

@TrottTrott left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM if CI is green.

@benjamingr
benjamingrforce-pushed the test-fs-watch-non-recursive-stabilize branch from ec2ac66 to 92af8b3CompareJanuary 27, 2022 11:09
@benjamingrbenjamingr added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 27, 2022
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 27, 2022
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@richardlaurichardlau added the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 29, 2022
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 29, 2022
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/41715
✔ Done loading data for nodejs/node/pull/41715
----------------------------------- PR info ------------------------------------
Title test: make fs watch test more stable (#41715)
Author Benjamin Gruenbaum (@benjamingr)
Branch benjamingr:test-fs-watch-non-recursive-stabilize -> nodejs:master
Labels test, flaky-test, needs-ci
Commits 1
- test: make fs watch test more stable
Committers 1
- Benjamin Gruenbaum PR-URL: https://github.com/nodejs/node/pull/41715
Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca Reviewed-By: James M Snell ------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/41715
Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --------------------------------------------------------------------------------
ℹ This PR was created on Thu, 27 Jan 2022 10:41:26 GMT
✔ Approvals: 5
✔ - Rich Trott (@Trott) (TSC): https://github.com/nodejs/node/pull/41715#pullrequestreview-864717732
✔ - Colin Ihrig (@cjihrig) (TSC): https://github.com/nodejs/node/pull/41715#pullrequestreview-865074990
✔ - Richard Lau (@richardlau) (TSC): https://github.com/nodejs/node/pull/41715#pullrequestreview-865081510
✔ - Luigi Pinca (@lpinca): https://github.com/nodejs/node/pull/41715#pullrequestreview-865332525
✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/41715#pullrequestreview-866774036
✖ This PR needs to wait 9 more hours to land
✔ Last GitHub CI successful
ℹ Last Full PR CI on 2022-01-27T15:58:30Z: https://ci.nodejs.org/job/node-test-pull-request/42195/
- Querying data for job/node-test-pull-request/42195/
✔ Last Jenkins CI successful
--------------------------------------------------------------------------------
✔ Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/1764418351

@nodejs-github-botnodejs-github-bot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Jan 29, 2022
@richardlaurichardlau removed the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Jan 29, 2022
@TrottTrott added the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 29, 2022
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 29, 2022
@nodejs-github-bot
nodejs-github-bot merged commit 05e9cb6 into nodejs:masterJan 29, 2022
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 05e9cb6

ruyadorno pushed a commit that referenced this pull request Feb 8, 2022
PR-URL: #41715
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@ruyadornoruyadorno mentioned this pull request Feb 8, 2022
danielleadams pushed a commit that referenced this pull request Mar 2, 2022
PR-URL: #41715
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams pushed a commit that referenced this pull request Mar 3, 2022
PR-URL: #41715
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
danielleadams pushed a commit that referenced this pull request Mar 14, 2022
PR-URL: #41715
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

flaky-testIssues and PRs related to the tests with unstable failures on the CI.needs-ciPRs that need a full CI run.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@benjamingr@nodejs-github-bot@Trott@jasnell@lpinca@cjihrig@richardlau