← Back to Pull requests

src: reduce duplication through consolidation #67497

Closed
jasnell closed this pull request without merging on Nov 17, 2026 19:44 UTC
View on GitHub
jasnell jasnell commented on Nov 15, 2026 19:30 UTC
Author

Reduce code by consolidating cleanup. See individual commits

Diff: 1148 lines (+474 / -674) across 15 files Reviewer: gurgunday Review duration: 2893m
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.64) × (1 − Review Confidence (0.76)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.64 · 1148 lines diff across 15 files
0.64
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.59 · 4 substantive comment(s)
0.59
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
76%
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.400
Real PR Conversation Timeline
7 items
nodejs-github-bot nodejs-github-bot commented on Nov 15, 2026 19:30 UTC
Bot

Review requested:

  • @nodejs/net

  • @nodejs/realm

  • @nodejs/startup

  • @nodejs/url
  • gurgunday gurgunday approved these changes on Nov 15, 2026 19:46 UTC
    Approved Reviewer

    lgtm

    nodejs-github-bot nodejs-github-bot commented on Nov 15, 2026 20:09 UTC
    Bot
    codecov[bot] codecov[bot] commented on Nov 15, 2026 21:10 UTC
    Bot

    Codecov Report


    :x: Patch coverage is 75.49407% with 62 lines in your changes missing coverage. Please review.
    :white_check_mark: Project coverage is 90.70%. Comparing base (d105ef7) to head (5f73d63).
    :warning: Report is 5 commits behind head on main.

    | Files with missing lines | Patch % | Lines |
    |---|---|---|
    | src/cares\_wrap.cc | 67.42% | 34 Missing and 9 partials :warning: |
    | src/node\_file.cc | 81.11% | 0 Missing and 17 partials :warning: |
    | src/glob/node\_glob.cc | 0.00% | 1 Missing :warning: |
    | src/node\_realm-inl.h | 80.00% | 0 Missing and 1 partial :warning: |

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

    @@            Coverage Diff             @@
    ##             main   #67497      +/-   ##
    ==========================================
    + Coverage   90.67%   90.70%   +0.03%     
    ==========================================
      Files         799      799              
      Lines      280245   280039     -206     
      Branches    54125    54028      -97     
    ==========================================
    - Hits       254100   254014      -86     
    + Misses      16280    16215      -65     
    + Partials     9865     9810      -55     
    

    | Files with missing lines | Coverage Δ | |
    |---|---|---|
    | src/encoding\_binding.cc | 56.60% <100.00%> (-0.50%) | :arrow_down: |
    | src/node\_blob.cc | 73.40% <100.00%> (-0.09%) | :arrow_down: |
    | src/node\_diagnostics\_channel.cc | 85.23% <100.00%> (+1.05%) | :arrow_up: |
    | src/node\_modules.cc | 79.75% <100.00%> (-0.16%) | :arrow_down: |
    | src/node\_process\_methods.cc | 88.67% <100.00%> (-0.15%) | :arrow_down: |
    | src/node\_realm.h | 100.00% <ø> (ø) | |
    | src/node\_snapshotable.cc | 73.68% <100.00%> (-0.06%) | :arrow_down: |
    | src/node\_snapshotable.h | 100.00% <100.00%> (ø) | |
    | src/node\_url.cc | 78.93% <100.00%> (-0.52%) | :arrow_down: |
    | src/node\_v8.cc | 87.41% <100.00%> (+0.04%) | :arrow_up: |
    | ... and 5 more | |

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

    mcollina mcollina approved these changes on Nov 15, 2026 21:49 UTC
    Approved Reviewer

    rslgtm

    nodejs-github-bot nodejs-github-bot commented on Nov 17, 2026 19:44 UTC
    Bot

    Landed in a625b01d03f718f79c09d625938e38d72eda5961...2aa37623fead9c66638ad60bf6179a4a9b6840de

    Reviewers
    Assignees
    jasnell jasnell
    Labels
    risk: low confidence: 76% 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: 63.5% (MEDIUM) · Higher = larger blast radius
    63.5%
    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: 76% · Lower = rushed or shallow review
    76%
    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: 15.2% · Safe to merge
    15.2%
    Repository