Skip to content

test: avoid allocations in external memory test - #65975

Open
panva wants to merge 4 commits into
nodejs:mainfrom
panva:deflake
Open

test: avoid allocations in external memory test#65975
panva wants to merge 4 commits into
nodejs:mainfrom
panva:deflake

Conversation

@panva

@panva panva commented Sep 11, 2026

Copy link
Copy Markdown
Member

Inspect the parsed V8 flags instead of allocating over a gigabyte and aborting child processes. This avoids memory pressure and core dumps in test-external-memory-reasonable-size.

Also verify that Node disables the limit by default.

Refs: #65780
Refs: https://github.com/nodejs/reliability/blob/main/reports/2026-09-11.md

Assisted-by: Codex

Inspect the parsed V8 flags instead of allocating over a gigabyte and
aborting child processes. This avoids memory pressure and core dumps
in test-external-memory-reasonable-size.

Also verify that Node disables the limit by default.

Refs: nodejs#65780
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Codex
@panva
panva requested a review from codebytere September 11, 2026 07:24
@panva panva added the flaky-test Issues and PRs involving tests that fail intermittently in CI. label Sep 11, 2026
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to Node.js core tests and test infrastructure. labels Sep 11, 2026
@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.17%. Comparing base (0de4fcc) to head (61f9ca6).
⚠️ Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65975      +/-   ##
==========================================
- Coverage   90.17%   90.17%   -0.01%     
==========================================
  Files         771      771              
  Lines      265470   265451      -19     
  Branches    50463    50459       -4     
==========================================
- Hits       239383   239362      -21     
+ Misses      17055    17046       -9     
- Partials     9032     9043      +11     

see 36 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 thread test/parallel/test-external-memory-reasonable-size.js Outdated
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@panva panva added the commit-queue-squash PRs the Commit Queue should land as one squashed commit. label Sep 11, 2026
Comment thread test/parallel/test-external-memory-reasonable-size.js Outdated
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Comment thread test/parallel/test-external-memory-reasonable-size.js Outdated
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
@panva panva added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Sep 11, 2026
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@panva panva added the commit-queue PRs queued for automated landing through the Commit Queue. label Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. commit-queue PRs queued for automated landing through the Commit Queue. commit-queue-squash PRs the Commit Queue should land as one squashed commit. flaky-test Issues and PRs involving tests that fail intermittently in CI. needs-ci PRs that need a full CI run. test Issues and PRs related to Node.js core tests and test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants