Skip to content

test: deflake test-fs-stat-cancel-inflight under FIPS - #67449

Open
christianaurichzm wants to merge 1 commit into
nodejs:mainfrom
christianaurichzm:deflake-fs-stat-cancel-fips
Open

christianaurichzm wants to merge 1 commit into
nodejs:mainfrom
christianaurichzm:deflake-fs-stat-cancel-fips

Conversation

@christianaurichzm

Copy link
Copy Markdown
Member

test-fs-stat-cancel-inflight fails in 4 of the last 44 runs of the openssl-fips-4.1.0 job in "Test Shared libraries", most recently on main: https://github.com/nodejs/node/actions/runs/43344160379/job/131620075895

The pbkdf2() that keeps the only threadpool worker busy uses a 6-byte password and a 4-byte salt, which OpenSSL 4 FIPS rejects. The derivation fails at once, and the freed worker sometimes starts the stat before req.cancel() runs. This switches to inputs that meet the FIPS minimums and uses common.mustSucceed(), so a rejected derivation fails the test instead of turning it flaky.

With a blocker that finishes immediately the test fails 2/1000 locally, and with this change 0/1000.

Refs: #67248

The pbkdf2() call that keeps the only threadpool worker busy used a
6-byte password and a 4-byte salt. OpenSSL 4 FIPS rejects those, so
the derivation failed at once and freed the worker. The queued stat
could then start before req.cancel() ran, and it completed without
ECANCELED.

Use inputs that meet the FIPS minimums and check that the derivation
succeeds.

Signed-off-by: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
@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 Nov 13, 2026
@christianaurichzm christianaurichzm added the flaky-test Issues and PRs involving tests that fail intermittently in CI. label Nov 13, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@codecov

codecov Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.69%. Comparing base (7b4c9e3) to head (06c6f57).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #67449      +/-   ##
==========================================
- Coverage   90.71%   90.69%   -0.02%     
==========================================
  Files         801      801              
  Lines      281889   281889              
  Branches    54315    54316       +1     
==========================================
- Hits       255709   255669      -40     
- Misses      16307    16353      +46     
+ Partials     9873     9867       -6     

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

@panva panva added author ready PRs with CI started, the required approvals, and no outstanding review comments. resume-ci Add this label to resume the latest eligible Jenkins CI run on a PR with an approving review. labels Nov 13, 2026
@github-actions github-actions Bot removed the resume-ci Add this label to resume the latest eligible Jenkins CI run on a PR with an approving review. label Nov 13, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

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

3 participants