Skip to content

Refactor load testing infra for upcoming GCS load tests - #40223

Merged
shunping merged 3 commits into
apache:masterfrom
shunping:gcsio-metrics-and-perf-tests-2
Sep 22, 2026
Merged

shunping merged 3 commits into
apache:masterfrom
shunping:gcsio-metrics-and-perf-tests-2

Conversation

@shunping

@shunping shunping commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Description

This PR improves load testing infrastructure in preparation for adding additional GCS file-based I/O load tests:

  1. Rename FileBasedIOLT to TextIOLT. The test specifically tests TextIO read and write performance rather than all file-based I/O formats. Renaming to TextIOLT clarifies its scope and opens up naming space for upcoming load tests (e.g., ParquetIOLT).
  2. Poll for Dataflow monitoring metrics with Awaitility instead of fixed sleep.
  3. Fix a bug where getDataProcessed() was always querying with the legacy PCollection name instead of inputPCollectionV2() when running on Dataflow Runner V2.

…ng a fixed time

Also fix a small bug where getDataProcessed was always queried with
the legacy PCollection name.
@shunping
shunping marked this pull request as ready for review September 22, 2026 17:03
@shunping

Copy link
Copy Markdown
Collaborator Author

r: @derrickaw
cc: @Amar3tto

@github-actions

Copy link
Copy Markdown
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control. If you'd like to restart, comment assign set of reviewers

@shunping
shunping merged commit 07d3169 into apache:master Sep 22, 2026
16 checks passed
@shunping
shunping deleted the gcsio-metrics-and-perf-tests-2 branch September 22, 2026 18:40
ahmedabu98 added a commit to ahmedabu98/beam that referenced this pull request Nov 18, 2026
LoadTestBase exported every metrics row with the insertId "rowId". BigQuery
de-duplicates rows that reuse an insertId within about a minute, so when two
exports land close together, one of them is silently dropped. Since apache#40223
replaced the fixed 4-minute sleep with polling, a test's write and read rows
are exported seconds apart, and the read row is lost on every run.
ahmedabu98 added a commit that referenced this pull request Nov 18, 2026
* [IcebergIO] Re-enable scheduled IcebergIO performance test

IcebergPerformanceTest was dropped from the IO performance matrix in #39502
because scheduled runs check out the latest release, which did not contain
:it:iceberg yet. v2.76.0 and later include it, so add it back. Without it,
nothing writes IcebergIO metrics to the public table behind
https://beam.apache.org/performance/icebergio/.

Also:
- Set fail-fast: false so one failing IO test no longer cancels the others.
- Bump it/iceberg to Iceberg 1.12.0 to match sdks/java/io/iceberg.
- Fix the Table Row Inference look ID in refresh_looker_metrics.py (270 is a
  PyTorch sentiment look; the tablerowinference page expects 351).
- Bump the trigger file so the suite runs on this PR.

* Use a unique BigQuery insertId for each load test metrics row

LoadTestBase exported every metrics row with the insertId "rowId". BigQuery
de-duplicates rows that reuse an insertId within about a minute, so when two
exports land close together, one of them is silently dropped. Since #40223
replaced the fixed 4-minute sleep with polling, a test's write and read rows
are exported seconds apart, and the read row is lost on every run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants