Skip to content

CI: look up the PR LLVM coverage baseline under the CoverageReport workflow - #125466

Closed
groeneai wants to merge 2 commits into
ClickHouse:masterfrom
groeneai:ci-llvm-coverage-baseline-coveragereport
Closed

groeneai wants to merge 2 commits into
ClickHouse:masterfrom
groeneai:ci-llvm-coverage-baseline-coveragereport

Conversation

@groeneai

@groeneai groeneai commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #124765
Related: #124764

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

Since #124765 and #124764, master LLVM coverage is published only by the scheduled CoverageReport workflow, so the baselines live under REFs/master/<sha>/coveragereport/. master_coverage_url in ci/jobs/llvm_coverage_job.py still built the masterci prefix. Once a PR's master parent is more than 100 first-parent commits past the last MasterCI upload, Generate LLVM Coverage Diff Report fails with Could not find baseline coverage file after checking 100 commits, and Print Uncovered Code fails after it (example on #124652). Every PR based on current master that runs these jobs now hits this. The #124765 description already named this lookup as the remaining follow-up.

This PR points master_coverage_url at CoverageReport. The script receives ready-made URLs, so this one change fixes both the baseline lookup and the extra-baseline loop.

Validation: for the 100 first-parent commits before master 19ddaa143972, no URL resolves under masterci and 11 resolve under coveragereport, the first at depth 10. At the CoverageReport cadence the window therefore still holds more than the 1 + 6 baselines the script uses. Replaying the #124652 step through generate_diff_coverage_report.sh fails with the CI error before this change. After it, the step finds the baseline at 56e72cfad0e8, downloads 6 extra baselines and ends no_cpp_changes. This PR touches the coverage pipeline, so its own LLVM Coverage job runs the new lookup.

🤖 Generated with Claude Code


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

…rkflow

Master LLVM coverage is now published only by the scheduled CoverageReport
workflow (ClickHouse#124765, ClickHouse#124764 removed the coverage jobs from MasterCI), so the
baselines live under REFs/master/<sha>/coveragereport/. master_coverage_url
still asked for the masterci prefix, so a PR whose master parent is more than
100 first-parent commits past the last MasterCI upload finds no baseline and
"Generate LLVM Coverage Diff Report" fails with "Could not find baseline
coverage file after checking 100 commits".

For the 100 first-parent commits before master 19ddaa1, the masterci URL
resolves for none and the coveragereport URL for 11, the first at depth 10.
The 100-commit window therefore still holds more than the 1 + 6 baselines the
script uses at the CoverageReport cadence.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-ci-master PR origin: master/nightly CI monitoring finding labels Oct 12, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 1 finding in 2 passes) plus my own cold review (1 finding).

# Sev Finding Verdict Evidence / action
1 💡 PR description: related PRs not given as full URLs, one per line (.github/PULL_REQUEST_TEMPLATE.md) AGREE, fixed before publication Description edited; second pass on the same code returned 0 findings
2 💡 master_coverage_url spells the producer as the literal "CoverageReport", duplicating ci/workflows/coverage_report.py DISAGREE Same convention as every other master-artifact lookup (performance_tests.py, parser_memory_check.py, bugfix_validation.py, check_ci.py); no ci/jobs module imports ci.workflows

Severity: ❌ blocker / ⚠️ major / 💡 nit. DISAGREE verdicts carry recorded evidence and are terminal per finding.

Session id: cron:clickhouse-review-slot-8:20261012-174000

@clickhouse-gh clickhouse-gh Bot added the manual approve Manual approve required to run CI label Oct 12, 2026
@groeneai
groeneai requested a review from alexbakharew October 12, 2026 18:00
@clickhouse-gh

clickhouse-gh Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [cddfbad]


AI Review

Summary

Changes master_coverage_url to read master baselines from CoverageReport, restoring PR coverage comparisons after the producer moved out of MasterCI. Reviewed head cddfbaddc5d4277142d9018a371a10a59cdd6658; no actionable findings.

Missing context / blind spots
  • ⚠️ The current head's LLVM Coverage job is pending. The changed file is identical to the earlier commit 040bc7202e99, whose coverage run passed all six steps and downloaded the primary baseline plus six extra baselines. Completion of the current run would confirm integration after the master merge.
Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added pr-ci comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). labels Oct 12, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 040bc72

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
Stateless tests (amd_llvm_coverage, s3 storage, DBReplicated, parallel, 3/3) / 04952_projection_argumentless_function_json not from this PR (it changes only the LLVM coverage baseline URL): the replica re-parses the test's JSON-AST CREATE TABLE as JSON and fails with Code: 36 Failed to parse JSON for AST deserialization, 3 of 3 reruns. Also red on master since 2026-10-11 and on 6 other PRs #125377 (mine, merged 2026-10-12 18:28Z), which takes the test out of the Replicated database lanes. The tested merge commit predates it
Mergeable Check, PR rollups, red only because of the row above #125377

All 177 check runs completed. LLVM Coverage itself is green on this head, which is the end-to-end check of the baseline lookup this PR changes. CIDB has no other FAIL or ERROR row on this head.

Session id: cron:our-pr-ci-monitor:20261012-203012

@alexbakharew

Copy link
Copy Markdown
Contributor

@groeneai merge latest master

@groeneai

Copy link
Copy Markdown
Collaborator Author

Merged current master in cddfbad (clean merge, the PR diff is unchanged).

@alexbakharew

Copy link
Copy Markdown
Contributor

resolved here: #125987

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 comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). groeneai-origin-ci-master PR origin: master/nightly CI monitoring finding manual approve Manual approve required to run CI pr-ci

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants