Skip to content

Commit e5aef2b

Browse files
committed
Merge remote-tracking branch 'origin/master' into limit-by-sorted-key-runs
# Conflicts: # src/Processors/Transforms/Window/SlidingIndexes.cpp
2 parents b8e4af9 + 516006f commit e5aef2b

2,097 files changed

Lines changed: 83761 additions & 13191 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.clang-format‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Standard: Cpp11
2525
PointerAlignment: Middle
2626
MaxEmptyLinesToKeep: 2
2727
KeepEmptyLinesAtTheStartOfBlocks: false
28-
AllowShortFunctionsOnASingleLine: InlineOnly
28+
AllowShortFunctionsOnASingleLine: All
2929
AlwaysBreakTemplateDeclarations: true
3030
IndentCaseLabels: true
3131
SpaceAfterTemplateKeyword: true

‎.claude/skills/continue-pr-auto/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ gh api "repos/$REPO/commits/$MQ_SHA/statuses" --paginate \
234234
node .claude/tools/fetch_ci_report.js "<a praktika.html?REF=gh-readonly-queue/...&sha=$MQ_SHA&name_0=MergeQueueCI&name_1=<job> URL from above>" --failed
235235
```
236236

237-
The per-job JSON is also directly at `https://s3.amazonaws.com/clickhouse-test-reports/REFs/gh-readonly-queue/<base>/pr-<N>-<base-sha>/$MQ_SHA/mergequeueci/result_<job>.json` (gzip-compressed; the build log is `.../mergequeueci/<job>/job.log`). To fix the rejection, merge the latest base branch (step 3) even if the PR is otherwise current, reproduce the failure on the merged tree, and fix it in the PR - adapt the code to the changed API, or update a newly added test when the PR intentionally changes the behaviour it pins (say so in the commit message and the PR comment). Do not re-add the PR to the merge queue yourself, and do not dismiss a merge-queue failure as flaky without the same evidence as for any other failure.
237+
The per-job JSON is also directly at `https://s3.amazonaws.com/clickhouse-test-reports/REFs/gh-readonly-queue/<base>/pr-<N>-<base-sha>/$MQ_SHA/mergequeueci/result_<job>.json` (gzip-compressed). Do not construct artifact URLs such as log paths by hand: Praktika stores attached files under normalized sub-result directories (e.g. `.../mergequeueci/build_amd_binary/build_clickhouse/build_clickhouse.log`), so guessed paths return `AccessDenied`. Follow the `links` of the failed results in that JSON instead, as printed by `fetch_ci_report.js` (also with `--links`), or use `--download-logs`. To fix the rejection, merge the latest base branch (step 3) even if the PR is otherwise current, reproduce the failure on the merged tree, and fix it in the PR - adapt the code to the changed API, or update a newly added test when the PR intentionally changes the behaviour it pins (say so in the commit message and the PR comment). Do not re-add the PR to the merge queue yourself, and do not dismiss a merge-queue failure as flaky without the same evidence as for any other failure.
238238

239239
Then fetch the PR's own CI reports:
240240

‎.claude/skills/continue-pr/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ gh api "repos/$REPO/commits/$MQ_SHA/statuses" --paginate \
177177
node .claude/tools/fetch_ci_report.js "<a praktika.html?REF=gh-readonly-queue/...&sha=$MQ_SHA&name_0=MergeQueueCI&name_1=<job> URL from above>" --failed
178178
```
179179

180-
The per-job JSON is also directly at `https://s3.amazonaws.com/clickhouse-test-reports/REFs/gh-readonly-queue/<base>/pr-<N>-<base-sha>/$MQ_SHA/mergequeueci/result_<job>.json` (gzip-compressed; the build log is `.../mergequeueci/<job>/job.log`). To fix the rejection, merge the latest base branch (step 3) even if the PR is otherwise current, reproduce the failure on the merged tree, and fix it in the PR - adapt the code to the changed API, or update a newly added test when the PR intentionally changes the behaviour it pins (say so in the commit message and the PR comment). Do not re-add the PR to the merge queue yourself, and do not dismiss a merge-queue failure as flaky without the same evidence as for any other failure.
180+
The per-job JSON is also directly at `https://s3.amazonaws.com/clickhouse-test-reports/REFs/gh-readonly-queue/<base>/pr-<N>-<base-sha>/$MQ_SHA/mergequeueci/result_<job>.json` (gzip-compressed). Do not construct artifact URLs such as log paths by hand: Praktika stores attached files under normalized sub-result directories (e.g. `.../mergequeueci/build_amd_binary/build_clickhouse/build_clickhouse.log`), so guessed paths return `AccessDenied`. Follow the `links` of the failed results in that JSON instead, as printed by `fetch_ci_report.js` (also with `--links`), or use `--download-logs`. To fix the rejection, merge the latest base branch (step 3) even if the PR is otherwise current, reproduce the failure on the merged tree, and fix it in the PR - adapt the code to the changed API, or update a newly added test when the PR intentionally changes the behaviour it pins (say so in the commit message and the PR comment). Do not re-add the PR to the merge queue yourself, and do not dismiss a merge-queue failure as flaky without the same evidence as for any other failure.
181181

182182
Then fetch the PR's own CI reports:
183183

