fix(webhook): make server-side dry run free of side effects #158
All Vouch review confidence checks passed
Residual risk 0.12 = Change Risk (0.30) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.30 · 90 lines diff across 1 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
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.270
Real PR Conversation Timeline
1 comments
"Review active on #158"
general
weight: 0.35
archlitchi
/kind bug
The webhooks are marked
sideEffects: None, but on--dry-run=serverthey still create and delete real ResourceClaims and ResourceClaimTemplates. A dry-run create leaves a claim behind, so the real create then fails withalready exists, and a dry-run delete removes the claims of a pod or Volcano job that keeps running. On dry run the handlers now send these writes throughclient.NewDryRunClient, so the apiserver still validates them but stores nothing, and the dry-run output still shows the mutated object. The four webhooks are now markedNoneOnDryRun. Tested with new unit tests that fail on main, and on kind v1.34 with Volcano for pod and vcjob create and delete dry runs, plustest/e2e/run.sh.