Skip to content

Revert "Add ci-coverage label to force LLVM coverage jobs on tests-only PRs" - #119043

Merged
maxknv merged 2 commits into
masterfrom
revert-117866-abakharew/ci-coverage-force-label
Sep 10, 2026
Merged

maxknv merged 2 commits into
masterfrom
revert-117866-abakharew/ci-coverage-force-label

Conversation

@maxknv

@maxknv maxknv commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

Reverts #117866

@alexbakharew It's a custom feature inside the generic CI infra code. If the ci-force-all label does not work for you, let me know i find another solution.


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

Version info

  • Merged into: 26.9.1.1112 (included in 26.9 and later)

@clickhouse-gh

clickhouse-gh Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [713d1ea]

Summary: ✅


AI Review

Summary

This PR reverts the special ci-coverage label and deletes the generic Workflow.FILTER_HOOK_FORCE_JOB escape hatch, so LLVM coverage scheduling falls back entirely to the normal skip and changed-file filters. I cannot approve it because coverage-pipeline-only changes still do not reliably exercise the LLVM coverage pipeline they modify: some declared pipeline files never make any coverage job affected, and even the files that do are still partially pruned by the later CI-only shortcut.

Findings
❌ Blockers
  • [ci/jobs/scripts/workflow_hooks/filter_job.py:131-139, ci/jobs/scripts/workflow_hooks/filter_job.py:364-391, ci/jobs/scripts/workflow_hooks/filter_job.py:463-486, ci/praktika/native_jobs.py:325-354, ci/defs/job_configs.py:2093-2105] _COVERAGE_PIPELINE_PATHS promises that PRs touching coverage-routing code can run the coverage jobs they changed, but the current routing still breaks that contract end to end. job.is_affected_by(...) is False for the whole coverage family when the only change is ci/jobs/scripts/workflow_hooks/filter_job.py, ci/jobs/scripts/newly_covered_lines.py, ci/defs/job_configs.py, or ci/defs/defs.py, so _filter_unaffected_jobs drops the entire family as "not required". And when the changed file does mark LLVM Coverage affected (for example ci/jobs/llvm_coverage_job.py), the later "only CI scripts changed" branch still filters out most amd_llvm_coverage shards and all integration coverage / excluded_from_llvm jobs, while leaving LLVM Coverage itself scheduled with those producers missing. Suggested fix: restore an end-to-end force/include path for coverage-pipeline changes, or expand the digest chain so every path declared by _COVERAGE_PIPELINE_PATHS keeps the full coverage family alive; either way, the CI-scripts-only shortcut also needs to exempt the entire coverage family.
Tests
  • ⚠️ Add a focused routing regression test (or equivalent deterministic check) that simulates a change to ci/jobs/scripts/workflow_hooks/filter_job.py and a change to ci/jobs/llvm_coverage_job.py, then asserts the full LLVM coverage family stays unfiltered after both should_skip_job and _filter_unaffected_jobs. That is the smallest proof that coverage-pipeline changes self-test through both filtering passes.
Final Verdict

Status: ⚠️ Request changes
Minimum required actions:

  1. Make coverage-pipeline-only changes keep the full LLVM coverage family runnable through both filtering stages.
  2. Add focused evidence that this invariant holds for both a routing-only change and a LLVM Coverage job implementation change.

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Sep 9, 2026
or (
_info_cache.pr_number > 0
and not _has_build_digest_changes(_info_cache.get_changed_files() or [])
and not _has_coverage_pipeline_changes(_info_cache.get_changed_files() or [])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The _has_coverage_pipeline_changes check here only keeps should_skip_job from skipping the coverage family; it does not make any of those jobs look affected to the later digest-based pass in check_affected_jobs. For a PR that changes only ci/jobs/scripts/workflow_hooks/filter_job.py, Build (llvm_coverage_build), every amd_llvm_coverage shard, and LLVM Coverage itself all still return False from job.is_affected_by(...), so _filter_unaffected_jobs drops all 25 coverage jobs as "not required". That is also what happened on this PR: every coverage job ended up skipped.

So after this revert, changes to the coverage-routing logic still cannot exercise the coverage pipeline they are deciding about, which makes regressions in that path easy to merge unnoticed. Could we either add filter_job.py to the digest chain that marks LLVM Coverage affected (so it rescues the family through requires), or keep a minimal force-include path for coverage-pipeline changes?

@maxknv
maxknv enabled auto-merge September 9, 2026 14:54
@clickhouse-gh clickhouse-gh Bot added the comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). label Sep 9, 2026
@maxknv
maxknv added this pull request to the merge queue Sep 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Sep 9, 2026
# Conflicts:
#	ci/jobs/scripts/workflow_hooks/filter_job.py
#	ci/jobs/scripts/workflow_hooks/pr_labels_and_category.py
@maxknv
maxknv enabled auto-merge September 10, 2026 08:42
@maxknv
maxknv added this pull request to the merge queue Sep 10, 2026
Merged via the queue into master with commit 063fd82 Sep 10, 2026
175 checks passed
@maxknv
maxknv deleted the revert-117866-abakharew/ci-coverage-force-label branch September 10, 2026 09:18
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 10, 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-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