Skip to content

vfs: speed up recursive readdir test setup - #64813

Open
trivikr wants to merge 1 commit into
nodejs:mainfrom
trivikr:flaky-test-vfs-readdir-symlink-recursive
Open

vfs: speed up recursive readdir test setup#64813
trivikr wants to merge 1 commit into
nodejs:mainfrom
trivikr:flaky-test-vfs-readdir-symlink-recursive

Conversation

@trivikr

@trivikr trivikr commented Jul 29, 2026

Copy link
Copy Markdown
Member

Refs: https://github.com/nodejs/reliability/issues?q=sort%3Aupdated-desc%20%22test-vfs-readdir-symlink-recursive%22

The deep-tree test created 1,000 directories individually using
increasingly long paths. Repeatedly resolving those paths made the test
slow enough to reach the timeout on Windows CI under load.

Construct the final path first and create the directory tree with one
recursive mkdirSync() call. This preserves the depth and recursive
readdir coverage while avoiding the expensive setup.

Locally, on macOS, the targeted test runtime decreased from approximately
10 seconds to less than one second.


Assisted-by: codex:gpt-5.6-sol

Create the deep directory tree with one recursive mkdirSync() call.
This avoids repeatedly resolving increasingly long paths and prevents
timeouts on slower CI hosts.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: codex:gpt-5.6-sol
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Jul 29, 2026
@trivikr

trivikr commented Jul 29, 2026

Copy link
Copy Markdown
Member Author

Stress test can't be run on win10-vs2019 because of missing clang dependency
https://openjs-foundation.slack.com/archives/C03BJP63CH0/p1783671641485769?thread_ts=1783477923.723679&cid=C03BJP63CH0

@trivikr
trivikr marked this pull request as ready for review July 29, 2026 03:38
@trivikr trivikr added flaky-test Issues and PRs related to the tests with unstable failures on the CI. request-ci Add this label to start a Jenkins CI on a PR. vfs Issues and PRs related to the virtual filesystem subsystem. labels Jul 29, 2026
@trivikr trivikr added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Jul 29, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 29, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.13%. Comparing base (6d0db4a) to head (364330b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #64813      +/-   ##
==========================================
- Coverage   90.15%   90.13%   -0.02%     
==========================================
  Files         746      746              
  Lines      242660   242660              
  Branches    45716    45721       +5     
==========================================
- Hits       218763   218724      -39     
- Misses      15399    15438      +39     
  Partials     8498     8498              

see 35 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no pending requests for changes, and a CI started. flaky-test Issues and PRs related to the tests with unstable failures on the CI. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. vfs Issues and PRs related to the virtual filesystem subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants