Skip to content

Do not schedule Build profile diff when the profiled build is unaffected - #115221

Merged
alexey-milovidov merged 4 commits into
ClickHouse:masterfrom
groeneai:do-not-schedule-build-profile-diff-without-a-build
Aug 21, 2026
Merged

alexey-milovidov merged 4 commits into
ClickHouse:masterfrom
groeneai:do-not-schedule-build-profile-diff-without-a-build

Conversation

@groeneai

@groeneai groeneai commented Aug 17, 2026 •

Copy link
Copy Markdown
Collaborator

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

Requested by @ thevar1able in #115163 (comment): Build profile diff ran on changes involving no builds. His PR changes only utils/exclude-authors.txt, yet the job ran, found no profile data for the head and posted nothing.

digest_config answers two questions: which changed files affect a job, and may its result be reused. 4e62df6112628621 gave this job a focused digest; e64133b542327753 removed it to stop a cache hit skipping the job, whose output is a comment about one concrete commit. That also made the job always affected, and only_docs in filter_job.py compensated for docs-only diffs only.

This splits the two. Job.Config gains enable_cache (default True, and in drop_fields, so no existing job's digest changes), honoured at both cache seams. The job gets its focused digest back plus enable_cache=False: the digest decides whether to run it, the flag keeps every selected run running. Whether the build can produce data for this head arrives through requires=["Build (arm_release)"], covering the build's sources, submodules, docker image and packaging. only_docs and its gate are deleted.

Side effect: no longer always affected, the job stops rescuing Build (arm_release), so that build is skipped on build-free diffs too. Those two jobs are the whole newly-skipped set, and this already happens on the only_docs path today.

Generate LLVM Coverage Diff Report, asked about in the same comment, has no such hole: it is a Result inside llvm_coverage_job.py, already gated on build affectedness.

One pre-existing limitation is widened, not fixed: a skip and a cache hit look identical to the runner, so the comment writer does not run on a skip and the comment can outlive the head it describes. That already holds for docs-only PRs.

Verified: ci/tests/ passes, praktika yaml produces no diff, every job's config digest is byte-identical, and each new assertion reddens under a mutation.


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

Version info

  • Merged into: 26.8.1.1806 (included in 26.8 and later)

Requested in ClickHouse#115163 (comment):
the job ran on changes that involve no builds. That PR changes only
utils/exclude-authors.txt, yet the job was scheduled, found no profile data
for the head, posted nothing and completed OK.

Job.Config.digest_config answered two independent questions. is_affected_by
reads "no digest" as "always affected", while the cache hooks read "has digest"
as "cacheable". This job was introduced with a focused digest in
4e62df6; e64133b removed it to stop a cache hit skipping the
job, because its output is a PR comment about one concrete commit. Defeating the
cache was the intent, but the changed-file filtering went with it, and the
only_docs special case in filter_job.py compensated for docs-only diffs only.
So every other build-free diff still scheduled a comparison that cannot exist.

Split the two meanings. Job.Config gains enable_cache, defaulting to True and
listed in the digest's drop_fields so that no existing job's digest changes and
no cache is invalidated; it is honoured at both cache seams, the lookup and the
push. Build profile diff gets its original focused digest back together with
enable_cache=False: the digest decides whether the job runs, the flag keeps
every selected run running. Whether the profiled build can produce data for
this head arrives through requires=["Build (arm_release)"], which already
covers the build's sources, submodules, docker image and packaging, so none of
that is duplicated on the consumer. The only_docs gate and helper are deleted,
docs-only diffs now being covered by the same generic mechanism.

One consequence is worth naming: no longer unconditionally affected, the job
stops rescuing Build (arm_release) through requires, so that build is also
skipped on build-free diffs. Those two jobs are the whole newly-skipped set,
and this already happens today on the only_docs path.

Generate LLVM Coverage Diff Report was asked about in the same request. It has
no such hole: it is a Result produced inside llvm_coverage_job.py, and the
llvm_coverage family is already gated on build affectedness.

Not fixed here, and widened rather than introduced: a filtered job and a cache
hit are indistinguishable to the runner, so on a skip the job's comment writer
does not run and the build-profile-diff comment can outlive the head it
describes. That window exists today for docs-only PRs. Closing it needs a live
head read before every comment mutation, or workflow-level concurrency, both of
which change comment semantics for every job.

Verified that ci/tests/ passes with the same two unrelated pre-existing
failures as the base tree, that praktika yaml produces no diff, and that
Build (amd_debug)'s digest is byte-identical to master's. The new tests pin the
scheduling matrix, both cache seams and the digest stability; each assertion
was checked to fail under a deliberate mutation of the thing it pins.

Co-Authored-By: Claude Fable 5 <[email protected]>
@groeneai

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

Two independent reviews of this diff: a cold read by a reviewer that had not seen the
implementation notes, then a second model over the full change scope. No blocker and no major
finding; 0 findings from the second model.
Three nits, all resolved or reasoned below.

# Finding Verdict
💡 The PR description ran over the internal 300-word budget. Agreed. Condensed to 298 words with every substantive item kept. Four unrelated PR numbers, cited as precedent for the build-skip side effect, were also removed: each would have posted a cross-reference on an unrelated PR. The claim is stated without them.
💡 #114729 adds a new skip block in filter_job.py directly above the only_docs gate this PR deletes, so whichever merges second will conflict there. Agreed, no code change. git merge-tree against current master is clean; the overlap is textual, not semantic (a review-thread gate is an independent, additive skip). Flagged so it is resolved rather than re-diagnosed. #114623 touches hook_cache.py but neither of the two seams changed here.
💡 The four Bugfix validation jobs still carry digest_config=None with a comment describing the same conflation this PR splits, and are the natural second consumer of enable_cache=False. Not agreed, deliberately out of scope. Their inputs are the PR's source fix plus a run-time-selected master-HEAD binary, neither a repository file, so no digest can capture them. Giving them one to reach the new flag would newly enable changed-file filtering with no correct path list: a separate behaviour change. Observed, not raised.

Verified independently rather than taken from the implementation notes:

  • No cache invalidation. All 172 jobs' config digests are byte-identical between base and this
    tree. Negative control: with enable_cache removed from drop_fields, 172 of 172 change. That
    is what makes "defaults to True, so nothing else moves" a measurement rather than a claim.
  • Carriers arrive through requires, not a copied path list. The docker image and its
    transitive parent, .gitmodules, a submodule, packages/, prepare-time-trace.sh and the
    profile-uploading hook each still schedule the job while being absent from its own digest.
  • Build profile diff is a digest leaf, so removing it from the cache-lookup set reclassifies
    no other job between root and dependent.
  • Every new assertion can fail. Each is pinned by a mutation of exactly what it asserts, both
    cache seams separately, so a one-sided change cannot pass.
  • No only_docs reference remains anywhere in the repository, and the deleted docs-only
    coverage is a row in the new matrix rather than dropped.

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. The scheduling decision is a pure function of the changed-file list, driven through the production _filter_unaffected_jobs exactly as check_affected_jobs drives it (including find_affected_docker_images). Deterministic by construction, not statistical.
b Root cause explained? digest_config answers two questions: job.py:311-312 reads "no digest" as always affected, hook_cache.py:256 reads "has digest" as cacheable. e64133b542327753 deleted this job's digest to defeat caching only; the changed-file filtering went with it. only_docs compensated for docs-only diffs, so every other build-free diff still scheduled the job.
c Fix matches root cause? Yes. It separates the two meanings instead of adding a second special case beside only_docs. The restored digest is byte-identical to the job's original declaration in 4e62df6112628621. No widened bound, no blanket tag, no defensive guard.
d Test intent preserved / new tests added? Yes. The two tests pinning the deleted reason string could not survive the gate's removal, so docs-only coverage was moved to a row in the new digest-level matrix rather than dropped, and the hook-level test was rewritten to pin the stronger property (the hook must not decide this job's fate for any diff shape). One old test would have become vacuous once the gate was gone. 33 new assertions.
e Both directions demonstrated? Yes, three times. Scheduling: on the requester's own diff the job RUNs on the base tree and SKIPs on this one. Caching: against a cache that hits on every lookup, enable_cache=True skips the job and False runs it, measured on cache_success_base64 (what the generated if: reads). Digest: identical when dropped, different when not.
f Fix is general across code paths? Yes. Both cache seams enumerated and both changed (grep -rn digest_jobs ci/praktika -> 8 hits, all in those two paths plus construction), each pinned by its own mutation arm so a one-sided change cannot pass. is_affected_by's null-digest branch is deliberately untouched, being load-bearing for every other digestless job. The sibling asked about in the request, Generate LLVM Coverage Diff Report, has no such hole: it is a Result inside llvm_coverage_job.py and that family is already gated. grep -rn only_docs -> 0 remaining.
g Fix generalizes across inputs (params/datatypes/wrappers)? Yes. The input is a changed-file list; the matrix spans 18 shapes over 6 classes: build-free (5 kinds), server source, the job's own scripts, docker carriers (direct, transitive, own image), submodules, packaging and producer scripts. Registry paths are asserted not to schedule the job, since that would reproduce the no-data run being fixed.
h Backward compatible? (maintainer-approved exception only) Yes. enable_cache defaults to True, so no other job changes behaviour, and it is in drop_fields, so every other job's digest is byte-identical and no cache is invalidated (Build (amd_debug) verified unchanged). No setting, no serialization format, no SettingsChangesHistory.cpp entry (CI-only), no CACHE_VERSION bump. praktika yaml produces no diff.
i Invariants and contracts preserved? Invariant added: the job is scheduled exactly when the profiled build could produce head-side profile data or when the PR changes the job's own scripts, and its result is never reused from cache. Checked on error and early-return paths: the DISABLE_CI_CACHE=1 branch, the null-digest and filtered-job exclusions, and the CI_CONFIG_JOB_NAME early return are all untouched. The lookup seam uses a precomputed name set rather than an indexed read, so a persisted digest key with no matching job cannot raise inside Config Workflow, where a raise marks every dependee DROPPED. Verified the job is a digest leaf, so excluding it cannot change any other job's root/dependent classification.

