damccorm commented on PR #41255: URL: https://github.com/apache/beam/pull/41255#issuecomment-7115030411
Ok, here's some more analysis. Over the last 3 weeks, increasing `--testTimeoutSeconds` from `900` (15m) to `1800` (30m) would have resolved 11 out of 19 failing runs across the 4 Java Dataflow streaming ValidatesRunner workflows (`V2 Streaming`, `Streaming`, `Streaming TagEncodingV2`, and `Streaming Engine`). There were 123 total runs (excluding cancelled ones) across master/PRs, so that's a failure rate of just under 10% from this issue alone. These kicked off a bunch of jobs, so there aren't actually that many jobs running over 15 minutes, but it is also reasonably common if we're launching many jobs. With that said, I don't see many failures since https://github.com/apache/beam/pull/41000. So this is probably safe to close for now. | Actions Run | Workflow | Dataflow Job(s) | Why It Took So Long & Why 30m Would Have Succeeded | | :--- | :--- | :--- | :--- | | [44371137833](https://github.com/apache/beam/actions/runs/44371137833) (`2026-11-18`) | PostCommit Java ValidatesRunner Dataflow V2 Streaming | [2026-11-18_12_17_18-9037439544795745521](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-18_12_17_18-9037439544795745521?project=apache-beam-testing) | **Why it took so long:** Initial job setup took `2m40s` before starting workers, actual pipeline execution took `1m00s` and worker teardown `2m17s` (`Worker pool stopped` at `7m48s`), but Dataflow control-plane finalization from `Worker pool stopped` to `JOB_STATE_DONE` took `7m16s`.<br>**Why it would have succeeded:** The 15m timeout fired at `15m00s` (cancel rejected with `Job has no backend assigned`) just **5 seconds** before the job reached `JOB_STATE_DONE` at `15m05s`. | | [43627318697](https://github.com/apache/beam/actions/runs/43627318697) (`2026-11-14`) | PostCommit Java ValidatesRunner Dataflow V2 Streaming | [2026-11-14_11_06_02-1471861719258595283](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-14_11_06_02-1471861719258595283?project=apache-beam-testing)<br>[2026-11-14_11_21_05-12238116940137496404](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-14_11_21_05-12238116940137496404?project=apache-beam-testing) | **Why it took so long:** Job 1 executed in `1m13s`, then spent `6m07s` tearing down the worker pool (including a Data Lineage creation failure retry) and `6m02s` in post-teardown control-plane finalization. Job 2 sat queued for `14m47s` waiting for Dataflow to begin starting workers.<br>**Why it would have succeeded:** Job 1 reached `JOB_STATE_DONE` at `15m22s` (22s past the 15m timeout). Job 2 had just raised its worker (`15m10s`) when the 15m timeout cancelled it 20s later; with ~5–6m needed f or normal execution + teardown (~21m total), both jobs fit comfortably inside 30m. | | [43483913897](https://github.com/apache/beam/actions/runs/43483913897) (`2026-11-13`) | PostCommit Java ValidatesRunner Dataflow V2 Streaming | [2026-11-13_11_29_34-12358323714026586966](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-13_11_29_34-12358323714026586966?project=apache-beam-testing) | **Why it took so long:** Sat queued in Dataflow for `14m54s` before `Starting 1 workers` was logged under concurrent ValidatesRunner load.<br>**Why it would have succeeded:** Autoscaling had just raised the worker (`15m16s`) when the 15m timeout cancelled the job **1 second later** (`15m17s`). With ~5–6m of normal runtime + teardown (~21m total), it would have finished well within 30m. | | [43426424491](https://github.com/apache/beam/actions/runs/43426424491) (`2026-11-13`) | PostCommit Java ValidatesRunner Dataflow Streaming | [2026-11-13_05_00_57-15426495990209419656](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-13_05_00_57-15426495990209419656?project=apache-beam-testing)<br>[2026-11-13_06_08_55-3974420416307610625](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-13_06_08_55-3974420416307610625?project=apache-beam-testing) | **Why it took so long:** Job 1 sat queued for `17m27s` before starting workers (execution took `56s`). Job 2 executed in `53s` (`Stopping worker pool` at `4m39s`), then GCE worker pool teardown took `11m26s`.<br>**Why it would have succeeded:** Both jobs ran with zero pipeline errors and actually reached `JOB_STATE_DONE` on Dataflow — Job 1 in `22m33s` (its 15m cancel was rejected as `not yet ready for canceling`) and Job 2 in `16m37s`, both well under 30m. | | [43281087492](https://github.com/apache/beam/actions/runs/43281087492) (`2026-11-12`) | PostCommit Java ValidatesRunner Dataflow V2 Streaming | [2026-11-12_11_56_13-3714750566918859942](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-12_11_56_13-3714750566918859942?project=apache-beam-testing) | **Why it took so long:** Sat queued in Dataflow for `12m58s` waiting for capacity before `Starting 1 workers` began.<br>**Why it would have succeeded:** The worker finished startup and began receiving work at `14m42s` with no errors, leaving only 37s before the 15m timeout cancelled it at `15m19s`. With ~1m30s of work + teardown (~19–20m total), it would have completed well inside 30m. | | [43169620883](https://github.com/apache/beam/actions/runs/43169620883) (`2026-11-12`) | PostCommit Java ValidatesRunner Dataflow V2 Streaming | [2026-11-11_23_51_12-457120166125553798](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-11_23_51_12-457120166125553798?project=apache-beam-testing) | **Why it took so long:** Started normally and finished all pipeline work in `1m26s` (`Stopping worker pool` at `3m50s`), but GCE worker pool teardown took `12m02s` under concurrent load.<br>**Why it would have succeeded:** The 15m timeout cancelled the job at `15m00s` while it was already draining, and it still reached `JOB_STATE_DONE` 85 seconds later at `16m25s`. | | [43099515506](https://github.com/apache/beam/actions/runs/43099515506) (`2026-11-11`) | PostCommit Java ValidatesRunner Dataflow Streaming TagEncodingV2 | [2026-11-11_13_39_02-16588217081775945788](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-11_13_39_02-16588217081775945788?project=apache-beam-testing) | **Why it took so long:** Sat queued in Dataflow for `14m13s` before `Starting 1 workers` began.<br>**Why it would have succeeded:** The worker had just finished booting (`Workers have started successfully` at `15m26s`) when the 15m timeout cancelled it **3 seconds later** (`15m30s`). Normal execution + teardown (~4–5m, ~20m total) fits well within 30m. | | [42218791663](https://github.com/apache/beam/actions/runs/42218791663) (`2026-11-06`) | PostCommit Java ValidatesRunner Dataflow Streaming | [2026-11-06_05_10_27-12111851165448775558](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-06_05_10_27-12111851165448775558?project=apache-beam-testing) | **Why it took so long:** Finished all pipeline work in `51s` (`Stopping worker pool` at `2m34s`), then took `6m04s` for worker teardown (including a Data Lineage creation failure retry) plus `6m03s` for control-plane finalization.<br>**Why it would have succeeded:** The job actually reached `JOB_STATE_DONE` at `14m41s`, but `TestDataflowRunner.waitUntilFinish(900s)` exited its backoff polling loop right at `15m00s` before observing the terminal state (its cancel request returned `Job has terminated in state SUCCESS`). With a 30m timeout, the next poll would have observed `JOB_STATE_DONE`. | | [41981795731](https://github.com/apache/beam/actions/runs/41981795731) (`2026-11-05`) | PostCommit Java ValidatesRunner Dataflow V2 Streaming | [2026-11-04_23_27_41-5461883482857657522](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-04_23_27_41-5461883482857657522?project=apache-beam-testing)<br>[2026-11-05_00_12_07-13775522409422773950](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-05_00_12_07-13775522409422773950?project=apache-beam-testing) | **Why it took so long:** Job 1 finished work in `1m24s` (`Stopping worker pool` at `3m27s`), then GCE worker pool teardown took `12m11s`. Job 2 sat queued for `11m25s` before starting workers, then finished work in `1m14s` (`Stopping worker pool` at `14m16s`) and hit the 15m timeout 45s into teardown.<br>**Why it would have succeeded:** Both jobs completed all assertions cleanly and reached `JOB_STATE_DONE` on Dataflow — Job 1 in `16m10s` and Job 2 in `16m57s` — both well inside 30m. | | [41907461102](https://github.com/apache/beam/actions/runs/41907461102) (`2026-11-04`) | PostCommit Java ValidatesRunner Dataflow Streaming TagEncodingV2 | [2026-11-04_13_27_50-1408594198522052572](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-04_13_27_50-1408594198522052572?project=apache-beam-testing) | **Why it took so long:** Sat queued in Dataflow for `17m31s` before `Starting 1 workers` began (once started, pipeline work took `1m27s` and teardown `2m16s`).<br>**Why it would have succeeded:** The 15m cancel at `15m00s` was rejected (`Job is not yet ready for canceling`), and the job ran to completion as `JOB_STATE_DONE` in `23m28s` — well within 30m. | | [41578976970](https://github.com/apache/beam/actions/runs/41578976970) (`2026-11-03`) | PostCommit Java ValidatesRunner Dataflow Streaming Engine | [2026-11-02_21_06_43-15297362608436154050](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-02_21_06_43-15297362608436154050?project=apache-beam-testing) | **Why it took so long:** Started normally and finished all pipeline work in `1m30s` (`Stopping worker pool` at `3m28s`), then GCE worker pool teardown took `12m10s`.<br>**Why it would have succeeded:** The 15m timeout fired at `15m00s` during teardown, and the job still reached `JOB_STATE_DONE` 70 seconds later at `16m10s`. | -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
