Skip to content

Add IcebergS3 to perf CI - #119147

Merged
arsenmuk merged 3 commits into
masterfrom
arsenmuk/ClickHouse-public-perf-ci-minio-s3
Oct 8, 2026
Merged

arsenmuk merged 3 commits into
masterfrom
arsenmuk/ClickHouse-public-perf-ci-minio-s3

Conversation

@arsenmuk

@arsenmuk arsenmuk commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

Continuation of #116065
The focus now is on extending Iceberg perf suite with IcebergS3 engine. To support that, a suitable s3 engine should be added to the perf suite, and the Iceberg perf tests should be expanded from IcebergLocal-only to IcebergS3 as well

Changes

  • added seaweedfs (s3 engine) to perf ci: it's already used for stateless tests, and now its supporting code has been slightly generilized to enable both perf and stateless suites
  • added test inclusion macros to perf ci, in order to reuse the same query template for several tests

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Add IcebergS3 to perf CI


Workflow [PR]
Sync PR [sync-upstream/pr/119147]

Version info

  • Merged into: 26.10.1.1805-master (included in 26.10 and later)

@arsenmuk arsenmuk added the pr-performance Pull request with some performance improvements label Sep 10, 2026
@arsenmuk
arsenmuk force-pushed the arsenmuk/ClickHouse-public-perf-ci-minio-s3 branch from d7329b2 to 5a8c110 Compare September 10, 2026 06:11
@clickhouse-gh

clickhouse-gh Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [32c9072]

Summary: ✅


AI Review

Summary

This PR adds a SeaweedFS-backed perf_s3 fixture and splits the Iceberg performance suite into local and S3 variants. The core CI wiring is in place, but two standalone/reproducibility paths still diverge from the new contract, so I would request one more iteration before merge.

Findings

⚠️ Majors

  • [ci/jobs/scripts/perf/compare.sh:458] The new requires_s3 guard only covers stage=run_tests. The documented stage=report compare.sh / confirm_dashboard flows still rerun flagged S3 tests via confirm_changes without provisioning SeaweedFS or restoring the per-side override, so confirmation can fail on localhost:11111 or rerun both sides against the same perf/local namespace. Extend the standalone guard/provisioning to the confirmation paths, or explicitly skip S3 confirmations there.
  • [ci/docker/performance-comparison/Dockerfile:53] The perf image bakes SeaweedFS 4.42, while setup_seaweedfs.sh and ci/docker/stateless-test/Dockerfile use 4.48. Because seaweedfs_service.start prefers the baked /weed binary, CI will exercise a different S3 server version than local reruns and the stateless suite, which makes S3 failures/regressions non-reproducible across environments. Pin the same version everywhere or derive it from one shared constant.
Final Verdict
  • Status: ⚠️ Request changes
  • Minimum required actions:
    • Cover the standalone confirmation/report path for requires_s3 suites instead of only run_tests.
    • Align the SeaweedFS version in ci/docker/performance-comparison/Dockerfile with the shared setup script and other CI images.

LLVM Coverage Report

⚠️ No coverage measurement for commit 32c9072: incomplete coverage measurement: 1 of 21 shard profiles are missing: LLVM_COVERAGE_FILE_it_6.profdata.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Sep 10, 2026
@arsenmuk
arsenmuk force-pushed the arsenmuk/ClickHouse-public-perf-ci-minio-s3 branch from 5a8c110 to 3776908 Compare September 10, 2026 06:14
Comment thread ci/jobs/scripts/perf/minio_service.py Resolved
@clickhouse-gh clickhouse-gh Bot added the comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). label Sep 10, 2026
@scanhex12 scanhex12 self-assigned this Sep 10, 2026
Comment thread ci/jobs/performance_tests.py Resolved
Comment thread ci/jobs/scripts/perf/s3_service.py Resolved
arsenmuk added a commit that referenced this pull request Sep 14, 2026
Flamegraphs are built only for queries perf.py profiles, and without
profile_all_queries a query is profiled only when its timing diff is
significant (tests/performance/scripts/perf.py, the
ignored_relative_change/pvalue gate). The smoke test's left/right
timings are expectedly identical, so the rework run produced no
flamegraphs for it (perf_flamegraph_stacks_v1: 4 profiled queries on
the draft sha, 0 on 5a302a5).

