Skip to content

Unify columns definition and usage for CI Logs, add workflow_start_time column - #115607

Merged
alexey-milovidov merged 6 commits into
masterfrom
add-cilogs-column
Sep 5, 2026
Merged

alexey-milovidov merged 6 commits into
masterfrom
add-cilogs-column

Conversation

@Felixoid

@Felixoid Felixoid commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

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

...


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

@clickhouse-gh

clickhouse-gh Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [3df0d9a]

Summary: ✅


AI Review

Summary

This PR centralizes the CI log-export metadata definitions, adds workflow_start_time, and threads repo through the build-profile diff queries so the exporters and consumers stop drifting independently. Most of the earlier issues are fixed in the current code, but two review concerns remain: the temporary repo = '' rollout path still defeats repo disambiguation for legacy master rows, and the new workflow_start_time dependency chain is still outside the relevant cache digests, so a future CI-only change to that plumbing can be auto-skipped by the very lanes that should validate it.

Findings

⚠️ Majors

  • [ci/jobs/build_profile_diff_job.py:244] [dismissed by author -- https://github.com/Unify columns definition and usage for CI Logs, add workflow_start_time column #115607#discussion_r3879487181] repo is supposed to partition baselines by repository, but repo_condition still admits every pre-migration repo = '' row. For pull_request_number = 0, find_baseline and resolve_run can therefore still bind a public PR to a legacy ClickHouse/ClickHouse-private master upload (or vice versa) whenever the selected commit only has pre-backfill rows inside the BASE_DAYS + UPLOAD_DELAY_DAYS window, so the cross-repo baseline ambiguity survives for the exact rollout period this change is meant to eliminate.
    Suggested fix: backfill the historical rows before enabling the filter, or gate legacy repo = '' rows with a narrower predicate that cannot match both repositories' old master uploads.

  • [ci/praktika/native_jobs.py:503] [dismissed by author -- https://github.com/Unify columns definition and usage for CI Logs, add workflow_start_time column #115607#discussion_r3879998350] workflow_start_time now depends on shared Praktika plumbing (ci/praktika/gh.py, ci/praktika/_environment.py, ci/praktika/native_jobs.py, ci/praktika/utils.py), but the affected job digests and selected-test harness paths still only track log_cluster.py and the job entry scripts (ci/defs/job_configs.py:170, ci/defs/job_configs.py:208, ci/defs/job_configs.py:1488, ci/defs/job_configs.py:1614, ci/defs/job_configs.py:1684, ci/defs/job_configs.py:1892, ci/jobs/scripts/find_tests.py:80). A future CI-only PR that breaks this shared path while touching only the Praktika files can still be marked "unaffected" and skip the exact log-export / build-profile lanes that would catch it.
    Suggested fix: treat the shared workflow_start_time plumbing as harness input in the same digests that already track log_cluster.py, and extend the selected-test harness path list accordingly.

Final Verdict

Changes requested.

LLVM Coverage Report

⚠️ No coverage measurement for commit 3df0d9a: no coverable C/C++ source files changed (contrib/ is excluded from coverage).

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Aug 20, 2026
Comment thread ci/jobs/scripts/log_cluster.py Resolved
Comment thread ci/defs/job_configs.py Resolved
@clickhouse-gh

clickhouse-gh Bot commented Aug 20, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 3df0d9aaa with master f73529f03 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

6 translation units recompiled, 4 s compile time in total, 6 of them have a recent master baseline.

Job report

Comment thread ci/jobs/scripts/log_cluster.py Resolved
Comment thread ci/jobs/build_profile_diff_job.py Resolved
Comment thread ci/jobs/build_profile_diff_job.py Resolved
Comment thread ci/defs/job_configs.py Resolved
Comment thread ci/jobs/build_profile_diff_job.py Resolved
Comment thread ci/praktika/native_jobs.py Resolved

@alexey-milovidov alexey-milovidov 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.

Python code is certainly more bloated, but LGTM either way.

@alexey-milovidov alexey-milovidov self-assigned this Aug 31, 2026
Comment thread ci/defs/job_configs.py Resolved
Both performance-comparison job configs call `log_export.start` for the
two servers, and `log_export` now routes the shared `EXTRA_COLUMNS` DDL
and expression through `LogCluster`. Their cache digests only listed
`log_export.py` and `setup_log_cluster.sh`, so a change limited to
`ci/jobs/scripts/log_cluster.py` would skip exactly the lanes that
exercise the two-server export path.

Address review: #115607 (comment)
@alexey-milovidov

alexey-milovidov commented Sep 3, 2026 •

Copy link
Copy Markdown
Member

🕵 Merged master and addressed the remaining AI-review Major.

@alexey-milovidov alexey-milovidov added the pr-performance Pull request with some performance improvements label Sep 3, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

📊 Cloud Performance Report

✅ AI verdict: no_change — no significant changes across 39 queries analysed

This PR changes only CI infrastructure — the log-export/build-profile scripts (log_cluster.py, log_export.py, setup_log_cluster.sh) and praktika helpers that add a repo/workflow-start-time column to CI metadata. None of it runs inside the ClickHouse server query path, so neither benchmark delta can be attributed to the change. Q30's flagged -14.4% "improvement" on ClickBench is downgraded to not-sure: the query is intrinsically noisy and nothing in the diff touches what it executes. Q33's -6.2% is correctly a no_change, sitting within master's normal variance. No real performance impact.

clickbench

⚠️ 1 inconclusive

Flagged queries (1 of 43)
Query Verdict Baseline median (ms) PR median (ms) Change q-value Hint
⚠️ 30 not_sure 236 202 -14.4% <0.0001 This PR only touches CI log-export/build-profile plumbing (Python and shell scripts), not the server query path, so a -14.4% shift on Q30 is run-to-run variance on a noisy query, not a PR effect.

Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on.

tpch_adapted_1_official

🟢 No significant changes

Debug info
  • StressHouse run: 9bd8700f-27ac-448e-a008-35d0cc18ea9e
  • MIRAI run: 49d83ab2-ce02-4f4f-81d1-75b610b412dc
  • PR check IDs:
    • clickbench_1178887_1788526208
    • clickbench_1178899_1788526208
    • clickbench_1178905_1788526208
    • tpch_adapted_1_official_1178911_1788526208
    • tpch_adapted_1_official_1178943_1788526208
    • tpch_adapted_1_official_1178957_1788526208

@clickhouse-gh clickhouse-gh Bot added the comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). label Sep 4, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Sep 4, 2026
Merged via the queue into master with commit 1369455 Sep 5, 2026
175 checks passed
@alexey-milovidov
alexey-milovidov deleted the add-cilogs-column branch September 5, 2026 00:02
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 5, 2026
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.

4 participants