Skip to content

src: fixup fs SyncCall to propagate errors correctly #57711

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

Closed
wants to merge 2 commits into from

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Apr 1, 2025

Propagate errors correctly in the SyncCall utility.

Previously the test case would trigger a crash.

@jasnell jasnell requested review from anonrig and aduh95 April 1, 2025 16:55
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Apr 1, 2025
Propagate errors correctly in the SyncCall utility.

Previously the test case would trigger a crash.
@jasnell jasnell force-pushed the jasnell/fs-sync-crash-fix branch from a76b761 to 75ebfdd Compare April 1, 2025 17:30
Copy link

codecov bot commented Apr 1, 2025

Codecov Report

Attention: Patch coverage is 74.19355% with 8 lines in your changes missing coverage. Please review.

Project coverage is 90.23%. Comparing base (1c2d98d) to head (3ce4763).
Report is 301 commits behind head on main.

Files with missing lines Patch % Lines
src/node_file.cc 71.42% 3 Missing and 3 partials ⚠️
src/node_file-inl.h 80.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #57711   +/-   ##
=======================================
  Coverage   90.22%   90.23%           
=======================================
  Files         630      630           
  Lines      185073   185092   +19     
  Branches    36222    36231    +9     
=======================================
+ Hits       166990   167018   +28     
+ Misses      11044    11037    -7     
+ Partials     7039     7037    -2     
Files with missing lines Coverage Δ
src/node_file.h 78.43% <ø> (ø)
src/node_file-inl.h 87.27% <80.00%> (-0.75%) ⬇️
src/node_file.cc 76.59% <71.42%> (-0.15%) ⬇️

... and 21 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.

@nodejs-github-bot

This comment was marked as outdated.

@jasnell jasnell added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 2, 2025
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Apr 3, 2025

jasnell added a commit that referenced this pull request Apr 3, 2025
Propagate errors correctly in the SyncCall utility.

Previously the test case would trigger a crash.

PR-URL: #57711
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
@jasnell
Copy link
Member Author

jasnell commented Apr 3, 2025

Landed in 538c813

@jasnell jasnell closed this Apr 3, 2025
JonasBa pushed a commit to JonasBa/node that referenced this pull request Apr 11, 2025
Propagate errors correctly in the SyncCall utility.

Previously the test case would trigger a crash.

PR-URL: nodejs#57711
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
RafaelGSS pushed a commit that referenced this pull request May 1, 2025
Propagate errors correctly in the SyncCall utility.

Previously the test case would trigger a crash.

PR-URL: #57711
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
RafaelGSS pushed a commit that referenced this pull request May 2, 2025
Propagate errors correctly in the SyncCall utility.

Previously the test case would trigger a crash.

PR-URL: #57711
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
@aduh95 aduh95 added the backport-requested-v22.x PRs awaiting manual backport to the v22.x-staging branch. label May 6, 2025
@aduh95
Copy link
Contributor

aduh95 commented May 6, 2025

Test is crashing on v22.x-staging with this change

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. backport-requested-v22.x PRs awaiting manual backport to the v22.x-staging branch. c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants