Repository navigation
Conversation
|
/gemini review |
There was a problem hiding this comment.
📋 Review Summary
This PR cleanly resolves GCS staging artifact expiration failures in Java DataflowRunner performance and load tests by scoping shared staging directories by UTC date (staging-<yyyy-MM-dd>), aligning with the earlier TestDataflowRunner fix in #41258. Both the test-arguments-action option parsing and the beam_PostCommit_Java_IO_Performance_Tests.yml pipeline option injection are well-structured and preserve existing behavior when custom staging locations or non-Dataflow runners are used.
🔍 General Feedback
- In
.github/actions/test-arguments-action/action.yml, deriving the staging base from--tempLocationwith a fallback to--tempRootaccurately covers both standard Dataflow perf tests and IO IT option files (such ascdap.txt) that invokeDataflowRunnerdirectly. - In
.github/workflows/beam_PostCommit_Java_IO_Performance_Tests.yml, passing-DbeamTestPipelineOptionsvia$GITHUB_ENVworks across bothmasterand checked-out release tags viaDefaultPipelineLauncher.extractOptions.
💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.
|
Closing per updated test-health policy: |
|
Reopening under the updated per-issue >= 3 failures in 7 days rule: this shared DataflowRunner staging-directory lifecycle-deletion failure occurred 4 times in the past 7 days (runs 46193825128, 46573026947, 46666077973, and 47125733698). |
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
Scopes shared GCS staging directories used by Java
DataflowRunnerperformance and load tests by UTC date (staging-<yyyy-MM-dd>), mirroring theTestDataflowRunnerfix in #41258.Observed Failures (2 in 7 days)
PostCommit Java IO Performance Tests(run 46573026947, 2026-12-01) — both failing jobs hit the exact same four deleted content-hashed JARs (log4j-api-2.25.4,jspecify-1.0.0,google-api-services-dataflow-v1b3-rev20260503-2.0.0,animal-sniffer-annotations-1.27) ings://dataflow-staging-us-central1-844138762903/temp/staging/:GCSPerformanceTest(job 142388551359, build scan):TextIOLT.testTextIOWriteThenRead(job2026-11-30_20_16_39-4029737840340333992) failed before launch withStaged package ... is inaccessible.BigQueryStorageApiStreamingPerformanceTest(job 142388551594):BigQueryStreamingLT.testExactlyOnceStreaming(job2026-11-30_20_07_09-2662846654457131374) launched at04:07:10Zbefore the sweep, began loggingStaged package ... is inaccessibleat04:10:41Z, crashed workers inFnArtifactRetrievalService::GetArtifactduring autoscaling, and stayed stuck inJOB_STATE_DRAININGpast the 4h timeout.PerformanceTests Cdap(run 46193825128, 2026-11-28) (job 141130408288, build scan):CdapIOIT.testCdapIOReadsAndWritesCorrectlyInBatch(job2026-11-28_14_02_28-6618033392493023304) failed 32s after submission with dozens of content-hashed third-party JARs swept fromgs://dataflow-staging-us-central1-844138762903/temp/staging/.Root Cause
gs://dataflow-staging-us-central1-844138762903andgs://temp-storage-for-perf-testshave 14-day GCS object lifecycleDeleterules (age: 14).TestDataflowRunnerstaging paths by UTC date (staging-<yyyy-MM-dd>), intentionally leaving productionDataflowRunnerandPackageUtiluntouched.--runner=DataflowRunnerdirectly without--stagingLocation, so unchanged content-addressed third-party JARs remain skipped byPackageUtil.alreadyStaged()until GCS sweeps them at day 14 — either between staging and Dataflow's pre-launch check or mid-job during worker autoscaling.Fix
.github/workflows/beam_PostCommit_Java_IO_Performance_Tests.yml: ComputeSTAGING_LOCATION=gs://dataflow-staging-us-central1-844138762903/temp/staging-$(date -u +%Y-%m-%d)and pass-DbeamTestPipelineOptions=["--stagingLocation=..."]to both scheduled (which check out the latest release tag, whoseDefaultPipelineLauncher.extractOptionsalready readsbeamTestPipelineOptions) and triggered:it:*runs..github/actions/test-arguments-action/action.yml: For JavaDataflowRunnerinvocations without an explicit--stagingLocation, append--stagingLocation=<base>/staging-<yyyy-MM-dd>derived from--tempLocation(preferred) or--tempRoot(used bycdap.txtand other Java perf option files). Preserves custom--stagingLocationvalues and leaves non-Java and non-Dataflow workflows unchanged.Verification
test-arguments-actionGroup argumentsbash logic locally againstcdap.txt,java_CoGBK_Dataflow_Batch_100b_Multiple_Keys.txt, Spark/Python option files, explicit--stagingLocation, and--tempLocationoverride ordering, plus verified JSON/shell quoting forbeam_PostCommit_Java_IO_Performance_Tests.yml.beam_PostCommit_Java_IO_Performance_Tests.ymlandbeam_PerformanceTests_Cdap.ymlon this PR branch (beam_PreCommit_GHA.ymlalso runs automatically on push).Verification
.github/workflows/beam_PostCommit_Java_IO_Performance_Tests.ymlworkflow run on branch:46606962256