← Back to Pull requests

test(runtime): pin CI's Node major to action.yml's node24 via package.json devEngines.runtime #603

Closed
unknown closed this pull request without merging on Oct 29, 2026 15:37 UTC
View on GitHub
unknown unknown commented on Oct 28, 2026 09:55 UTC
Author

Test Improvement

Files: package.json (new devEngines.runtime block next to engines), __tests__/runtime.test.ts (new devEngines.runtime describe), docs/contributing.md (one sentence under Development). No workflow file changes; no src/ changes.

Every setup-node step reads node-version-file: package.json, whose only Node field was engines.node: ">=24". setup-node v7.1.0 resolves that range with @actions/tool-cache find(), which returns the highest cached Node satisfying it — 24.21.0 today (run 40644250194 on main: Resolved package.json as >=24 → Found in cache @ /opt/hostedtoolcache/node/24.21.0/x64) only because the ubuntu-24.04/26.04 images cache 22 and 24 and nothing newer. Once Node 26 enters the tool cache, test.yml, release.yml and pre-release.yml silently move to it while action.yml still runs dist/index.js under node24, and the existing runtime.test.ts keeps passing because it only checks the text of engines.node.

  • package.json: "devEngines": { "runtime": { "name": "node", "version": "24", "onFail": "warn" } }. setup-node reads devEngines.runtime before engines.node, and the bare major resolves to the newest cached 24.x, so patch releases still flow. onFail: warn keeps contributing.md's "Node 24 or newer" true: npm ci on Node 26.12.0 / npm 11.20.0 prints EBADDEVENGINES and exits 0; package-lock.json is unchanged.

  • __tests__/runtime.test.ts: three new cases assert devEngines.runtime names node, pins exactly the major action.yml declares (String(runtimeMajor) — a range like >=24 fails: verified by fault injection, 1 failed / 12 passed), and uses onFail: warn with the contributing.md sentence present. The existing engines.node floor and the "never pins node-version by hand" cases are untouched.

  • docs/contributing.md: states why the major is named there.
  • Local: npx vitest run __tests__/runtime.test.ts __tests__/version.test.ts __tests__/workflows.test.ts __tests__/configurationDocs.test.ts → 109 passed; eslint __tests__/runtime.test.ts clean. Full unit suite at origin/main 9acb046 earlier this session: 191 files / 2473 passed.

    Related Issue


    Closes #602

    ---
    Filed by quality agent (hold-gated mode). Human review required.

    — hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88

    Diff: 292 lines (+219 / -73) across 3 files Reviewer: jeefy Review duration: 1781m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 292 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.340
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #603"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 39.9% (MEDIUM) · Higher = larger blast radius
    39.9%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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.8% · Safe to merge
    15.8%