damccorm opened a new pull request, #41838:
URL: https://github.com/apache/beam/pull/41838

   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:
   
   - The PR is an appropriate fix for the issue (e.g. we're not changing a test 
to avoid a bug)
   - The PR is a simple fix to the issue (e.g. we're not adding infra when we 
could just modify a test)
   - The PR is not covering for other problems (e.g. if we're bumping timeouts, 
it is not because we're covering for a performance problem)
     
   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 `DataflowRunner` 
performance and load tests by UTC date (`staging-<yyyy-MM-dd>`), mirroring the 
`TestDataflowRunner` fix in #41258.
   
   ## Observed Failures (2 in 7 days)
   
   1. **`PostCommit Java IO Performance Tests` ([run 
46573026947](https://github.com/apache/beam/actions/runs/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`) in 
`gs://dataflow-staging-us-central1-844138762903/temp/staging/`:
      - `GCSPerformanceTest` ([job 
142388551359](https://github.com/apache/beam/actions/runs/46573026947/job/142388551359),
 [build scan](https://develocity.apache.org/s/ejklkdpr2by7g)): 
`TextIOLT.testTextIOWriteThenRead` ([job 
`2026-11-30_20_16_39-4029737840340333992`](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-30_20_16_39-4029737840340333992?project=apache-beam-testing))
 failed before launch with `Staged package ... is inaccessible`.
      - `BigQueryStorageApiStreamingPerformanceTest` ([job 
142388551594](https://github.com/apache/beam/actions/runs/46573026947/job/142388551594)):
 `BigQueryStreamingLT.testExactlyOnceStreaming` ([job 
`2026-11-30_20_07_09-2662846654457131374`](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-30_20_07_09-2662846654457131374?project=apache-beam-testing))
 launched at `04:07:10Z` before the sweep, began logging `Staged package ... is 
inaccessible` at `04:10:41Z`, crashed workers in 
`FnArtifactRetrievalService::GetArtifact` during autoscaling, and stayed stuck 
in `JOB_STATE_DRAINING` past the 4h timeout.
   2. **`PerformanceTests Cdap` ([run 
46193825128](https://github.com/apache/beam/actions/runs/46193825128), 
2026-11-28)** ([job 
141130408288](https://github.com/apache/beam/actions/runs/46193825128/job/141130408288),
 [build scan](https://develocity.apache.org/s/zdvyus5twpzbm)): 
`CdapIOIT.testCdapIOReadsAndWritesCorrectlyInBatch` ([job 
`2026-11-28_14_02_28-6618033392493023304`](https://console.cloud.google.com/dataflow/jobs/us-central1/2026-11-28_14_02_28-6618033392493023304?project=apache-beam-testing))
 failed 32s after submission with dozens of content-hashed third-party JARs 
swept from `gs://dataflow-staging-us-central1-844138762903/temp/staging/`.
   
   ## Root Cause
   
   - Both `gs://dataflow-staging-us-central1-844138762903` and 
`gs://temp-storage-for-perf-tests` have 14-day GCS object lifecycle `Delete` 
rules (`age: 14`).
   - #41258 scoped shared `TestDataflowRunner` staging paths by UTC date 
(`staging-<yyyy-MM-dd>`), intentionally leaving production `DataflowRunner` and 
`PackageUtil` untouched.
   - Java performance and load tests invoke `--runner=DataflowRunner` directly 
without `--stagingLocation`, so unchanged content-addressed third-party JARs 
remain skipped by `PackageUtil.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`**: 
Compute 
`STAGING_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, whose 
`DefaultPipelineLauncher.extractOptions` already reads 
`beamTestPipelineOptions`) and triggered `:it:*` runs.
   - **`.github/actions/test-arguments-action/action.yml`**: For Java 
`DataflowRunner` invocations without an explicit `--stagingLocation`, append 
`--stagingLocation=<base>/staging-<yyyy-MM-dd>` derived from `--tempLocation` 
(preferred) or `--tempRoot` (used by `cdap.txt` and other Java perf option 
files). Preserves custom `--stagingLocation` values and leaves non-Java and 
non-Dataflow workflows unchanged.
   
   ## Verification
   
   - Validated YAML syntax and exercised `test-arguments-action` `Group 
arguments` bash logic locally against `cdap.txt`, 
`java_CoGBK_Dataflow_Batch_100b_Multiple_Keys.txt`, Spark/Python option files, 
explicit `--stagingLocation`, and `--tempLocation` override ordering, plus 
verified JSON/shell quoting for `beam_PostCommit_Java_IO_Performance_Tests.yml`.
   - Triggered `beam_PostCommit_Java_IO_Performance_Tests.yml` and 
`beam_PerformanceTests_Cdap.yml` on this PR branch (`beam_PreCommit_GHA.yml` 
also runs automatically on push).
   
   ### Verification
   - Triggered 
`.github/workflows/beam_PostCommit_Java_IO_Performance_Tests.yml` workflow run 
on branch: 
[`46606962256`](https://github.com/apache/beam/actions/runs/46606962256)
   


-- 
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]

Reply via email to