‎.claude/skills/review/SKILL.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ WHAT TO REVIEW VS WHAT TO IGNORE
103103
**Documentation:**
104104
- Flag ambiguous release references such as "this version" in setting descriptions, including source-level `DECLARE` doc strings that appear in generated documentation and system tables. Suggest an explicit ClickHouse release or supported range, verified against release history; for example, "ClickHouse versions 26.7 and later support only the unified insert deduplication hash" for `insert_deduplication_version`. If the release is unverified, request that information rather than inventing a version number. Do not flag references to a clearly identified algorithm or format version merely because they use the same phrase.
105105
- Structured ClickHouse surfaces are documented from source registrations: SQL statements (`StatementFactory`, rendered through `system.documentation`), SQL functions and aggregate functions (`FunctionDocumentation`), settings (`DECLARE` doc strings), table functions, table engines, formats, system tables, and similar components. Do not ask for a separate hand-written `docs/` page when this source-level documentation is present and adequate. Statement reference pages must use autogenerated markers and keep the full page body in the parser's statement registration.
106+
- For a new aggregate function, a `FunctionDocumentation` registration alone does not publish a site page: the aggregate-docs generator discovers only existing `docs/reference/functions/aggregate-functions/<function>.mdx` stubs with autogenerated markers. Require the stub and its routing/navigation entries; otherwise the registration is absent from the reference site.
106107
- Flag documentation only when source-level structured docs are missing or weak, or when the change needs non-structured user guidance that belongs under `docs/` (guides, tutorials, architecture, operations/admin, integrations).
107108
- `docs/en` is a legacy directory and is not part of the published documentation site. Flag any PR that adds or modifies a file under `docs/en`: require the page to be placed in the appropriate current English tree under `docs/` (such as `docs/reference` or `docs/concepts`) and added to that section's `navigation.json`. Deletions from `docs/en` are valid cleanup and should not be flagged.
108109
- English documentation updates in `/docs` belong in the Mintlify `.mdx` files. Inspect every target file for `{/*AUTOGENERATED_START*/}` / `{/*AUTOGENERATED_END*/}` and treat content between those markers as read-only output: require the change in that generator's source of truth instead of proposing or accepting a direct `.mdx` edit. For reference documentation under `/docs/reference`, the source of truth is the defining source registration. Direct generated-region changes are expected only in the dedicated documentation autogeneration PR carrying the `pr-autogenerated-docs` label.

‎.claude/tools/fetch_ci_report.js‎

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,8 @@ async function fetchReport(inputUrl, options = {}) {
810810
// top-level report whose workflow has no job report linked explicitly.
811811
const workflowOf = u => u.replace(/&name_1=[^&]*/, '');
812812
const topLevelUrls = ciUrls.filter(u => /[?&]name_0=/.test(u) && !/[?&]name_1=/.test(u));
813+
const allGreenTopLevel = [];
814+
let failedChildCount = 0;
813815
for (const topLevelUrl of topLevelUrls) {
814816
if (ciUrls.some(u => /[?&]name_1=/.test(u) && workflowOf(u) === topLevelUrl)) continue;
815817
try {
@@ -819,22 +821,32 @@ async function fetchReport(inputUrl, options = {}) {
819821
if (!ciUrls.includes(childUrl)) ciUrls.push(childUrl);
820822
}
821823
if (childUrls.length > 0) {
824+
failedChildCount += childUrls.length;
822825
console.log(`Top-level report ${topLevelUrl} is an index — descending into ${childUrls.length} failed job report(s).`);
823826
} else {
824-
// No failures (all-green PR): expand to ALL concrete children so the display list
825-
// and --report N indices are consistent with each other.
826-
const allChildren = allChildReportUrls(topLevelUrl, top.jsonData).filter(isConcreteJobUrl);
827-
if (allChildren.length > 0) {
828-
for (const childUrl of allChildren) {
829-
if (!ciUrls.includes(childUrl)) ciUrls.push(childUrl);
830-
}
831-
console.log(`Top-level report ${topLevelUrl} is all-green — expanded into ${allChildren.length} concrete job report(s).`);
832-
}
827+
allGreenTopLevel.push({ topLevelUrl, jsonData: top.jsonData });
833828
}
834829
} catch (e) {
835830
console.log(`Note: could not expand the top-level report ${topLevelUrl} into job reports (${e.message}); showing job-level failures only.`);
836831
}
837832
}
833+
// An all-green top-level report is expanded into ALL its concrete children, so the display list
834+
// and --report N indices are consistent with each other. But when another workflow already
835+
// contributed failed jobs (e.g. a green `PR` run of a PR rejected by `MergeQueueCI`), its ~150
836+
// green jobs would only bury the failures, so leave it out.
837+
for (const { topLevelUrl, jsonData } of allGreenTopLevel) {
838+
if (failedChildCount > 0) {
839+
console.log(`Top-level report ${topLevelUrl} is all-green — not expanded, because another workflow has failed jobs.`);
840+
continue;
841+
}
842+
const allChildren = allChildReportUrls(topLevelUrl, jsonData).filter(isConcreteJobUrl);
843+
if (allChildren.length > 0) {
844+
for (const childUrl of allChildren) {
845+
if (!ciUrls.includes(childUrl)) ciUrls.push(childUrl);
846+
}
847+
console.log(`Top-level report ${topLevelUrl} is all-green — expanded into ${allChildren.length} concrete job report(s).`);
848+
}
849+
}
838850

839851
// Remove workflow-index entries (name_0 in WORKFLOW_INDEX_NAMES with no name_1) so that
840852
// --report N and the displayed numbering only count concrete job reports, not the

0 commit comments

Comments
 (0)