← Back to Pull requests

test(e2e): reject immutable cluster update via shared fixture (P1-2) #7468

Open
unknown opened this pull request with 280 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 12, 2026 10:06 UTC
Author

P1-2 — Reject immutable cluster-configuration updates

Stacked on #7467 (shared read-only cluster fixture). _Review note:_ this branch is based on #7467, so the diff currently also shows the fixture commits; once #7467 merges I'll rebase and only the P1-2 files remain. The P1-2 change itself is test/util/framework/shared_cluster_guard.go (new guarded-negative-write borrow mode) + test/e2e/cluster_update_immutable_reject.go.

Behavior


Borrows the shared fixture cluster and attempts to PATCH an immutable field (properties.dns.baseDomainPrefix) through the RP, asserting the RP rejects it with a typed HTTP 400 InvalidRequestContent ("field is immutable") targeting that field, and that the cluster is unchanged afterward (full before/after comparison, including read-only fields). Ported from the CS DNS-immutability rejection (test/arohcp/api/clusters_test.go — HTTP 400, "The attribute 'dns' can't be updated"), re-expressed through the RP 2024-06-10 API.

New borrow mode (guarded-negative-write)


Adds the guarded-negative-write mode to the shared fixture: it serializes GET → PATCH → GET under a fixture-scoped lock, verifies the typed rejection and that state is unchanged, and quarantines the fixture on any violation (unexpected acceptance, wrong rejection, or changed state). Borrowers never register or delete the shared parent RG. (This mode is reused by the P1-3/P1-4 rejection borrowers that follow.)

Labels / selection


RequireSharedReadOnlyCluster, High, Negative, AroRpApiCompatible, MIContainers:0; not Slow. Selected by DEV rp-api-compat-all/parallel (verified with the compiled runner).

Tracking


Same E2E coverage-migration series as #7421 / #7467 — no single tracking ticket; rationale per CONTRIBUTING.md §4 (explained here and in the sibling PRs).

Validation


make lint 0 issues; go build ./...; go vet ./test/...; make -C test; regenerated suite-listing fixtures + go test ./test/cmd/aro-hcp-tests/...; framework unit tests (rejection validation, unchanged-state enforcement, quarantine, serialization, cancellation, missing/stale manifest). The live Azure path runs in CI.

---
AI-generated. Review for accuracy.

@zgalor requested from Slack

Diff: 280 lines (+210 / -70) across 3 files Reviewer: redhat-chai-bot Review duration: 1907m
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 280 lines diff across 3 files
0.40
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
46%
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.337
Real PR Conversation Timeline
1 comments
"Review active on #7468"
general weight: 0.35
Assignees
Unassigned
Labels
risk: low confidence: 46.7% 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: 46.7% · Lower = rushed or shallow review
46.7%
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: 21.1% · Safe to merge
21.1%
Repository