Commit 314f8f2
authored
test(e2e): land per-PR worker pods on the default nodepool (#746)
* test(e2e): land per-PR worker pods on the default nodepool
The per-PR harness Job, control plane, and config store already run on the
default (untainted) nodepool; only the CP-spawned worker pods were pinned to
the real dev deployment's duckgres-workers pool. That made every PR's worker
churn (cold bursts, sized spawns, TTL reaps) fight the dev deployment's
headroom placeholders and Karpenter consolidation on the production-shaped
pool. Point the e2e CP's worker nodeSelector at the default pool instead and
drop the now-unneeded taint toleration.
The worker image is arm64-only and the default pool is mixed-arch, so the
selector pins kubernetes.io/arch=arm64 rather than going selector-less.
* test(e2e): align CP env knobs with prod-us logic
Same knobs as the prod-us chart render (values differ, the logic matches):
- add DUCKGRES_WORKER_QUEUE_TIMEOUT=5m (prod 5m; the binary default 60s is
too tight for an on-demand cold spawn that needs a fresh node — previously
observed flaking the sized-worker assertions)
- add DUCKGRES_K8S_MAX_WORKERS=50 (prod sets an explicit cap; unset, the
binary derives one from the CP pod's 1Gi memory)
- drop DUCKGRES_K8S_WORKER_MAX_TTL (prod does not set a TTL clamp)
Deliberate divergences documented in-file: WORKER_PRIORITY_CLASS (prod's
1000000 class would let per-PR worker bursts preempt unrelated default-pool
workloads), CACHE_ENABLED (cache-proxy DaemonSet only runs on duckgres-workers
nodes), wildcard TLS + TRINO_* (need cert-manager / a Trino cluster in the
per-PR namespace).
* test(e2e): correct maxWorkers comment (k8s unset = unbounded, not CP-memory-derived)1 parent ae90f23 commit 314f8f2
2 files changed
Lines changed: 27 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
739 | | - | |
| 739 | + | |
740 | 740 | | |
741 | 741 | | |
742 | 742 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
253 | 270 | | |
254 | 271 | | |
255 | 272 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
260 | 281 | | |
261 | 282 | | |
262 | 283 | | |
| |||
0 commit comments