← Back to Pull requests

Add VS Code task to run the test suite #1888

Closed
unknown closed this pull request without merging on Oct 15, 2026 17:04 UTC
View on GitHub
unknown unknown commented on Oct 09, 2026 15:17 UTC
Author

This PR adds a VS Code task for running Brian's test suite and makes it the default test task, so you can kick it off with Tasks: Run Test Task from the Command Palette. Following your comment in #1790, it goes through dev/tools/run_tests.py instead of calling pytest directly. I also added a sentence to .devcontainer/README.md so people know it's there.

One thing to flag: .vscode/ was in .gitignore, so I changed that to .vscode/* plus !.vscode/tasks.json. That way only the shared task file gets tracked, and everyone's personal VS Code settings stay out of the repo. If you'd rather handle this differently, just let me know.

For testing, I ran it in the devcontainer and all 4 test suites passed (numpy: 304 passed in about 1.5 min, cython: 301 passed in about 8.5 min). I also tried it outside the container with the project's .venv selected in VS Code, and it picked up the right environment there too.

The task currently calls plain python, which means it assumes Brian is installed in whatever environment is active. That's always the case in the devcontainer, but it's worth knowing. The alternative would be ${command:python.interpreterPath}, which always uses the interpreter selected in VS Code but depends on the Python extension being installed. I went with the simpler option, but I'm happy to switch if you think the other one makes more sense.

Part of #1828.

Diff: 175 lines (+131 / -44) across 2 files Reviewer: mstimberg Review duration: 8747m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 175 lines diff across 2 files
0.35
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.309
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1888"
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: 35.4% (MEDIUM) · Higher = larger blast radius
35.4%
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: 14.0% · Safe to merge
14.0%