Repository navigation
Conversation
|
/gemini review |
There was a problem hiding this comment.
📋 Review Summary
This PR increases --testTimeoutSeconds from the 900s default to 1800s for the Dataflow streaming ValidatesRunner suites (validatesRunnerStreamingConfig and validatesRunnerV2Streaming). This prevents false-negative test timeouts when streaming jobs spend extended time in JOB_STATE_QUEUED or worker pool startup under high concurrency.
🔍 General Feedback
- The configuration change in
runners/google-cloud-dataflow-java/build.gradleis clean, minimal, and properly propagates to all legacy and Runner V2 streaming ValidatesRunner tasks. - Increasing this bound does not impact normal execution time or error termination latency since
TestDataflowRunner.CancelOnErrorstill immediately cancels jobs that emit error logs.
💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #41255 +/- ##
=========================================
Coverage 57.16% 57.16%
Complexity 2291 2291
=========================================
Files 1132 1132
Lines 181012 181012
Branches 1487 1487
=========================================
Hits 103483 103483
Misses 74985 74985
Partials 2544 2544 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Assigning reviewers: R: @shunping added as fallback since no labels match configuration Note: If you would like to opt out of this review, comment Available commands:
The PR bot will only process comments in the main thread (not review comments). |
|
This is unlikely fix the issue. If 15 minutes not sufficient to finish a ValidatesRunner it's almost likely due to deadlocks. If there were a test needs to take more than 15 miuntes, we should fix the test |
|
Parallel tests not yet implemented in Streaming. We can hold on and wait for #41000 gets in |
Did you look at the jobs mentioned in the description (under details)? I think both of those would’ve passed with this change - the problem is we’re queueing more jobs, leading to capacity issues. I think our options are either run serially (seems not worth it) or be more tolerant to longer stock outs (which this does) |
|
Checked I also checked job per project quota never exceeds (or near) in the past 14 days. So it isn't too many jobs in queue either. It's possible intermittent service side hiccup, and it happens infrequently. But I don't think it worth bump timeout which may undermine detections of other regressions in the future |
Ok - I’m not sure, but let’s leave it for now. I’ll be afk for a week, and at that point I can gather more data on how many runs this would have helped. |
|
waiting on author |
|
Ok, here's some more analysis. Over the last 3 weeks, increasing With that said, I don't see many failures since #41000. So this is probably safe to close for now.
|
Note: this PR was auto-generated by tooling. Before moving it out of draft, the author has done a full review of the PR, specifically evaluating it on the following criteria:
Full details of the methodology of generation and review can be found here - https://docs.google.com/document/d/14lj7ECVov4T4EdwmIzNlWrRGE3lLDMOwX5xUMGzaLoc/edit?usp=sharing
If you have concerns with the PR or with the underlying methodology used to generate this, please comment below - they will be addressed by the author not the tooling :)
Summary
Increases
--testTimeoutSecondsfrom900(15 minutes) to1800(30 minutes) for thevalidatesRunnerStreamingandvalidatesRunnerV2StreamingGradle tasks inrunners/google-cloud-dataflow-java/build.gradle.Root Cause
;tldr: we changed our approach to how we run these tests, and now are running many more in parallel. That + capacity issues means that we might need to wait for a while for Dataflow jobs to start. More (AI-generated) details below in the details section.
I was initially skeptical, but I think the parallel test strategy makes sense, and I think this is a reasonable reaction to the stockout issues that is then being impacted by.
Details
43bd833c88a, merged Sep 30), each of the 12 Gradle test worker JVMs (--max-workers=12) executed@Testmethods sequentially (12 concurrent streaming Dataflow jobs).BeamParallelJunit4Runner(parallelThreads = 6), PR #40303 (248548d64f0) merged batch ValidatesRunner tests into shared Dataflow jobs (testBatching = truefor batch only, leaving streaming tests at 1 standalone Dataflow job per test), and PR #40952 (3fd91ba05b8, merged Nov 2) reduced streamingparallelThreadsfrom6to2while also updatingTestDataflowRunnerin streaming mode to tolerate transient stockout retries ("The service will retry").12 Gradle worker JVMs * 2 parallelThreads = 24concurrent streaming Dataflow jobs inus-central1(2x the pre-Improve ValidatesRunner performance. Parallelize runs #40292 concurrency of 12 jobs, plusPostCommit Java ValidatesRunner Dataflow V2triggering at the same06:30 UTCcron schedule), individual streaming jobs experience Dataflow queueing or worker pool teardown delays that consume most of the 15-minute (testTimeoutSeconds = 900) wall-clock timeout:2026-11-12_11_56_13-3714750566918859942), the job was created at19:56:13Zand sat inJOB_STATE_QUEUEDfor 12m40s waiting for regional capacity before Dataflow started worker pool setup at20:08:53Z; the worker began receiving work at20:10:55Z, leaving only 19s beforetestTimeoutSeconds = 900cancelled it at20:11:14Z.2026-11-11_23_51_12-457120166125553798), the job was created at07:51:13Z, finished processing all elements and started auto-draining (Stopping worker pool...) at07:55:03Z(3m50s after creation), but GCE worker pool teardown under concurrent load took 12 minutes (07:55:03Z->08:07:06Z), reachingJOB_STATE_DONEat08:07:38Z(16m25stotal, 85s aftertestTimeoutSeconds = 900cancelled it at08:06:14Z).