GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fs: fix flush regression from fast path by ChALkeR · Pull Request #60553 · nodejs/node

Conversation

@ChALkeR

@ChALkeR ChALkeR commented Nov 2, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Fixes: #60552

Regression from: #49884

Also a blocker for #60539

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodejs-github-bot nodejs-github-bot added fs Issues and PRs related to file-system APIs and the fs module. needs-ci PRs that need a full CI run. labels Nov 2, 2025
@ChALkeR
ChALkeR marked this pull request as ready for review November 2, 2025 18:39
@ChALkeR
ChALkeR force-pushed the chalker/regression/3 branch 3 times, most recently from 026ae18 to 0fe5718 Compare November 2, 2025 19:20
@ChALkeR ChALkeR mentioned this pull request Nov 2, 2025
lib: call normalizeEncoding in fs.writeFileSync and fs.readFileSync #60539
Open
@codecov

codecov Bot commented Nov 2, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.68%. Comparing base (40c625b) to head (1dcd042).
⚠️ Report is 1266 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #60553      +/-   ##
==========================================
- Coverage   89.68%   89.68%   -0.01%     
==========================================
  Files         676      676              
  Lines      206576   206589      +13     
  Branches    39556    39564       +8     
==========================================
+ Hits       185266   185273       +7     
  Misses      13445    13445              
- Partials     7865     7871       +6     
Files with missing lines Coverage Δ
lib/fs.js 98.19% <100.00%> (+<0.01%) ⬆️

... and 32 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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ChALkeR
ChALkeR force-pushed the chalker/regression/3 branch from 0fe5718 to 5142f4e Compare November 2, 2025 20:19
@ChALkeR

ChALkeR commented Jan 17, 2026

Copy link
Copy Markdown
Member Author

cc @jasnell @Qard @santigimeno @anonrig as reviewers of #49884

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JakobJingleheimer
JakobJingleheimer requested review from BridgeAR, CanadaHonk and aduh95 January 17, 2026 13:00
@aduh95

aduh95 commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

/cc @nodejs/fs

JakobJingleheimer reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Qard
Qard approved these changes Jan 17, 2026
View reviewed changes
cjihrig
cjihrig approved these changes Jan 17, 2026
View reviewed changes
RafaelGSS
RafaelGSS approved these changes Jan 17, 2026
View reviewed changes
UlisesGascon
UlisesGascon approved these changes Jan 17, 2026
View reviewed changes
@JakobJingleheimer JakobJingleheimer added the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Jan 17, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Jan 17, 2026
@nodejs-github-bot

nodejs-github-bot commented Jan 17, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/70862/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bnb
bnb approved these changes Jan 19, 2026
View reviewed changes
@ChALkeR

ChALkeR commented Jan 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

Lint CI didn't fail at the time of filing this PR but fails now, apparently after #60845 landed before this PR and changed lint config

If someone understands what's up with lint and could fix that (or file an alternative PR) it'd be great, otherwise I'll get back to this at some point later

That looks like a false positive of the new rule? Asserts are immediately called, they are not passed to a callback.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ChALkeR

ChALkeR commented Jan 19, 2026

Copy link
Copy Markdown
Member Author

cc @aduh95 perhaps

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JakobJingleheimer

JakobJingleheimer commented Jan 19, 2026

Copy link
Copy Markdown
Member

It sounds like the linter was previously not catching something it should have (and is now doing).

I think it's the checkCalls wrapper creating to necessity for mustCall / mustSucceed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ChALkeR

ChALkeR commented Jan 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

Why should it and what does that do?


something it should have

Why should it be?

It's an assertion helper which is immediately used in linear code, not a callback.
There is no use in wrapping it, it doesn't add any reasonable guards on top of an unused function lint check.

Doing that just to silence lint seems wrong

To somewhat articulate: it adds as much value as wrapping every line in mustCall(() => { ...line })(); in linear code.

And if it should be wrapped, then with what? Should it also specify how many times that is expected to be used?


I think it's the checkCalls wrapper creating to necessity for mustCall / mustSucceed.

Or I don't understand. Is mustCall supposed to be used inside the wrapper? How?

No way I can think of makes sense, if that's not a false positive, I'm not sure what's that supposed to do at all.
This also seems undocumented

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Jan 20, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/70910/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gurgunday gurgunday added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Jan 26, 2026
@nodejs-github-bot

nodejs-github-bot commented Jan 27, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/71067/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aduh95

aduh95 commented Jan 27, 2026

Copy link
Copy Markdown
Contributor

You need to either drop the checkCalls and replace it with a loop, or wrap it in common.mustCallAtLeast

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aduh95

aduh95 commented Jan 27, 2026

Copy link
Copy Markdown
Contributor

@gurgunday what's the point of you restarting the CI here? There are failures to address, please don't resume jobs if it has failures related to the PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ChALkeR

ChALkeR commented Jan 27, 2026

Copy link
Copy Markdown
Member Author

@aduh95 is there a way to reconfigure the lint rule so it won't require useless common.mustCallAtLeast wraps on non-callbacks?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gurgunday

gurgunday commented Jan 27, 2026

Copy link
Copy Markdown
Member

@aduh95 my bad I thought it was addressed

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

anonrig
anonrig reviewed Jan 27, 2026
View reviewed changes
Comment thread lib/fs.js Resolved

Uh oh!

There was an error while loading. Please reload this page.

@gurgunday gurgunday removed the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Jan 29, 2026
ChALkeR and others added 3 commits March 18, 2026 17:35
@ChALkeR @aduh95
fs: fix flush regression from fast path
7754b1e
@ChALkeR @anonrig @aduh95
nit: Remove old comment
c751faf
Co-authored-by: Yagiz Nizipli <[email protected]>
@aduh95
fixup! fs: fix flush regression from fast path
1dcd042
@aduh95
aduh95 force-pushed the chalker/regression/3 branch from 37ef8ab to 1dcd042 Compare March 18, 2026 17:31
@nodejs-github-bot

nodejs-github-bot commented Mar 18, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/71866/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Mar 18, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/71867/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Mar 18, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/71869/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Mar 19, 2026

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/71890/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

This pull request has been marked as stale due to 90 days of inactivity.
It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot added the stale Issues and PRs marked stale due to inactivity and scheduled for automatic closure. label Jul 28, 2026
@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 120 days).
If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot closed this Aug 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@anonrig anonrig anonrig left review comments
@Qard Qard Qard approved these changes
@bnb bnb bnb approved these changes
@cjihrig cjihrig cjihrig approved these changes
@UlisesGascon UlisesGascon UlisesGascon approved these changes
@RafaelGSS RafaelGSS RafaelGSS approved these changes
@BridgeAR BridgeAR Awaiting requested review from BridgeAR
@aduh95 aduh95 Awaiting requested review from aduh95
@CanadaHonk CanadaHonk Awaiting requested review from CanadaHonk

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

fs Issues and PRs related to file-system APIs and the fs module. needs-ci PRs that need a full CI run. stale Issues and PRs marked stale due to inactivity and scheduled for automatic closure.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

fs: flush option ignored when writing/appending strings

Uh oh!

There was an error while loading. Please reload this page.

11 participants

@ChALkeR @aduh95 @nodejs-github-bot @JakobJingleheimer @gurgunday @Qard @bnb @anonrig @cjihrig @UlisesGascon @RafaelGSS
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.