ci: send test results and coverage to Datadog Test Optimization #150
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.39) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 253 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.331
Real PR Conversation Timeline
1 comments
"Review active on #150"
general
weight: 0.35
sdahal-bt
Summary
Sends the unit and acceptance test results, with coverage, to Datadog Test Optimization, so the CI health dashboard can show this provider next to the other Secrets Manager repos.
go test -voutput to a log file under$RUNNER_TEMP. Console output is unchanged..github/actions/report-tests-to-datadog, converts a log to JUnit withgo-junit-reportv2.1.0 and uploads it withdatadog-ci junit upload. When a coverprofile is given, its total is sent as thetest.code_coverage.lines_pctmeasure.terraform-provider-beyondtrust:-
unit, with coverage fromcoverage-unit.out-
acceptance(product site), with coverage fromcoverage-acc.out-
acceptance-admin, covering the three admin-site steps, without coverage because those targets write no coverprofiledatadog-ciis the standalone v5.26.1 Linux binary from Datadog's GitHub release, checked against a pinned sha256 (matching the release'schecksums.txt).Notes
DATADOG_API_KEYsecret visible to this repo before merge. It isn't available here today, and without it every report step fails with "API key is missing", including in the unit job on every PR.make test-unitthrough the new pipeline gives 406 tests in the JUnit file at 27.2% coverage, and the upload command is correct when run against a stand-in fordatadog-ci. A missing log fails with an error. The acceptance suites have not been run with this change.Jira: SMOP-1833