Skip to content

test: address WPT flakes and failure expectations - #66322

Open
panva wants to merge 4 commits into
nodejs:mainfrom
panva:wpt-flakes-fixes
Open

panva wants to merge 4 commits into
nodejs:mainfrom
panva:wpt-flakes-fixes

Conversation

@panva

@panva panva commented Sep 26, 2026

Copy link
Copy Markdown
Member

Honor allow_uncaught_exception for promise rejections in both WPT execution paths, respecting nested setup() calls, deferred promise_setup() settings, and ignored late configuration changes. Add regression coverage and remove the Web Locks flaky expectation.

Mark the Blob constructor tests' byte-order failures as expected only on big-endian platforms, and re-enable instantiateStreaming-bad-imports.any.js.

The typed array Blob constructor tests expect little-endian byte order.
Mark them as expected failures only on big-endian platforms, so failures
on little-endian platforms remain visible.

Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Claude, Codex
Honor allow_uncaught_exception for unhandled promise rejections in both
WPT worker paths. Apply setup settings before nested callbacks, preserve
settings after results start, and apply promise_setup settings when its
callback runs. Keep rejection failures in single_test mode.

Cover both runner backends and Web Workers, and remove the flaky
expectation for the Web Locks test that deliberately rejects.

Refs: nodejs#59142
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Claude, Codex
This test was skipped after hangs with V8 11.2. The associated compiler
shutdown deadlock involved NodePlatform::DrainTasks waiting for worker
tasks that needed garbage collection on the blocked main thread.

Since 5fb879c, DrainTasks only waits for user-blocking tasks, which
excludes ordinary background compilation. Remove the obsolete skip.

Refs: nodejs#47297
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Claude, Codex
@panva panva added commit-queue-rebase PRs the Commit Queue should land as multiple self-contained commits. web-standards Issues and PRs related to web-platform APIs and standards compliance. labels Sep 26, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/web-standards

@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 26, 2026
@nodejs-github-bot

This comment was marked as outdated.

@panva panva added the flaky-test Issues and PRs involving tests that fail intermittently in CI. label Sep 26, 2026
@codecov

codecov Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.36%. Comparing base (c0681e5) to head (30b6941).
⚠️ Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #66322      +/-   ##
==========================================
- Coverage   90.37%   90.36%   -0.01%     
==========================================
  Files         790      790              
  Lines      274514   274514              
  Branches    52572    52575       +3     
==========================================
- Hits       248102   248078      -24     
- Misses      16889    16921      +32     
+ Partials     9523     9515       -8     

see 33 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

Copy link
Copy Markdown
Collaborator

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

Labels

commit-queue-rebase PRs the Commit Queue should land as multiple self-contained commits. 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. web-standards Issues and PRs related to web-platform APIs and standards compliance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants