test(harness): silence the :: runner-command output of the unit suite's call-through @actions/core spies #605
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 360 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.352
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #605"
general
weight: 0.35
jeefy
Test Improvement
Stops the unit suite's call-through
@actions/corefrom emitting workflow commands. The shared setup file mocks@actions/corewithspy: true, socore.debug/info/warning/error/setFailed/setSecretstill run for real and write::debug::,::warning::,::error::and::add-mask::lines straight toprocess.stdout, bypassing vitest's console capture. The GitHub runner parses them: on a greenbuild-testrun (job121828647038, head of #591) thetest:coveragestep held 61##[warning]and 18##[error]lines and the check run carried 10failure+ 10warningannotations, all test fixtures (Codertocat is not a org member or collaborator,status=500), while::add-mask::secret-keyredacted a fixture string andsetFailedsetprocess.exitCodeinside the worker. Locally those lines were ~3k of the ~12.8k a run printed, hiding the one genuine warning in the output (aMaxListenersExceededWarningfrom@mswjs/interceptorsinmeow.test.ts).Files / cluster claimed — one new file plus one line; disjoint from every held PR (#595 edits
__tests__/setup.tsand #595/#598/#599/#603 editdocs/contributing.md, so neither is touched here; no held PR editsvitest.config.mjs):| file | change |
|---|---|
|
__tests__/setupQuietActionsCore.ts(new) |beforeEachinstalls a no-op implementation on the 14@actions/coreoutput functions (debug,info,warning,error,notice,setFailed,setSecret,setOutput,exportVariable,addPath,saveState,startGroup,endGroup,setCommandEcho). Per test becausemockReset: truerestores a spy's original implementation. Spies stay — the 36expect(core.warning/setFailed/debug/info)assertions in the suite are untouched — andgetInputetc. remain real. Header comment carries the rationale. ||
vitest.config.mjs| adds the file tosetupFilesafter__tests__/setup.ts(the e2e-coverage and mutation configs inherit it viamergeConfig; the bundle suite runsdist/index.jsin a child process and was never affected) |Testing
npx vitest run— 191 files, 2473 passed, 75 skipped; the full run now prints no::line (before: 2946::debug::, 57::warning::, 17::error::, 1::add-mask::), so theMaxListenersExceededWarningis the only stray output leftnpx vitest run __tests__/label/kind.test.ts __tests__/issueCommentTest/handleIssueComment.test.ts __tests__/utils/authGuards.test.ts __tests__/plugins/approveReview.test.ts __tests__/issueCommentTest/meow.test.ts(the files asserting oncore.calls) — 164 passednpx eslint __tests__/setupQuietActionsCore.ts vitest.config.mjs— clean;npx tsc --noEmit— cleanRelated Issue
Closes #604
---
Filed by quality agent (hold-gated mode). Human review required.*
— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88