Skip to content

Split oversized test file test/parallel/test-fs-promises-file-handle-writer.js (1117 lines ->170 lines ) - #65384

Open
BboyAkers wants to merge 1 commit into
nodejs:mainfrom
BboyAkers:main
Open

Split oversized test file test/parallel/test-fs-promises-file-handle-writer.js (1117 lines ->170 lines )#65384
BboyAkers wants to merge 1 commit into
nodejs:mainfrom
BboyAkers:main

Conversation

@BboyAkers

@BboyAkers BboyAkers commented Aug 18, 2026

Copy link
Copy Markdown

Summary

Split oversized test file test/parallel/test-fs-promises-file-handle-writer.js (1117 lines -> 170 lines).

Split the test cases into focused test files:

  1. test-fs-promises-file-handle-pipeto.js
  2. test-fs-promises-file-handle-writer-abort.js
  3. test-fs-promises-file-handle-writer-dispose.js
  4. test-fs-promises-file-handle-writer-lifecycle.js
  5. test-fs-promises-file-handle-writer-limits-validation.js
  6. test-fs-promises-file-handle-writer-pipeline.js
  7. test-fs-promises-file-handle-writer-sync.js
  8. test-fs-promises-file-handle-writer.js (retained core write / writev tests)

Was AI used? If yes, why?

Yes, I used AI to:

  • Help structure and organize the split files.
  • Assist with lint validation and test formatting.

@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 Aug 18, 2026
@@ -0,0 +1,81 @@
const {

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.

These need the 'use strict'; at the top and the require('../common')

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.

These should be caught by running make lint

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thanks!!!! I'll do that!!

@jasnell

jasnell commented Aug 18, 2026

Copy link
Copy Markdown
Member

Your commits will need to be squashed to a single commit that has the test: prefix in the name and includes a Signed-off-by attestation

@codecov

codecov Bot commented Aug 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.07%. Comparing base (b79dcdf) to head (41ad57c).
⚠️ Report is 215 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65384      +/-   ##
==========================================
- Coverage   90.29%   90.07%   -0.22%     
==========================================
  Files         759      752       -7     
  Lines      247628   251861    +4233     
  Branches    46687    47309     +622     
==========================================
+ Hits       223593   226869    +3276     
- Misses      15483    16323     +840     
- Partials     8552     8669     +117     

see 197 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.

Split the oversized test file test-fs-promises-file-handle-writer.js
(1117 lines) into smaller, focused test files:
- test-fs-promises-file-handle-pipeto.js
- test-fs-promises-file-handle-writer-abort.js
- test-fs-promises-file-handle-writer-dispose.js
- test-fs-promises-file-handle-writer-lifecycle.js
- test-fs-promises-file-handle-writer-limits-validation.js
- test-fs-promises-file-handle-writer-pipeline.js
- test-fs-promises-file-handle-writer-sync.js

Signed-off-by: Austin Akers <austin.akers5@gmail.com>
@BboyAkers

Copy link
Copy Markdown
Author

Done!! @jasnell 🙂

@avivkeller avivkeller added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Aug 21, 2026

@Ethan-Arrowood Ethan-Arrowood left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Great work!

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

Labels

code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. 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.

5 participants