Repository navigation
api, cluster-controller: tidy the Direct-fixture test sort (tests only) - #428
Conversation
Follow-up to #402's review. - `direct_substrate` and `enabled_config` move into the api crate's `test_support` module. `lifecycle/characterization_tests.rs` had an identical copy of `direct_substrate`, which is removed. The test `stale_heartbeat_direct_worker_is_not_empty_cluster` in `substrate::direct::cluster_admission_tests` now builds its admission with `ClusterSandboxAdmission::with_config` directly. That drops the local `admission` stand-in and its unused bucket parameter, and lets `cluster_admission::tests` go back to a private module. Only the fixture-construction line of the test body changes; its assertions are the same. - `rejected_admission_blocks_pod_recreation_for_started_sandbox_with_lost_pod` gets the same placeholder comment as its siblings, merged with the comment that was already there. - The `direct_sink` comment names both guards that would decide differently for a Kubernetes label: the converge CAS and the failed-active repair CAS. - The `direct_sandbox_controller` comment adds that the admitted re-execution test also reaches `admitted_pool_cleanup_pending`. Direct answers it with the trait default `false`. Kubernetes reads the reserved slot, and returns workflow progress when that slot's cleanup is pending. No production code changes. The test count is unchanged.
Review — 3 findingsMedium
Low
Everything else checks out:
Verified against |
the-gigi-pplx
left a comment
There was a problem hiding this comment.
Approved. 3 non-blocking findings in the review comment above.
Follow-up to #402's review.
direct_substrateandenabled_configmove into the api crate'stest_supportmodule.lifecycle/characterization_tests.rshad anidentical copy of
direct_substrate, which is removed. The teststale_heartbeat_direct_worker_is_not_empty_clusterinsubstrate::direct::cluster_admission_testsnow builds its admissionwith
ClusterSandboxAdmission::with_configdirectly. That drops thelocal
admissionstand-in and its unused bucket parameter, and letscluster_admission::testsgo back to a private module. Only thefixture-construction line of the test body changes; its assertions
are the same.
rejected_admission_blocks_pod_recreation_for_started_sandbox_with_lost_podgets the same placeholder comment as its siblings, merged with the
comment that was already there.
direct_sinkcomment names both guards that would decidedifferently for a Kubernetes label: the converge CAS and the
failed-active repair CAS.
direct_sandbox_controllercomment adds that the admittedre-execution test also reaches
admitted_pool_cleanup_pending.Direct answers it with the trait default
false. Kubernetes reads thereserved slot, and returns workflow progress when that slot's cleanup
is pending.
No production code changes. The test count is unchanged.
Addresses the non-blocking review findings on #402, which merged before they were applied.
🤖 Generated with Claude Code