← Back to Pull requests

[ci-agent] CI failing on main #190

Open
unknown opened this pull request with 199 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 29, 2026 04:56 UTC
Author

Test-isolation bug between e2e specs that share one harness home per worker. The RD12 upload test in e2e/recording.spec.ts sets replay.s3.bucket e2e-replays and never cleared it. When replay.spec.ts ran next, its 'no bucket' upload found the bucket still set and called the runner's real aws CLI. That upload failed with INTERNAL, while the test expects BAD_REQUEST or UNSUPPORTED. The fix wraps the RD12 upload checks in try/finally and resets the bucket with config replay.s3.bucket off. replay.spec.ts now also clears the bucket against h.home before clicking Upload, so the result no longer depends on which spec ran first. Only the two e2e specs changed.

Test: npm run e2e -- e2e/recording.spec.ts e2e/replay.spec.ts: on the untouched base it fails locally the same way as CI ('open at a step, open a session's newest recording, and an unknown recording': Upload failed (INTERNAL): aws s3 cp failed). With the fix, all 13 tests pass. npm run e2e -- e2e/replay.spec.ts alone passes 3 of 3 tests. npm run lint shows 0 errors (warnings only, none in the changed files) and npm run typecheck is clean.

Fixes #185

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

<!-- coderabbit-ai-generated:v1 -->

Summary by CodeRabbit

Tests
Updated recording-upload checks to verify upload behavior and recorded output while ensuring the S3 setting is turned off afterward, including when checks fail.
* Added replay coverage for upload-failure behavior with S3 uploads disabled.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 199 lines (+149 / -50) across 2 files Reviewer: coderabbitai[bot] Review duration: 9m
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.36) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 199 lines diff across 2 files
0.36
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
42%
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.317
Real PR Conversation Timeline
1 comments
"Review active on #190"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 43.0% 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: 36.1% (MEDIUM) · Higher = larger blast radius
36.1%
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: 43.0% · Lower = rushed or shallow review
43.0%
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: 20.6% · Safe to merge
20.6%