Skip to content

Fix the double slash in the integration test runner play URL on 25.8 - #113317

Merged
PedroTadim merged 1 commit into
ClickHouse:25.8from
groeneai:groeneai/fix-25.8-play-url-double-slash
Aug 5, 2026
Merged

PedroTadim merged 1 commit into
ClickHouse:25.8from
groeneai:groeneai/fix-25.8-play-url-double-slash

Conversation

@groeneai

@groeneai groeneai commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

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):

...

Description

Related: #113160 (where @alexey-milovidov asked me to investigate the job error and send the fix separately)

ci/jobs/scripts/integration_tests_runner.py:30 already ends the base URL with a slash, and line 822 appended a second one, so the CIDB query went to https://play.clickhouse.com//?.... // is not a valid handle, so the server answers There is no handle //?... with HTTP 404 and all three retries in get_tests_execution_time were guaranteed to fail.

The effect was silent rather than fatal: the caller catches the exception and falls back to grouping tests by count instead of by historical duration (integration_tests_runner.py:1030-1035), so integration jobs kept running with unbalanced batches. Seen in Integration tests (amd_tsan, 5/6) on the BackportPR run above, where the shard took 1:02:24.

Verified by driving the real get_tests_execution_time against play, once from the unmodified 25.8 file and once from the fixed one: the pre-fix method exhausts all three retries with 404, the fixed method returns durations for 1061 test modules.

Why this targets a release branch directly. ci/jobs/scripts/integration_tests_runner.py exists only on 25.8. It is absent from master, 26.7, 26.6, 26.5 and 26.3, where the duration query was replaced by the static table in ci/jobs/scripts/integration_tests_configs.py. There is therefore nothing to fix forward and no master PR that a v25.8-must-backport label could be applied to, so the usual label route does not exist here. If you would rather this were handled differently, say so and I will follow that instead.

CLICKHOUSE_PLAY_URL already ends with a slash, and the query URL appended
another one, so every request went to https://play.clickhouse.com//?...
The HTTP handler answers "There is no handle //?..." with 404, so all three
retries in get_tests_execution_time were guaranteed to fail.

The failure was silent rather than fatal: the caller catches the exception and
falls back to grouping tests by count instead of by historical duration, so
integration jobs kept running with unbalanced batches.

This affects the 25.8 branch only. ci/jobs/scripts/integration_tests_runner.py
does not exist on master or on any newer release branch, where the duration
query was replaced by the static table in integration_tests_configs.py, so
there is nothing to fix forward and no backport route.

Verified by driving the real get_tests_execution_time against play: the
pre-fix method exhausts all three retries with 404, the fixed method returns
durations for 1061 test modules.

Co-Authored-By: Claude Fable 5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [fcecfdb]

@groeneai

groeneai commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - fcecfdb

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Integration tests (amd_asan, old analyzer, 1/6) / test_storage_s3_queue/test_parallel_inserts.py::test_batch_set_processing_failure_does_not_crash pre-existing on the 25.8 branch, not introduced here: the same test failed on branch 25.8 itself (pull_request_number = 0, Integration tests (amd_tsan, 2/6), 2026-08-04 09:57:50Z), 3 hours before this run and on a different sanitizer a fix task is created (investigating at full effort, fixing-PR link to follow on this PR)

fail: 1, passed: 575 on that shard; the other 5 amd_asan shards and all 6 amd_tsan shards are
green. Every other check on this head is success or skipped.

Not PR-caused. This diff is one file, ci/jobs/scripts/integration_tests_runner.py, and only
rewrites the play URL string used in reporting, so it cannot affect s3_queue batch-set processing.

Session id: cron:our-pr-ci-monitor:20260804-160000

@PedroTadim
PedroTadim merged commit 96e3a42 into ClickHouse:25.8 Aug 5, 2026
31 of 34 checks passed
@groeneai

groeneai commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator Author

Fixing PR for the s3_queue integration failure on my CI finish ledger: #113728

@groeneai

groeneai commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator Author

Update on that ledger row: the fixing PR was closed unmerged by @PedroTadim, who asked me not to be concerned about the 25.8 branch for now. So this red is resolved by owner decision rather than by a fix. The test is only red on 25.8 (16 FAIL / 22 OK in the 60 days to now, against 0 FAIL / 9213 OK on master and 0 on 26.7, 26.6, 26.5 and 26.3), and the setting the fix pinned is inert on master, so nothing is outstanding on this branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants