← Back to Pull requests

test_runner: report the correct type when dequeuing tests #66037

Open
hanityx opened this pull request with 48 lines diff across 2 files
View on GitHub
hanityx hanityx commented on Sep 15, 2026 14:56 UTC
Author

processPendingSubtests() emits test:dequeue with the parent's
reportedType instead of the dequeued test's type. With randomized
execution, this can report a suite as a test and a test as a suite.

Use the dequeued test's reportedType and extend the existing
event-type test to cover randomized execution.

Refs: https://github.com/nodejs/node/pull/54049

Diff: 48 lines (+22 / -26) across 2 files Reviewer: MoLow Review duration: 46911m
All Vouch review confidence checks passed
Residual risk 0.10 = Change Risk (0.35) × (1 − Review Confidence (0.70)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 48 lines diff across 2 files
0.35
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.55 · 2 substantive comment(s)
0.55
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
70%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.233
Real PR Conversation Timeline
5 items
nodejs-github-bot nodejs-github-bot commented on Sep 15, 2026 14:56 UTC
Bot

Review requested:

  • @nodejs/test_runner
  • MoLow MoLow approved these changes on Sep 15, 2026 15:27 UTC
    Approved Reviewer

    Approved these changes.

    atlowChemi atlowChemi approved these changes on Sep 15, 2026 16:24 UTC
    Approved Reviewer

    Approved these changes.

    codecov[bot] codecov[bot] commented on Sep 15, 2026 16:38 UTC
    Bot

    Codecov Report


    :white_check_mark: All modified and coverable lines are covered by tests.
    :white_check_mark: Project coverage is 90.24%. Comparing base (ed6f3bc) to head (b5ee9aa).
    :warning: Report is 71 commits behind head on main.

    <details><summary>Additional details and impacted files</summary>

    @@            Coverage Diff             @@
    ##             main   #66037      +/-   ##
    ==========================================
    + Coverage   89.98%   90.24%   +0.26%     
    ==========================================
      Files         784      789       +5     
      Lines      268410   270476    +2066     
      Branches    51130    51748     +618     
    ==========================================
    + Hits       241519   244087    +2568     
    + Misses      17433    16873     -560     
    - Partials     9458     9516      +58     
    

    | Files with missing lines | Coverage Δ | |
    |---|---|---|
    | lib/internal/test\_runner/test.js | 97.94% <100.00%> (ø) | |

    ... and 104 files with indirect coverage changes
    </details>
    <details><summary> :rocket: New features to boost your workflow: </summary>

  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

  • </details>

    Reviewers
    Assignees
    hanityx hanityx
    Labels
    risk: low confidence: 70% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 34.7% (LOW) · Higher = larger blast radius
    34.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 70% · Lower = rushed or shallow review
    70%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 10.4% · Safe to merge
    10.4%
    Repository