← Back to Pull requests

e2e: allow batched runs of multiple e2e tests. #856

Closed
unknown closed this pull request without merging on Oct 16, 2026 16:06 UTC
View on GitHub
unknown unknown commented on Oct 16, 2026 13:38 UTC
Author

Iron out one of the remaining annoyances of the main test runner run_tests.sh. In practice, with the current layout of tests in the repo, it can be used to run 1 test, all tests of one topology of one policy, all tests of a policy, or all tests. The only reason for this is that it simply cannot consume more than a single test directory to discover tests from, because the 2nd argument is unconditionally interpreted as an output directory. So get rid of this latter limitation by putting the output directory behind an -o flag, and consume all other arguments as test directories. Now it is possible to run something like this:

xeon-dev0 e2e-dir-list $ ./test/e2e/run_tests.sh ./test/e2e/policies.test-suite/balloons/n4c16/test0{1,2,3}* ./test/e2e/policies.test-suite/topology-aware/n4c16/test0{0,1,2,3}*
...
no coverage data to dump from the plugin
host> scp -F /u/src/kli/work/devel/nri-plugins/e2e-dir-list/n4c16-fedora-43-containerd/.ssh-config -o ControlMaster=auto -o ControlPersist=60 -o ControlPath=/tmp/ssh-%C n4c16-fedora-43-containerd:/var/lib/nri-resource-policy/coverage/'cov*' "/u/src/kli/work/devel/nri-plugins/e2e-dir-list/n4c16-fedora-43-containerd/policies.test-suite/topology-aware/test03-simple-affinity/coverage/"
Test verdict: PASS

Tests summary:
PASS balloons/n4c16/test01-basic-placement
PASS balloons/n4c16/test02-prometheus-metrics
PASS balloons/n4c16/test03-reserved
PASS topology-aware/n4c16/test00-basic-placement
PASS topology-aware/n4c16/test01-always-fits
PASS topology-aware/n4c16/test02-shrink-and-grow-shared
PASS topology-aware/n4c16/test03-simple-affinity

Merging the coverage data of 7 test cases...

Coverage of the e2e tests:
  cmd/plugins/balloons          53.4% (912/1707 statements)
  cmd/plugins/topology-aware    50.0% (1323/2648 statements)
  all instrumented packages     43.6% (6483/14884 statements)

  per package and function: go tool cover -func=/u/src/kli/work/devel/nri-plugins/e2e-dir-list/coverage-report/coverprofile
  browsable report:         /u/src/kli/work/devel/nri-plugins/e2e-dir-list/coverage-report/coverage.html
  numbers in json:          /u/src/kli/work/devel/nri-plugins/e2e-dir-list/coverage-report/summary.json

Diff: 275 lines (+206 / -69) across 3 files Reviewer: askervin Review duration: 147m
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 · 275 lines diff across 3 files
0.40
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.336
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #856"
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: 39.6% (MEDIUM) · Higher = larger blast radius
39.6%
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: 15.6% · Safe to merge
15.6%