Repository navigation
ci: run the upstream SQL tests on a pull request with the tests:run-core-sql label - #3424
Open
polyglotAI-bot wants to merge 1 commit into
Open
polyglotAI-bot wants to merge 1 commit into
polyglotAI-bot wants to merge 1 commit into
Conversation
…ore-sql label upstream-sql-tests.yml runs nightly, manually, and on pull requests that change tests/clickhouse-client or the workflow. A pull request that changes only the clients does not start it. The `paths` filter of its pull_request trigger also applies to a `labeled` event, so a label cannot start it. The new workflow upstream-sql-tests-label.yml starts on a `labeled` event of a pull request. When the label is tests:run-core-sql, it calls upstream-sql-tests.yml (new `workflow_call` trigger, nothing else changes in that file) and then removes the label. The trigger is pull_request, not pull_request_target: the tests need no secrets, and the code of a fork runs with a read-only token. Only the separate remove-label job gets `pull-requests: write`, and it skips pull requests from forks. The README (CI) documents the label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ccoltx
approved these changes
Nov 25, 2026
AI review gate — Human approval in place of AI reviewApproved on the head commit by ccoltx (write access, not the author), standing in for the AI review:
What to do:
Evaluated at |
Client V2 CoverageCoverage Report
Class Coverage
|
JDBC V2 CoverageCoverage Report
Class Coverage
|
ccoltx
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
upstream-sql-tests.yml(the core SQL test harness, #3389) runs nightly, manually, and on pull requests that changetests/clickhouse-clientor the workflow. A pull request that changes only the clients does not start it. This PR adds thetests:run-core-sqllabel, which runs the harness on any pull request.upstream-sql-tests-label.yml: on apull_requestlabeledevent with the labeltests:run-core-sql, it callsupstream-sql-tests.ymland then removes the label. To run the tests again, add the label again. A second workflow is necessary because thepathsfilter of thepull_requesttrigger also applies to alabeledevent.upstream-sql-tests.ymlgets aworkflow_call:trigger. Nothing else changes in it.pull_request, notpull_request_target: the tests need no secrets, and the code of a fork runs with a read-only token. Only the separateremove-labeljob getspull-requests: write; it skips forks (remove the label by hand there).github.workflowis the name of the caller), so it does not cancel a run that a push to the same pull request started.README.md(CI) documents the label.AGENTS.mddoes not change (kept minimal, as asked in the review of [tests] Run the ClickHouse core SQL tests through client-v2 and jdbc-v2 nightly in CI #3389).The same label exists in clickhouse-cs, -cpp, -odbc, -js, -connect and -go. The label exists in this repository now. This PR changes
.github/workflows/**: it comes from the same request as #3389 (tracking issue ClickHouse/integrations#808).No
CHANGELOG.mdentry: CI only, no change to a client.Checklist
upstream-sql-tests.ymlonly theunpinned-usesfindings thatmainalready has.{client, jdbc} × 8shards: all passed; thenRemove the tests:run-core-sql label). The path-triggered run 45655939864 of the same pull request passed and was not cancelled.JDBC driver + CH latest (apache_http_client)fails inStatementSQLTest.testAllowedKeywordAliasesMatchSystemKeywords: thelatestserver has the new keywordsSEGMENTSandSHARDS. This pull request changes no Java code; the same test fails on other pull requests today (for example job 139248649947).🤖 Generated with Claude Code