Add VS Code task to run the test suite #1888
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
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.309
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1888"
general
weight: 0.35
mstimberg
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.pyinstead of callingpytestdirectly. I also added a sentence to.devcontainer/README.mdso 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
.venvselected 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.