feat(tenant-quota): activate ci-failure-patterns extractor versions after coverage check #8294
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.47 · 344 lines diff across 4 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.350
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #8294"
general
weight: 0.35
raelga
https://redhat.atlassian.net/browse/AROSLSRE-2759
What
Follow up for https://github.com/Azure/ARO-HCP/pull/8006. Extractor-version activation for the
ci-failure-patternscontroller. A binary with a newcifailurepatterns.Versionrebuilds results through the existing history sweep; consumers switch to it only after a coverage check passes.ciFailurePatternControltable (table, JSON mapping, bicep): one row per recorded coverage check. The row with the greatestcoverageCheckedAtnames the active(extractorVersion, resultSchemaVersion).pkg/cipatterns/activation.go, started and joined inController.Start): a strongly consistent anti-join of raw failed inputs (ingested at least 15 min ago) against results of the compiled version.- Heartbeat row: always written once the newest row names the compiled pair.
- Activation row: only if the inputs without a result are at most
floor(total/100).- No row on any read or submit error.
- Checks run every
intervaluntil active, then once per completed sweep.- Metrics:
ci_failure_patterns_{uncovered,considered}_inputs{source}, last successful check timestamp, control rows written.ciFailurePatternActive()ADX function: results of the active pair, one row perresultKey; empty without control rows. Deployed from the table script withskipvalidation, like the existing functions intables/*.kql.ciFailurePatterns.control(table and mapping), validated, in the schema, chart andconfig-dev-ci.yaml.version != compiledguards. Discovery and reconcile behavior is unchanged.Versionstaysfp-1. On first deploy the control table is empty andfp-1is already covered, so the first check writes the activation row.Verification
go vet,go test -race -p 1 ./tooling/tenant-quota/... ./tooling/hcpctl/pkg/kustoandgolangci-lintpass.fp-1: 13,248 inputs, 0 uncovered.Not run: bicep build, live writes.
Note: the integration tests that use the kusto emulator are not exercised by CI today. That's a follow up, tracked by https://redhat.atlassian.net/browse/AROSLSRE-2910.