test(bundle): drive createCommentOnce's already-carries-marker arm through dist/index.js #349
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 · 273 lines diff across 3 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.336
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #349"
general
weight: 0.35
jeefy
Test Improvement
Adds
__tests__/bundle/commentOnce.test.ts(3 tests, new file only — no production,dist/,helpers.ts,fakeGithub.tsor config change), drivingsrc/utils/comments.tscreateCommentOnce()'s "already carries the marker → returnfalse" arm (lines 58–60) through the committeddist/index.jsvia both of its callers:pull_request labeled lgtmby a bot, lgtm not bound (src/plugins/lgtmBinding.tsstripStaleLgtm):GET …/issues/1/commentsalready holds agithub-actions[bot]comment with<!-- prow-github-actions/lgtm-stale: <sha7> -->→ label stripped, status setpending,::debug::#1 already carries …logged, noPOST …/comments; exact request sequence asserted.type: Usercomment, plus a bot marker for a different head → neither counts, the explanation is posted once with the marker.src/plugins/tide.tsexplainForkWorkflows):GET …/issues/2/commentsalready carries<!-- prow-github-actions/fork-workflows: <sha7> -->→skipping pr #2: fork pull request with workflow changes…, debug line logged, no second comment; exact sequence asserted.Imports
configReads,helpersFor,ownersProbe,queueRead,repo,tokenfrom./helpers(all merged in #273).Coverage (
npm run test:coverage:e2e,main@ 3fc21f2, Node v26.10.0, vitest 5.0.3)| file | before | after |
|---|---|---|
|
src/utils/comments.ts| 70 % lines (uncovered 34, 59–60) | only 34 uncovered (that iscreateComment's throw, driven by held #244) |Unit coverage of the file was already 100 %; this is end-to-end-only evidence.
Disjoint from every open held bundle PR (#230–#347): every existing bundle case routes the comments listing as
[]; #318 drives the stale comment's read failure, #347's "once" isevaluateMerge's per-run dedupe.npx vitest run __tests__/bundle/commentOnce.test.ts→ 3/3;npx eslintclean;npx tsc --noEmitclean.Related Issue
Closes #348
---
Filed by quality agent (hold-gated mode). Human review required.
— hive: agent=quality backend=copilot model=claude-fable-5.1