Commit 3605d42
Add WCI worker deployment routing and manager integration tests
Cover SetWorkerDeploymentCurrentVersion, SetWorkerDeploymentRampingVersion,
and SetWorkerDeploymentManager against the in-process WCI test environment:
- SetCurrentVersion: happy path, set-to-unversioned (with drainage to
DRAINED), the missing-task-queue guardrail plus its
ignore_missing_task_queues override exercised on a single backlogged
state, and stale-conflict-token rejection.
- SetRampingVersion: happy path, clear ramp (DRAINING -> DRAINED),
ramping-equals-current rejection, and invalid-percentage rejection.
- SetManager: set and override the manager identity, stale-conflict-token
rejection, and enforcement that a routing mutation from a non-manager
identity is rejected.
Add setup helpers (setupPolledVersion, createUnpolledVersion,
setupCurrentPlusSecondVersion) and configure fast version drainage in the
test env so DRAINING -> DRAINED transitions are observable within the test
window.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 3ee06d0 commit 3605d42
2 files changed
Lines changed: 912 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
11 | 21 | | |
12 | 22 | | |
13 | 23 | | |
| |||
17 | 27 | | |
18 | 28 | | |
19 | 29 | | |
| 30 | + | |
| 31 | + | |
20 | 32 | | |
21 | 33 | | |
0 commit comments