Session id: cron:clickhouse-impl-slot-4:20260817-202700

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @maxknv, could you review this? It splits digest_config's two meanings by adding Job.Config.enable_cache, so Build profile diff can declare which files affect it (restoring changed-file filtering it lost when its digest was removed to defeat caching) while still never reusing a cached result.

@clickhouse-gh

clickhouse-gh Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [54cfa83]

Summary: ✅


AI Review

Summary

This PR moves Build profile diff off the only_docs special case and back onto changed-file filtering via digest_config plus requires=["Build (arm_release)"], which is the right direction for deciding when the job is relevant. The remaining problem is that restoring digest_config also restores cache reuse for a job whose observable output is a PR-specific comment for the current head: because the cache key omits PR and commit identity, a same-tree rerun can skip the job and leave the wrong comment or no comment at all.

Findings

❌ Blockers

  • [ci/defs/job_configs.py:1783] [dismissed in discussion -- https://github.com/Do not schedule Build profile diff when the profiled build is unaffected #115221#issuecomment-5331828596] Build profile diff is not a pure function of source state. build_comment() embeds the current head SHA and report URL, and the has_pr_data() / failure paths in ci/jobs/build_profile_diff_job.py intentionally overwrite the tagged PR comment on every head so a newer push does not keep an older comment. Re-enabling cache hits here makes CacheRunnerHooks.configure() skip the job whenever <Build (arm_release) digest>-<own digest> matches, even for a different PR or a rewritten head with the same tree. That leaves the new PR with no build-profile-diff comment or an old one naming the previous SHA/report URL. Suggested fix: keep this job uncached, or add per-PR/per-head identity to the reuse key while still preserving the narrow scheduling filter.
Final Verdict

Status: ⚠️ Request changes

  • Prevent cache reuse from skipping the PR-comment refresh path for Build profile diff while keeping the changed-file filtering improvement.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Aug 17, 2026
@thevar1able thevar1able self-assigned this Aug 17, 2026
@thevar1able thevar1able added the can be tested Allows running workflows for external contributors label Aug 17, 2026
@clickhouse-gh clickhouse-gh Bot added the manual approve Manual approve required to run CI label Aug 17, 2026
Comment thread ci/defs/job_configs.py
# Only the job's own scripts. Whether the profiled build can produce
# data for this head arrives through `requires`; a file added to this
# job's pipeline later is not covered automatically.
digest_config=Job.CacheDigestConfig(

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 restored digest_config is narrower than the code this job actually executes. build_profile_diff_job.py imports ci/praktika/gh.py, ci/praktika/info.py, and ci/praktika/result.py, and log_cluster.py pulls ci/praktika/secret.py; with this list, _filter_unaffected_jobs(..., ['ci/praktika/gh.py']) now skips Build profile diff. That means a build-free PR that changes the comment writer, PR metadata loading, result reporting, or CI-log credential path can merge without running the only consumer of that runtime code. Please add those helper modules, or a broader shared-helper path, to this digest.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Citations are accurate: the job body imports ci/praktika/{gh,info,result}.py, log_cluster.py adds secret.py, and none is in this digest. I am not adding them, for three measured reasons.

It is not introduced here. Of the 165 jobs in the pull_request workflow that have a digest and a resolvable command script, 163 miss at least one ci/praktika module their own script imports: Build misses info.py/result.py/settings.py/utils.py, and Fast test, Stateless tests, Integration tests, Unit tests, Stress test, Performance Comparison and LLVM Coverage have the same shape. Praktika's convention is that a job digest tracks the inputs that change the job's output, not its whole import closure.

Adding them would re-introduce the bug this PR fixes. Build (arm_release).is_affected_by(['ci/praktika/gh.py']) is False, so on a gh.py-only diff the job would be scheduled with no PR-side profile data, take the has_pr_data() == False path at build_profile_diff_job.py:1474 and post nothing. A broader shared-helper path is worse: it re-arms the job on every ci/praktika/* change.

The runtime code is covered, in the job that owns it. CI Tests includes ./ci in its digest, so it is affected by all four helpers and by the job body, it is never filtered in filter_job.py, and it runs pytest ci/tests/ including the 301 lines of scheduling tests added here. So a PR changing the comment writer, PR metadata loading, result reporting or the credential path does run this job's tests; what it does not do is run a binary comparison it has no build for.

Comment thread ci/praktika/hook_cache.py Resolved
@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger — de23e06

CI finished with no live failures: 185 check runs, 0 incomplete, Config Workflow and
Finish Workflow both green.

Two rows need explaining, and neither is a live failure:

  • The request-reviews-fork run marked cancelled at 23:01:01Z was superseded 1 second later
    by a skipped run of the same check at 23:01:02Z.
  • The result database holds one Config Workflow / Pre Hooks FAIL row from job
    95535016416 at 22:53:18Z. The re-dispatched Config Workflow job 95536902001 at
    23:01:52Z recorded Pre Hooks OK along with Check Workflows, Check CI DB,
    Calculate docker digests, Filter Hooks, Filter not affected jobs, Cache Lookup,
    Submodule Cache and Init Report, and that is the job the check run reports as success.

This pull request changes only CI code and is scoped by the manual approve label, so 179 of
the 185 runs are filtered out by design.

Session id: cron:our-pr-ci-monitor:20260818-000000

@maxknv

maxknv commented Aug 18, 2026

Copy link
Copy Markdown
Member

@groeneai, remove the enable_cache flag that you added. For jobs with a digest config cache must be always enabled, including the build profile job

@maxknv maxknv self-assigned this Aug 18, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author

Removing the flag makes the job cacheable again, and its cache record is keyed only by job name plus digest, with no sha or PR in the path (cache.py:57). The restored digest covers just the job's own two scripts, which took 7 distinct values across the last 300 master commits. So the first PR that runs the job publishes a record that essentially every later PR then reuses, and the comment stops refreshing. That is the reuse e64133b54 removed the digest to prevent.

There is a shape that satisfies your invariant without the new flag: give the job the build digest paths plus its own two scripts, and drop enable_cache entirely. Then "digest implies cache enabled" holds literally, and the key changes whenever the binary can change. Measured on that shape: skipped for the utils/, docs and tests-only diffs (the case #115163 reported), and run for src/, .gitmodules, contrib bumps, prepare-time-trace.sh and its own body.

Do you want me to push that, or drop the flag as you asked and accept the cross-PR reuse?

@maxknv

maxknv commented Aug 18, 2026

Copy link
Copy Markdown
Member

Removing the flag makes the job cacheable again, and its cache record is keyed only by job name plus digest, with no sha or PR in the path (cache.py:57). The restored digest covers just the job's own two scripts, which took 7 distinct values across the last 300 master commits. So the first PR that runs the job publishes a record that essentially every later PR then reuses, and the comment stops refreshing. That is the reuse e64133b54 removed the digest to prevent.

There is a shape that satisfies your invariant without the new flag: give the job the build digest paths plus its own two scripts, and drop enable_cache entirely. Then "digest implies cache enabled" holds literally, and the key changes whenever the binary can change. Measured on that shape: skipped for the utils/, docs and tests-only diffs (the case #115163 reported), and run for src/, .gitmodules, contrib bumps, prepare-time-trace.sh and its own body.

Do you want me to push that, or drop the flag as you asked and accept the cross-PR reuse?

requires=["Build (arm_release)"] makes "Build (arm_release)" affecting the job digest. Thus, no reuse could occur from PRs with a different source code state. Conversely, if the job with the same state of source code has been successful in any run - it's more than ok to reuse its result.

…e state

Review feedback from @maxknv: for a job with a digest config the cache must
always be enabled, including this one.

My earlier objection was that removing the flag makes the comment stale,
because the job's own digest covers only two rarely changed scripts and the
cache record path is just job name plus digest. That measured the wrong
digest. The key that cache.py uses is the one CacheRunnerHooks.configure
builds, and for a job with both requires and a digest config it prepends the
dependency's digest: Build profile diff is keyed
<Build (arm_release) digest>-<own digest>. Perturbing src/Core/Settings.cpp,
which is in the build's digest paths and not in this job's, moves the diff
job's key. So a head with different sources cannot reuse an earlier record,
and reuse across identical sources is what a cache is for.

That is also the design the comment removed in e64133b described:
"requires (not run_after) so that the job inherits the build's digest".

Removes Job.Config.enable_cache and the two hook_cache.py seams, so
ci/praktika/{job,digest,hook_cache}.py are byte-identical to master again.
The restored digest_config and the deleted only_docs gate, which are what
stop the job running on build-free diffs, are unchanged.

The tests that pinned the flag are replaced by tests for the invariant this
now relies on: that the job requires the build rather than running after it,
that the composed key carries the build's digest as a prefix, and that the
build's digest tracks the source tree. Each is covered by a mutation arm.
The reuse tests computed digests with lookup disabled, so they could not show
what the lookup does with them. They now run CacheRunnerHooks.configure with a
fake cache and assert on cache_success, which is what makes the generated if:
skip the runner.

This surfaced a stronger form of the invariant: the composed key makes the diff
job a dependent of the build, so configure only queries it after the build's own
record was found. With no build record it is never queried at all, and a record
left under its own two-script digest cannot grant reuse. The matching-key case
is the control and does reuse.

Mutation arms: dropping requires, not prepending the dependency digest, and
passing all dependents through step 3 each redden one of these.
…up by

The reuse tests inject records, so they would all still pass if publication
stopped or wrote a different key and the job were simply never reused. Asserts
push_success_record for the diff job and for an ordinary cacheable job as the
control. Mutation arm: making post_run skip jobs with a digest reddens it.
@groeneai

Copy link
Copy Markdown
Collaborator Author

You are right, and my objection was wrong. I measured the job's own digest instead of the key the cache actually uses.

CacheRunnerHooks.configure composes the key, and for a job with both requires and a digest config it prepends the dependency's, so this job is keyed <Build (arm_release) digest>-<own digest>. Perturbing src/Core/Settings.cpp, which is in the build's digest paths and not in this job's, moves it. Reuse across differing source states cannot happen, and reuse at an identical state is the point.

That is also what the comment removed in e64133b54 said: "requires (not run_after) so that the job inherits the build's digest".

Flag is gone in 54cfa83, so ci/praktika/{job,digest,hook_cache}.py are back to master. The restored digest_config and the deleted only_docs gate, which are what stop the job running on build-free diffs, are unchanged. Tests that pinned the flag now pin the inheritance instead: the composed key makes the job a dependent, so it is only looked up after the build's own record is found.

Comment thread ci/defs/job_configs.py
# `requires` folds the build's digest in, so selection and result reuse
# both follow the source state. A file added to this job's own pipeline
# later is not covered automatically.
digest_config=Job.CacheDigestConfig(

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.

Restoring digest_config here re-enables cache hits for Build profile diff, but this job's observable output is PR- and commit-specific, not just source-state-specific. build_comment() embeds pr_sha and get_job_report_url(latest=False), and the has_pr_data() / failure paths deliberately refresh the tagged PR comment for every head so a newer push does not keep an older comment.

The cache key you get from requires=["Build (arm_release)"] is still only <build digest>-<own digest>; it contains neither the PR number nor the head SHA. That means a rebase/amend that preserves the tree, or a second PR carrying the same tree, will reuse the old success record and skip the only writer of the current PR's build-profile-diff comment. The result is either no comment on the new PR or a stale comment naming the old SHA/report URL. If the scheduling filter needs to stay narrow, this job still needs a cache opt-out or a per-PR/per-head component in its key.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The mechanism is described accurately: the key is <build digest>-<own digest> and carries no PR number or head sha.

The consequence does not follow, because a cache hit here requires one on the build. _resolve_final_digest makes this job a dependent of Build (arm_release), and step 3 in hook_cache.py only queries dependents whose prefix was successfully fetched. Measured against the real configure with a fake cache: a record under the composed key with no build record grants no reuse, and with both records present it does (control, so the negative is about the key and not a lookup that never reuses).

So a hit here implies the build was skipped too, which means build_profile_hook (a build post-hook) never ran and no row exists for that sha. has_pr_data() is then false and a forced run takes the no-data path, which calls update_comment(..., only_update=True). Measured on that call: with no existing comment it posts nothing at all, and with one it overwrites the previous comparison with "No build profile data". So forcing the run cannot produce the current comparison. It either does nothing or replaces a valid comment with a notice, which is worse than reusing the record.

Caching stays on for this job per the ruling earlier in this thread. Precedent in the same area: LLVM Coverage is a cacheable job whose post-hook posts an updateable PR comment.

The cross-PR residual at an identical source state is real, and I am leaving it to the owner rather than changing the cache contract here.

@thevar1able thevar1able removed their assignment Aug 18, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member

This is mostly unneeded. As it is a single query to the CI Logs cluster, we can do it every time.

@alexey-milovidov

Copy link
Copy Markdown
Member

But I don't mind merging...

@groeneai groeneai added the groeneai-origin-request PR origin: a maintainer pinged or directed groeneai label Aug 19, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author

You are right about the cluster cost. On a build-free diff the job runs exactly one query: has_pr_data finds no rows, main takes the no-data path and posts nothing, so the dozen-plus queries of a real comparison never run.

What it costs is the runner, not the cluster. That path still takes a clickhouse/stateless-test container on an arm_small runner for a median of 92 seconds. In the last 7 days 1775 of 4686 runs ended on it, 45 runner-hours to run one count() and post nothing. Not every one of those is a build-free diff (a cache-reused build lands there too), but that is the shape of it.

The production side of this PR is a net deletion (only_docs and its gate removed, the focused digest_config restored), so I would like to merge it. If you would rather not have the gate, say so and I will close it and tell @ thevar1able that the job will keep running.

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Aug 21, 2026
Merged via the queue into ClickHouse:master with commit 8518542 Aug 21, 2026
177 checks passed
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 21, 2026
@azat

azat commented Aug 21, 2026

Copy link
Copy Markdown
Member

This is broken, I will revert - #115762

@groeneai

Copy link
Copy Markdown
Collaborator Author

Reverting was right: that test failed 35 times across 22 PRs.

The break was a cross-job assertion in the test I added, not the filtering. Parser memory check landed on 2026-08-19 (#113491) with ./ci/defs/job_configs.py in its own digest and requires=[CLICKHOUSE_EXAMPLES], which Build (arm_release) provides, so from then on a registry-only diff legitimately keeps that build alive. My test asserted it stays skippable. The last CI run on my branch was 20 hours before that merged, so nothing exercised the combination. At the merge commit 36 of the 37 tests still pass and Build profile diff is still skipped for a registry-only diff.

Nothing to re-land: @ maxknv's 0922fe661 already scopes the BUILD_PROFILE_DIFF digest to its own script, and #115425 dropped the ci/defs paths from Parser memory check. On master today Build profile diff is skipped for utils/exclude-authors.txt, docs-only and registry-only diffs, which is what @ thevar1able asked for on #115163. I am not reopening this.

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 groeneai-origin-request PR origin: a maintainer pinged or directed groeneai manual approve Manual approve required to run CI pr-ci 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.

6 participants