Repository navigation
Description
Expected Behavior
Each suite that renders internal/e2e/fixtures/probe/probe.yaml.tmpl gets its own worker pool. identity, egressmitm and imagevolume already get their own namespace, ActorTemplate and snapshot prefix from ${FIXTURE_SUFFIX}, so their workers should be private too.
Actual Behavior
The pool label and the workerSelector are the constant workload: probe, so all three render the same pair:
kind: WorkerPool
metadata:
namespace: ate-e2e-probe${FIXTURE_SUFFIX} # per suite
labels:
workload: probe # constant
---
kind: ActorTemplate
spec:
workerSelector:
matchLabels:
workload: probe # constantWorker selection is by label, not by namespace, so the three 3-replica pools behave as one 9-worker pool that any of the three can schedule onto. When a suite tears its namespace down it deletes workers another suite's actors are still running on.
Two runs where the CI logs show it directly — an identity actor on an imagevolume worker:
runs/32548404077 identity_test.go:164: SuspendActor "probe-alpha": rpc error: code = Unavailable
desc = "transport: Error while dialing: dial unix /var/lib/ateom-gvisor/ateoms/63f963d9-…/ateom.sock"
ateapi "Syncer: removing worker from store (pod deleted)"
worker=63f963d9-… pod=ate-e2e-probe-imagevolume/probe-6cfd69bbbd-xl29r
runs/32417243258 identity_test.go:143: SuspendActor … same dial failure, worker=ddcba475-…
ateapi 15:34:58 "Syncer: marking worker draining (pod deleting)"
worker=ddcba475-… pod=ate-e2e-probe-imagevolume/probe-8588b687c8-qxrr6
ateapi 15:34:59 "Syncer: removing worker from store (pod deleted)" same worker
The victim's symptom depends only on where it was when the worker went away, which is why this reads as several unrelated flakes:
| when the worker is deleted | what the test reports |
|---|---|
| between calls | dial unix .../ateom.sock: no such file or directory |
| mid-restore | ateom's handler context is cancelled, exec.CommandContext SIGKILLs runsc → while running `runsc restore`: signal: killed |
| after routing is up | router 502 bad gateway / 503 |
TestActorIdentity_AfterRestore_IsOwnID_NotGolden is the most frequent failure in CI — 26 of the last 80 failed runs — and splits into several causes; the three signatures above are this bug.
parking_test.go:190 shows the shape the probe fixture is missing: Labels: {"demo": nsObj.Name} with a matching MatchLabels.
Failing CI runs
Thirteen runs in the last 80 failed ones, spanning all three signatures. In each the diagnostics show the worker the identity actor was using belongs to the imagevolume namespace, with a Syncer line recording that pod being drained or removed:
| symptom | date | branch | run | worker's pod |
|---|---|---|---|---|
router-5xx |
2026-08-20 | atepg-change-feed | 32400171542 | ate-e2e-probe-imagevolume/probe-79d8fff675-bp8z8 |
runsc-killed |
2026-08-20 | ctb-source | 32402389884 | ate-e2e-probe-imagevolume/probe-9bbb6684c-v7f8p |
dial |
2026-08-20 | main | 32402609221 | ate-e2e-probe-imagevolume/probe-dc94b795f-4dmxz |
router-5xx |
2026-08-20 | atenet-egress-dns-lookup-family | 32414610688 | ate-e2e-probe-imagevolume/probe-676bb955df-d2hqx |
dial |
2026-08-20 | flaky-tests | 32417243258 | ate-e2e-probe-imagevolume/probe-8588b687c8-qxrr6 |
runsc-killed |
2026-08-21 | extproc-example | 32431501158 | ate-e2e-probe-imagevolume/probe-86c866dbb6-j4pjk |
dial |
2026-08-21 | experiment-flag-extproc | 32436089702 | ate-e2e-probe-imagevolume/probe-55694b85d6-pkz6z |
runsc-killed |
2026-08-21 | ateomnet-ipv6-dualstack | 32448121452 | ate-e2e-probe-imagevolume/probe-578597c69b-xm6hw |
router-5xx |
2026-08-21 | obs-ladder-automation | 32498115146 | ate-e2e-probe-imagevolume/probe-68677485df-cnxlv |
runsc-killed |
2026-08-21 | ctb-source | 32530161712 | ate-e2e-probe-imagevolume/probe-5888c9c85d-ls4j5 |
runsc-killed |
2026-08-22 | main | 32545349474 | ate-e2e-probe-imagevolume/probe-8474965b8d-gdcrb |
dial |
2026-08-22 | atunnel-test-socket-path | 32548404077 | ate-e2e-probe-imagevolume/probe-6cfd69bbbd-xl29r |
router-5xx |
2026-08-22 | wait-for-workers | 32549263943 | ate-e2e-probe-imagevolume/probe-857d9f47b7-qfnft |
Eleven more runs in the same window fail with one of these signatures but cannot be attributed from the run itself — the dump tails each pod at 300 lines and the Syncer lines had already scrolled off.
Relationship to #1106
#1106 describes a different race — a pod that has an address before ateom listens on its socket — and cites 32402609221. That run is in the table above: the worker identity failed to dial is ate-e2e-probe-imagevolume/probe-dc94b795f-4dmxz, and ateapi logged Syncer: marking worker draining (pod deleting) for it 34ms before the dial. The socket was gone because the pod was being deleted, not because it had not been created yet.
That does not disprove #1106's race, which is real in principle — isWorkerEligible did accept a pod on PodIP alone. It means the run offered as its evidence is this bug, so #1107 landing will not make this test green.
Steps to Reproduce the Problem
- Run the full e2e suite on one cluster so
identity,egressmitmandimagevolumeoverlap (hack/run-e2e-kind.sh -v -args --no-color). - While a suite is running,
kubectl get workerpool -A -o jsonpath='{range .items[*]}{.metadata.namespace}/{.metadata.name} {.metadata.labels}{"\n"}{end}'— all three probe pools carry{"workload":"probe"}. - Repeat.
TestActorIdentity_AfterRestore_IsOwnID_NotGoldenfails on roughly a quarter of the rounds, with one of the three signatures above.
Measured on two identical 4-vCPU VMs running concurrently, the only difference being whether the two labels carry ${FIXTURE_SUFFIX}:
unfixed 114 rounds 28 rounds hit one of the three signatures
fixed 92 rounds 0
Fisher two-sided p = 1.2e-8
Per signature: dial 15/114 → 0/92 (p=1.6e-4), runsc killed 6/114 → 0/92 (p=3.4e-2), router 5xx 7/114 → 0/92 (p=1.8e-2).
Specifications
- Version: main @ 6210ad8
- Platform: kind, gVisor sandbox class
Activity
[-]e2e: identity, egressmitm and imagevolume share one worker pool, so each tears down the others' workers[/-][+]E2E test flaky: TestActorIdentity_AfterRestore_IsOwnID_NotGolden — three suites share one worker pool[/+][-]E2E test flaky: TestActorIdentity_AfterRestore_IsOwnID_NotGolden — three suites share one worker pool[/-][+]E2E test flake: TestActorIdentity_AfterRestore_IsOwnID_NotGolden — three suites share one worker pool[/+]fix: land the three root-caused flaky-test fixes (identity, parking, …