https://performance.ci.clickhouse.com/runs/pr-119147-5a302a59a33a5a551b8fbab6455a0aebd08910aa/tests/iceberg_suite_s3_dummy?query_index=0
#119147
Comment thread ci/jobs/performance_tests.py Resolved
@arsenmuk
arsenmuk added this pull request to stack #119988 September 14, 2026 13:56
@arsenmuk
arsenmuk force-pushed the arsenmuk/ClickHouse-public-perf-ci-minio-s3 branch from e3a163c to a64fbce Compare September 14, 2026 14:20
arsenmuk added a commit that referenced this pull request Sep 15, 2026
Override the perf-CI reference (left) build to the candidate's own PR build,
so master_head compares the candidate against itself. The master_head
reference lacks the s3_slow_*/local_object_storage_slow_* failpoints, so every
synthio query is demoted to the partial (new-server-only) section and gets no
dashboard page. With both servers carrying the failpoints the do_not_check_in_pr
fill queries succeed on both connections, producing real comparison rows,
dashboard pages and flamegraphs for the synthio suites.

Revert before merge.

Related: #119976
Related: #119147
kewin-robetti pushed a commit to viasoftkorp/ClickHouse that referenced this pull request Sep 18, 2026
Flamegraphs are built only for queries perf.py profiles, and without
profile_all_queries a query is profiled only when its timing diff is
significant (tests/performance/scripts/perf.py, the
ignored_relative_change/pvalue gate). The smoke test's left/right
timings are expectedly identical, so the rework run produced no
flamegraphs for it (perf_flamegraph_stacks_v1: 4 profiled queries on
the draft sha, 0 on 5a302a5).

https://performance.ci.clickhouse.com/runs/pr-119147-5a302a59a33a5a551b8fbab6455a0aebd08910aa/tests/iceberg_suite_s3_dummy?query_index=0
ClickHouse#119147
@arsenmuk
arsenmuk force-pushed the arsenmuk/ClickHouse-public-perf-ci-minio-s3 branch from a64fbce to 3796053 Compare October 1, 2026 13:19
arsenmuk added a commit that referenced this pull request Oct 1, 2026
Flamegraphs are built only for queries perf.py profiles, and without
profile_all_queries a query is profiled only when its timing diff is
significant (tests/performance/scripts/perf.py, the
ignored_relative_change/pvalue gate). The smoke test's left/right
timings are expectedly identical, so the rework run produced no
flamegraphs for it (perf_flamegraph_stacks_v1: 4 profiled queries on
the draft sha, 0 on 5a302a5).

https://performance.ci.clickhouse.com/runs/pr-119147-5a302a59a33a5a551b8fbab6455a0aebd08910aa/tests/iceberg_suite_s3_dummy?query_index=0
#119147
Comment thread ci/jobs/performance_tests.py Resolved
@arsenmuk
arsenmuk force-pushed the arsenmuk/ClickHouse-public-perf-ci-minio-s3 branch from 3796053 to 8b8dab4 Compare October 2, 2026 11:10
@arsenmuk
arsenmuk removed this pull request from stack #119988 October 2, 2026 11:11
@arsenmuk
arsenmuk force-pushed the arsenmuk/ClickHouse-public-perf-ci-minio-s3 branch from 8b8dab4 to fe5b44a Compare October 2, 2026 12:03
Comment thread tests/performance/scripts/perf.py Resolved
Comment thread ci/jobs/collect_clickhouse_profiles.py Resolved
@arsenmuk
arsenmuk force-pushed the arsenmuk/ClickHouse-public-perf-ci-minio-s3 branch from 5d09408 to 5dd5423 Compare October 5, 2026 08:30
Comment thread ci/jobs/scripts/perf/compare.sh Resolved
@arsenmuk
arsenmuk marked this pull request as ready for review October 5, 2026 12:50
@arsenmuk
arsenmuk force-pushed the arsenmuk/ClickHouse-public-perf-ci-minio-s3 branch from 5dd5423 to 32c9072 Compare October 6, 2026 09:14

