Skip to content

Drop unneeded no-parallel tags from nine stateless tests - #125009

Merged
alexey-milovidov merged 3 commits into
masterfrom
sequential-tests-drop-no-parallel
Oct 10, 2026
Merged

alexey-milovidov merged 3 commits into
masterfrom
sequential-tests-drop-no-parallel

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Stateless tests (arm_asan_ubsan, azure, sequential) keeps hitting its 9000 s timeout. Its median runtime grew from about 7900 s on 2026-10-01 to about 8700 s on 2026-10-09, and 7 of 22 master runs timed out on 2026-10-09. This PR moves nine tests out of the sequential job by dropping no-parallel tags they don't need. Each test still checks the same things.

  • 04040_quota_normalized_query_hash: the user, role and quotas get a ${CLICKHOUSE_DATABASE} suffix. The suffix is stripped from the SHOW CREATE QUOTA output, so the reference is unchanged.
  • 04820_postgresql_tls_credentials, 04648_mysql_tls_credentials: the named collection and the database get a ${CLICKHOUSE_DATABASE} suffix.
  • 03208_wasm_import_export: the WebAssembly modules and functions get a ${CLICKHOUSE_DATABASE} suffix, like the WASM tests that already run in parallel.
  • 03899_parallel_replicas_custom_key_subquery, 04337_parallel_replicas_scalar_subquery_no_leak, 04313_alter_rename_column_projection_setting_validation: these already filter system.query_log / system.text_log by a query_id unique to each run, so only the tag is removed.
  • 04141_sqlite_where_pushdown_escaping: the SQLite file is already per-database, and many other SQLite tests already run in parallel.
  • 04538_materialized_view_comment_implicit_alias_message: it only uses tables in the test database.

Related: #125003

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

🤖 Generated with Claude Code


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

Version info

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

The `Stateless tests (arm_asan_ubsan, azure, sequential)` job hits its
timeout, so move tests out of it when they do not need to be sequential:

- `04040_quota_normalized_query_hash`: suffix the user, role and quotas
  with the database name; strip the suffix from `SHOW CREATE QUOTA`.
- `04820_postgresql_tls_credentials`, `04648_mysql_tls_credentials`:
  suffix the named collection and the database with the database name.
- `03208_wasm_import_export`: suffix the WebAssembly modules and
  functions with the database name.
- `03899_parallel_replicas_custom_key_subquery`,
  `04337_parallel_replicas_scalar_subquery_no_leak`,
  `04313_alter_rename_column_projection_setting_validation`: the logs are
  already filtered by a unique `query_id`.
- `04141_sqlite_where_pushdown_escaping`: the SQLite file is already
  per-database.
- `04538_materialized_view_comment_implicit_alias_message`: uses only
  tables in the test database.

Related: #125003

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [2281b46]

Summary: ✅


AI Review

Summary

This PR removes no-parallel from nine stateless tests and adds or relies on per-test isolation where needed: ${CLICKHOUSE_DATABASE}-scoped WASM objects, access entities, quotas, named collections, and SQLite file paths, plus unique query_id filters for the system.query_log / system.text_log checks. I did not find a remaining shared-state path that would make these tests unsafe in parallel stateless jobs.

Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added pr-not-for-changelog This PR should not be mentioned in the changelog comp-testing Test content only (no production code). labels Oct 9, 2026
@alexey-milovidov alexey-milovidov added the blocker This issue / pr blocks a new release label Oct 9, 2026
alexey-milovidov and others added 2 commits October 10, 2026 06:38
The export name of a WASM function defaults to the function name. After the
function names got the database suffix, `test_random` and `test_func` were
looked up under the suffixed names and not found in the module exports
(`BAD_ARGUMENTS`), so the test failed in every run. The `import_incorrect` case
also passed only by accident, because it expects `BAD_ARGUMENTS` too.

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

blocker This issue / pr blocks a new release comp-testing Test content only (no production code). pr-not-for-changelog This PR should not be mentioned in the changelog 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.

2 participants