fix(idc): make IDC↔Keycloak federation resilient to transient network errors #917
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 277 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.337
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #917"
general
weight: 0.35
shapirov103
Problem
During workshop install, the IDC ↔ Keycloak federation step (
configure_identity_center.py, run viaworkshoppost-install) intermittently fails with Playwrightnet::ERR_NETWORK_CHANGEDon the firstpage.gototo the AWS console sign-in URL. When it fails, IDC is left unconfigured and SCIM provisioning is skipped — surfacing downstream as⚠ SCIM admin group not foundand broken ArgoCD SSO.Observed in
SetupIDESSM logs:Immediately followed by
Waiting for vLLM image build...(multi-GB download/push).Root cause (two compounding issues)
1. Concurrency.
workshop/Taskfile.yamlranray:setup— which launches a multi-GBdocker build && docker pushof the vLLM image in the background (nohup ... &, seecluster-providers/common/Taskfile.ray.yaml) — beforepost-install. The image push saturated/reconfigured the IDE network while headless Chromium was navigating, so Chromium aborted withERR_NETWORK_CHANGED.2. No resilience. A single transient
page.gotofailure aborted the whole run (fail-fast), with no retry.Fix
post-install(idc:configure) runs beforeray:setup. The background image push can no longer race the Playwright navigation.goto_with_retry()inconfigure_identity_center.py: retriespage.gotoon transient network errors (ERR_NETWORK_CHANGED,ERR_TIMED_OUT,ERR_CONNECTION_RESET, ...) with exponential backoff, and re-raises non-transient errors immediately. All fourpage.gotocall sites now use it.Testing
goto_with_retry: retry-then-succeed on transient error, immediate propagation of non-transient errors, raise-after-exhaustion. All pass.python3 -m py_compileand YAML/task --listparse checks pass.task idc:configureend-to-end on a live workshop hub: IDC now federated with Keycloak, 6 users + 4 groups provisioned via SCIM, admin group membership synced for ArgoCD SSO.