test(dqo): clean up handoff tests #19997
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.45) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 428 lines diff across 5 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
Diff Size
diff_size
0.363
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #19997"
general
weight: 0.35
tenzen-y
What type of PR is this?
/kind cleanup
/area testing
What this PR does / why we need it?
Refactors the DQO handoff regression coverage requested in the review of #18594.
Fixes #19406
Useful notes for your reviewer
The SparkApplication and TrainJob test changes update name reads to
Obj().Name, keeping them compatible with the newClusterQueueWrapper.Name(...)method.| Behavior | Level | Command and result | Not run and why |
|---|---|---|---|
| Distribution handoffs, foreign owners, ancestry edge cases and lookup-error recovery | unit |
go test -race -p 2 ./pkg/controller/core/dqo/... ./pkg/util/testing/v1alpha1 ./pkg/util/testing/v1beta2 -count=1— passed | — || Existing queue-wrapper callers | unit |
go test -race -p 2 ./pkg/controller/jobs/sparkapplication ./pkg/controller/jobs/trainjob -run '^TestDefault$' -count=1— passed | — || DQO integration coverage | integration |
go test -p 2 ./test/integration/singlecluster/controller/dynamicquotaorchestrator -run TestAPIs -count=1 -v— all 25 specs passed | — || Watch-driven handoffs and cleanup across repeated runs | integration | Ten separate focused runs with
-ginkgo.focus='DynamicQuotaOrchestrator subtree handoff' -ginkgo.randomize-all -ginkgo.seed=<1..10>— all 20 spec executions passed | — |Toolchain: Go 1.27.4 and envtest Kubernetes 1.37.0. The local API server binds to loopback and uses
--advertise-address=192.0.2.1because this workspace has no default network route.Pinned golangci-lint v2.15.0 passed for all six affected packages with 0 issues. Existing unit and singlecluster integration presubmit targets select these tests.
make verifywas started, but the complete repository check cannot finish in this workspace: its requiredverify-skills-linttarget needs Docker or Podman, neither of which is installed. Runningmake verify-skills-lintfails withrun: command not found(exit 127); the aggregate run was stopped after confirming this blocker. Formatting andgit diff --checkpassed, and the working tree is clean.AI assistance was used to refactor and review the tests and prepare this PR.
Release note
``
release-note
``NONE
text
NONE
<!-- end of auto-generated comment: release notes by coderabbit.ai -->