ci(e2e): validate expired-resource cleanup coverage for slot subscriptions (AROSLSRE-2945) #8357
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 · 263 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.334
Real PR Conversation Timeline
1 comments
"Review active on #8357"
general
weight: 0.35
redhat-chai-bot
Jira: AROSLSRE-2945
What
Adds
cleanup-coverage, atestmodule command that fails when a managedsubscriptions.e2eentry intest/e2e-config/e2e-slots.yamlhas nodelete-expired-*-resource-groupsjob with the expected cluster profile in the openshift/release periodic cleanup configuration.It ships with unit tests and a
make -C test validate-cleanup-coveragetarget.Why
The periodic cleanup config needs one job per subscription and nothing verified that a newly onboarded slot subscription got one. Stage-01 accumulated an expired resource group for over a week in November 2026 because of that gap (AROSLSRE-2595). The check names the missing subscription and the expected
VAULT_SECRET_PROFILE, so the fix is the exact job block to add.Testing
go test ./util/cleanupcoverage/covers a covered subscription, a missing job, a wrong profile, an unmanaged skip, a subscription reached through two pools, an unknown environment, config parsing, and file/URL loading including a 404.go run ./test/cmd/cleanup-coverageagainst openshift/release main printscleanup coverage OK: 20 managed subscriptions across 5 environments (3 unmanaged subscriptions skipped).CUSTOMER_SUBSCRIPTIONfrom a local copy fails withenvironment "stg" subscription "ARO HCP E2E Hosted Clusters - Stage - 01 (MCA Sponsorship)" has no delete-expired resource-groups job (expected VAULT_SECRET_PROFILE "stg-rh").go vetandgofmtare clean on the new packages.Special notes for your reviewer
slot_assets.e2e_identities.provisioning: unmanagedare skipped; their subscriptions are owned outside ARO-HCP. That coversHypershift Managed Azureand the Test TenantARO HCP E2E.cleanup-coverage,run_if_changedon the slot catalog and dev-ci config) plus a daily periodic for reverse drift. That PR lands after this one so the command exists onmain.