chore: add ENI diagnostic logging to ROSA teardown #3723
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 259 lines diff across 3 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.333
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3723"
general
weight: 0.35
redhat-chai-bot
Summary
Port the ENI diagnostic logging approach from terraform-provider-rhcs PR #1474 to the ROSA teardown path in
tests/utils/handler/resources_handler_clean.go.waitForVPCEndpointENIsClearedWithTimeoutfinds VPC endpoint ENIs still blocking cleanup, log each blocking ENI with interface ID, type/status, description, requester/owner IDs, subnet, and attachment details.deleteForeignOwnedSecurityGroupsWithClientencounters a non-auth security group deletion failure (e.g. DependencyViolation), query and log the ENIs referencing that security group.tests/utils/log/constants.goso AWS account IDs inowner_id,requester_id, andinstance_owner_idfields are automatically scrubbed. Service aliases likeamazon-elbare preserved (no 12-digit run).This gives the shared-vpc-f3 CI job evidence of which ENI is causing DependencyViolation errors during teardown.
Jira
Type of Change
Testing
go vet ./tests/utils/handler/... ./tests/utils/log/...— passesgo build ./tests/utils/handler/... ./tests/utils/log/...— compiles cleanlygo test ./tests/utils/handler/... -v -count=1— all 35 tests pass, including 4 new tests:- logs diagnostic details for blocking VPC endpoint ENIs (with account ID redaction)
- does not log diagnostics when no VPC endpoint ENIs are present
- logs blocking ENIs when security group deletion fails with a non-auth error
- does not log ENI diagnostics for auth errors
goimports -l— no changes needed on any modified fileBreaking Changes
Checklist
ROSAENG-XXXX | type: description🤖 Generated with Claude Code
---
AI-generated. Review for accuracy.
@amandahla requested from Slack
Chai persona:
ocm_qe_ci