for test in "${test_files[@]}"
do
if rg -q 'requires_s3="1"' "$test"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This new requires_s3 guard only covers stage=run_tests, but compare.sh still lets the other standalone entrypoints fall through confirm_changes. A stage=report compare.sh / confirm_dashboard rerun on one of the new S3 suites will restart the servers and rerun flagged queries without provisioning SeaweedFS or restoring the per-side override, so confirmation either fails on localhost:11111 or reruns both sides against the same perf/local namespace.

Please extend the standalone S3 handling to the confirmation/report paths too (or explicitly skip S3 confirmations there), otherwise the documented report-regeneration flow stays broken for these suites.

&& rm -rf /awscliv2.zip /aws

# Keep SEAWEEDFS_VERSION in sync with the default in setup_seaweedfs.sh
ARG SEAWEEDFS_VERSION=4.42

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This image now bakes SeaweedFS 4.42, but the shared setup script defaults to 4.48 and ci/docker/stateless-test/Dockerfile already pins 4.48 too. Because seaweedfs_service.start prefers the baked /weed binary, the perf CI job will exercise a different S3 server version than local reruns and the stateless suite.

That makes S3-only failures/regressions hard to reproduce across environments. Please keep this pinned to the same version as the shared setup path (or derive it from one place).

@scanhex12 scanhex12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Will be interesting to compare master and some old version like 26.6 from master. Could you please compare them and show the report?

@@ -0,0 +1,72 @@
<test run_all_queries="1" profile_all_queries="1">

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need dummy file here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's gone now, as well as the temporarily disabled sampling and forced profiling

import boto3
from botocore.config import Config

return boto3.client(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I remember you had a plan to add configurable durations in S3 client
Do you have it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's #119976 - don't look at it yet, I'm refining it right now, and will publish it and ping you later today

@arsenmuk

arsenmuk commented Oct 7, 2026

Copy link
Copy Markdown
Member Author

Looks good. Will be interesting to compare master and some old version like 26.6 from master. Could you please compare them and show the report?

@scanhex12 I staged the run vs 26.6 as a separate draft - #124388 - I'll ping you with the results

@arsenmuk
arsenmuk added this pull request to the merge queue Oct 8, 2026
Merged via the queue into master with commit 5c067e2 Oct 8, 2026
293 of 295 checks passed
@arsenmuk
arsenmuk deleted the arsenmuk/ClickHouse-public-perf-ci-minio-s3 branch October 8, 2026 09:14
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 8, 2026
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-ClickHouse__ClickHouse that referenced this pull request Nov 10, 2026
…wer run over run

perf.py repeats every measured query on the same tables without a reset. A
query that changes what its next run reads (a growing table, an UPDATE that
rewrites its own rows, a file each run appends to) gets slower run over run
and is then noisy on master for weeks: 8 of the 10 noisiest tests of the last
round in ClickHouse#100759 were this class, all fixed after merge. A PR run could not
notice: its status ignores slower/unstable rows, and the A/B diff of a new
test mixes noise with the PR's own change.

In master_head PR runs (not nightly, not the Iceberg configuration), read the
job's own analyze/query-runs.tsv for the tests the PR adds or changes and fail
Check Results when a query has, on the tested server, at least 5 runs with
corr(run, time) > 0.8 and last/first > 1.2. Only the tested server counts:
after the merge both master servers run that code, and requiring both servers
drops recall to 0.34-0.94 of heads on last round's offenders against
0.60-0.98. One FAIL child per query carries both servers' run times. A missing
file or a malformed row of a changed test fails the check; unknown changed
files add a workflow warning instead. test_discovery.changed_tests is the
selection, which changed_iceberg_tests now reuses.

Validated on 16 real job logs: flagged on master before ClickHouse#127696 / ClickHouse#127380 and
on all 8 head jobs of ClickHouse#119147, not flagged after the fixes, 1 of 273 tests on
today's master (a query rising on both servers).

Related: ClickHouse#100759

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). pr-ci pr-performance Pull request with some performance improvements pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants