Skip to content

Prepare changelog for 26.8 - #111720

Merged
alexey-milovidov merged 38 commits into
masterfrom
auto/changelog-26.8
Aug 25, 2026
Merged

alexey-milovidov merged 38 commits into
masterfrom
auto/changelog-26.8

Conversation

@clickhouse-gh

@clickhouse-gh clickhouse-gh Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Automated daily preparation of CHANGELOG.md for the upcoming 26.8 release.

Every day the NightlyChangelog CI job appends the raw changelog entries for the pull requests newly merged into master (generated with utils/changelog/changelog.py) as one commit, and edits them following .claude/skills/edit-changelog/SKILL.md as a separate commit, so both the raw and the edited state stay reviewable. The point up to which entries were generated is recorded as a Changelog-generated-up-to: trailer in the generate commits.

This pull request stays a draft until the release. The release manager finalizes it manually: fills in the release date and the presentation/video links (the FIXME placeholders), reviews the entries, and marks it ready.

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

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

Version info

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

82 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: 18de9db
Edited by the NightlyChangelog CI job following .claude/skills/edit-changelog/SKILL.md.
@clickhouse-gh clickhouse-gh Bot added the do not test disable testing on pull request label Jul 24, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Workflow [PR], commit [6368209]

Summary: ❌

job_name test_name status info comment
Style check FAIL
clickhouse_spelling FAIL cidb
Code Review DROPPED

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Jul 24, 2026
39 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: 693a303
Edited by the NightlyChangelog CI job following .claude/skills/edit-changelog/SKILL.md.
21 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: b59441b
Edited by the NightlyChangelog CI job following .claude/skills/edit-changelog/SKILL.md.
33 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: b05161a
Edited by the NightlyChangelog CI job following .claude/skills/edit-changelog/SKILL.md.
43 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: 4a44dce
Edited by the NightlyChangelog CI job following .claude/skills/edit-changelog/SKILL.md.
79 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: 1e31a05
Edited by the NightlyChangelog CI job following .claude/skills/edit-changelog/SKILL.md.
56 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: a9f0a82
Edited by the NightlyChangelog CI job following .claude/skills/edit-changelog/SKILL.md.
83 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: 715b7fa
81 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: 09da4d1
52 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: 36e17ed
133 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: c7f88b2
Edited by the NightlyChangelog CI job following .claude/skills/edit-changelog/SKILL.md.
65 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: 7a9ada8
Edited by the NightlyChangelog CI job following .claude/skills/edit-changelog/SKILL.md.
38 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: 31081d9
Edited by the NightlyChangelog CI job following .claude/skills/edit-changelog/SKILL.md.
59 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: f9801d5
Edited by the NightlyChangelog CI job following .claude/skills/edit-changelog/SKILL.md.
13 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: 8cb46d9
Edited by the NightlyChangelog CI job following .claude/skills/edit-changelog/SKILL.md.
56 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: aa1a69b
Edited by the NightlyChangelog CI job following .claude/skills/edit-changelog/SKILL.md.
71 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: c462bd7
Edited by the NightlyChangelog CI job following .claude/skills/edit-changelog/SKILL.md.
47 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: d09da18
84 raw entries generated with tests/ci/changelog.py by the NightlyChangelog CI job.

Changelog-generated-up-to: 2485f14
628 raw entries generated with tests/ci/changelog.py, by hand on a
workstation: the NightlyChangelog job has not been able to push since
2026-08-13, so the branch has been stuck at 2485f14 while master moved
11 days ahead. Same script and arguments as the job runs, only outside the
style-test container.

Changelog-generated-up-to: 191b814
Edited following .claude/skills/edit-changelog/SKILL.md, by hand on a
workstation: the editing step of the NightlyChangelog job has been failing
its own verification since 2026-08-12, so three raw blocks had accumulated
(47 + 84 + 628 entries).

Of the 759 raw entries, 482 are integrated into the in-progress 26.8 section
and 277 are dropped:

- Section 3: the 300 `NOT FOR CHANGELOG / INSIGNIFICANT` entries are dropped,
  except 41 that describe a user-visible change and are promoted into a real
  category, among them a server abort on a corrupt `ORC` stripe footer
  (#114924), `EXPLAIN ANALYZE` for streaming queries (#112445), `SELECT` from
  `TimeSeries` (#115622), streaming watermarks (#106169), and the
  `clickhouse-local` CORS overrides (#115129).
- Section 2: every revert in the range cancels out inside it, so neither side
  appears. Two are re-applications: #114912 re-applies the
  `accurateCastOrDefault` fix, so #109946 keeps its entry with both links and
  the intervening revert #114911 is gone; #114409 re-applies the PromQL
  streaming plan, recorded on the #113656 entry.
- Section 4: `Build/Testing/Packaging Improvement` keeps the seven entries a
  user, packager or from-source builder notices (musl `getaddrinfo` and
  `sched_getcpu`, signed macOS artifacts, Debian packages for release builds
  only, zstd-compressed Docker layers, `unit_tests_dbms` without the full
  library set, vendored Rust built with optimizations locally) and drops the
  CI plumbing.
- Sections 5 and 6: bare pull request URLs converted to links, settings put
  in backticks, four entries rewritten from developer notes into user-visible
  descriptions, and three moved into `Performance Improvement`.

No entry of a strict-retention category was deleted: the job's own
`verify_edit` passes on this edit.

Not done here, because the release manager does it at release time: the full
significance sort, the aggressive merging of sibling pull requests, and the
`FIXME` release date and presentation links.
The `clickhouse_spelling` check failed on `CHANGELOG.md:366: Clickhouse`, in
an entry whose text came verbatim from the pull request body. Spell the
product name, and fix the `loose`/`lose` typo in the same sentence
(`edit-changelog` skill, section 5f).

https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=111720&sha=26f037689408e03502e6769d2ee5a03a3e4979ce&name_0=PR&name_1=Style%20check
Related: #111720
@alexey-milovidov alexey-milovidov self-assigned this Aug 25, 2026
@alexey-milovidov
alexey-milovidov marked this pull request as ready for review August 25, 2026 00:30
alexey-milovidov added a commit that referenced this pull request Aug 25, 2026
The `clickhouse_spelling` check failed on the 26.8 changelog pull request
(`CHANGELOG.md:366: Clickhouse`) because an entry carried the misspelling
straight out of the pull request body it was generated from. The editing
skill lists the typos to fix, so list this one - it is now enforced by CI -
along with `loose`/`lose` from the same sentence.

Related: #111720
@alexey-milovidov alexey-milovidov added can be tested Allows running workflows for external contributors and removed do not test disable testing on pull request labels Aug 25, 2026
Comment thread CHANGELOG.md Resolved
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Aug 25, 2026
Merged via the queue into master with commit f8357d0 Aug 25, 2026
180 of 181 checks passed
@alexey-milovidov
alexey-milovidov deleted the auto/changelog-26.8 branch August 25, 2026 01:59
pull Bot pushed a commit to SINHASantos/ClickHouse that referenced this pull request Aug 25, 2026
The `NightlyChangelog` job has not updated
ClickHouse#111720 since 2026-08-13: every
run since then fails with

    RuntimeError: Failed to push auto/changelog-26.8

preceded by `HTTP 401: Bad credentials` from every `gh` call in the second
half of the run.

The GitHub App installation token is valid for an hour, and a run is much
longer than that (1h12m to 1h43m in the last ten days). The job does try to
refresh it before the editing attempts and before creating the pull request,
but `GHAuth.auth` mints a token at most once per process unless `force` is
set, so those calls have always been no-ops, and there was no refresh before
the push at all. In the run of 2026-08-24 the token was minted at 02:50:30,
the first `Bad credentials` appeared at 03:47:57, and the push failed at
04:32:17.

Mint a fresh token in every step that talks to GitHub - `changelog.py`, each
editing attempt, the revert resolution of the edit verification, the push,
the pull request lookup, and the per-version processing - through a
`refresh_gh_token` helper that passes `force=True`.

What made the runs cross the one-hour mark is `prepare repository`: the CI
checkout is shallow, and `git fetch --unshallow origin` pulled the trees and
blobs of the entire history plus every branch, which took 30 to 36 minutes of
each run. The job only walks the commit graph (the range from the cycle start
tag to master), so fetch the commits without contents: `--filter=tree:0`
against the master refspec only, the same way praktika unshallows the
repository for its own jobs. The few old file versions the job does read are
fetched lazily from the promisor remote.

With the push working again, the raw entries land on the branch and the
`Changelog-generated-up-to:` trailer advances, which also ends the loop where
each night regenerated a bigger block than the night before (579 entries on
2026-08-24 instead of the usual ~50) and so took even longer.

The editing step itself has been failing its own fail-closed verification
since 2026-08-12 (`Entries disappeared in the edit without a matching
revert`), which is a separate problem: that run finished inside the hour with
a valid token. This change makes the raw entries reach the pull request again
while that is investigated.

Related: ClickHouse#111255
Related: ClickHouse#111220
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 25, 2026
kavirajk pushed a commit to kavirajk/ClickHouse that referenced this pull request Aug 26, 2026
`docs/resources/changelogs/oss/2026.mdx` is generated from `CHANGELOG.md`
by `docs/_site/scripts/update_changelogs.py`. Pull request ClickHouse#111720 added
the 26.8 section to `CHANGELOG.md` without re-running the generator, so
the generated page went stale and `Check changelogs` in `Docs check
(Mintlify)` fails on every pull request that touches
`docs/resources/changelogs/`.

Regenerated with `python3 _site/scripts/update_changelogs.py` from `docs/`.

Related: ClickHouse#111720
Related: ClickHouse#116048

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
valerypetrov pushed a commit to valerypetrov/ClickHouse that referenced this pull request Aug 28, 2026
The editing step of the `NightlyChangelog` job has been failing its own
verification every night since 2026-08-12, always the same way:

    Entries disappeared in the edit without a matching revert (['103182', '109946'])

`verify_edit` requires that every raw entry of a strict-retention category
keeps its pull request link - an entry may be rewritten, merged or moved, but
not dropped, because the generation point has already moved past it and no
later run will offer it again. The prompt never said so, and the skill stated
the rule only implicitly, so the agent pruned entries it judged
insignificant: `ClickHouse#103182` (`Lightweight Updates v2`, a `Backward Incompatible
Change`) was deleted outright.

The second half of the same failure is the revert handling. `ClickHouse#109946` fixed
the propagation of settings in `accurateCastOrDefault`, `ClickHouse#114911` reverted
it, and `ClickHouse#114912` reverted that revert - all three in one range. The skill
covers this in section 2.5, but the agent reached the "landed and then
reverted, so delete both" rule first and lost a fix that ships.

So:

- The prompt now lists the strict-retention categories (from
  `STRICT_RETENTION_CATEGORIES`, so the two cannot drift apart), says which
  entries may be deleted and why deleting anything else is unrecoverable, and
  states the revert-of-revert rule.
- The skill gets a retention rule ahead of the individual edits, and the
  walk over `NO CL ENTRY` checks whether a revert is itself reverted before
  it concludes that a change was reverted. The `accurateCastOrDefault` chain
  is written out there as the worked example.
- A retry now tells the agent why the previous attempt was rejected. Without
  it, all three attempts of a run reproduced the same edit and the same
  rejection - visible in every run from 2026-08-12 on.

A hand edit that followed these rules passed `verify_edit` on the first try,
which is how the 26.8 backlog (759 raw entries) was cleared in
ClickHouse#111720.

Related: ClickHouse#111720
Related: ClickHouse#116138
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 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.

3 participants