Skip to content

src: fixup fs SyncCall to propagate errors correctly - #57711

Closed
jasnell wants to merge 2 commits into
nodejs:mainfrom
jasnell:jasnell/fs-sync-crash-fix
Closed

src: fixup fs SyncCall to propagate errors correctly#57711
jasnell wants to merge 2 commits into
nodejs:mainfrom
jasnell:jasnell/fs-sync-crash-fix

Conversation

@jasnell

Copy link
Copy Markdown
Member

Propagate errors correctly in the SyncCall utility.

Previously the test case would trigger a crash.

@jasnell
jasnell requested review from aduh95 and anonrigApril 1, 2025 16:55
@nodejs-github-botnodejs-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
jasnellforce-pushed the jasnell/fs-sync-crash-fix branch from a76b761 to 75ebfddCompareApril 1, 2025 17:30
@codecov

codecovBot commented Apr 1, 2025

Copy link
Copy Markdown

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 linesPatch %Lines
src/node_file.cc71.42%3 Missing and 3 partials ⚠️
src/node_file-inl.h80.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 linesCoverage Δ
src/node_file.h78.43% <ø> (ø)
src/node_file-inl.h87.27% <80.00%> (-0.75%)⬇️
src/node_file.cc76.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.

Comment threadtest/parallel/test-fs-writesync-crash.js Outdated
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@nodejs-github-bot

This comment was marked as outdated.

@jasnelljasnell 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

nodejs-github-bot commented Apr 3, 2025

Copy link
Copy Markdown
Collaborator

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 <duhamelantoine1995@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
@jasnell

Copy link
Copy Markdown
MemberAuthor

Landed in 538c813

@jasnelljasnell closed this Apr 3, 2025
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 <duhamelantoine1995@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
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 <duhamelantoine1995@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
@aduh95aduh95 added the backport-requested-v22.x PRs awaiting manual backport to the v22.x-staging branch. label May 6, 2025
@aduh95

Copy link
Copy Markdown
Contributor

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

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

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.backport-requested-v22.xPRs awaiting manual backport to the v22.x-staging branch.c++Issues and PRs that require attention from people who are familiar with C++.lib / srcIssues and PRs related to general changes in the lib or src directory.needs-ciPRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@jasnell@nodejs-github-bot@aduh95@anonrig