← Back to Pull requests

Enable disjoint union tests #26

Closed
kaidaniel closed this pull request without merging on Oct 23, 2024 20:51 UTC
View on GitHub
kaidaniel kaidaniel commented on Oct 22, 2024 21:14 UTC
Author

"Files in subdirectories of the tests directory don’t get compiled as separate crates or have sections in the test output.", so the test/datatype/disjoint_union_test.rs test is not run by the rust workflow.

These changes move test/datatype/disjoint_union_test.rs to test/disjoint_union_test.rs and add #[allow(dead_code)]s to avoid warnings generated by this test.

The rust workflow should show some additional test results:

Running `/home/runner/work/SPARTA/SPARTA/rust/target/debug/deps/disjoint_union_test-7d8dce3f7696edda`

running 6 tests
test test_basic_union_top_bottom_leq ... ok
test test_diff_arms_no_leq ... ok
test test_join_same_arm ... ok
test test_join_diff_arm ... ok
test test_meet_diff_arm ... ok
test test_meet_same_arm ... ok

Diff: 3 lines (+3 / -0) across 1 files Reviewer: yuxuanchen1997 Review duration: 1416m
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.11) × (1 − Review Confidence (0.77)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.11 · 3 lines diff across 1 files
0.11
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.71 · 2 substantive comment(s)
0.71
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
77%
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.083
Real PR Conversation Timeline
4 items
yuxuanchen1997 yuxuanchen1997 approved these changes on Oct 22, 2024 21:18 UTC
Approved Reviewer

Approved these changes.

facebook-github-bot facebook-github-bot commented on Oct 22, 2024 21:19 UTC
Bot

@yuxuanchen1997 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot facebook-github-bot commented on Oct 23, 2024 20:51 UTC
Bot

@yuxuanchen1997 merged this pull request in facebook/SPARTA@ab3d413824056439c69aa457b2e7f8fed881e81e.

Assignees
kaidaniel kaidaniel
Labels
risk: low confidence: 77.1% 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: 11.3% (LOW) · Higher = larger blast radius
11.3%
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: 77.1% · Lower = rushed or shallow review
77.1%
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: 2.6% · Safe to merge
2.6%