Repository navigation
NightlyChangelog: keep the entry of a re-apply that carries its own change - #133259
Conversation
…hange A revert of a revert of this release was always treated as cancelling out, so its own bullet had to go. `#129863` re-landed the tests-only `#129425` (reverted by `#129862`) and also fixed `INSERT` into a table whose `PROJECTION` has `GLOBAL IN` in `WHERE`, with a `Bug Fix` entry of its own. The verifier rejected the edit that kept it ("Reverts of changes of this release still have entries of their own"), and the retried edit dropped the fix from the 26.11 changelog: https://github.com/ClickHouse/ClickHouse/actions/runs/44660948255 Such a re-apply, one that arrived under a strict-retention category, is no longer exempt from strict retention and not required to be deleted: its link stays, as a bullet of its own or merged into the entry it brought back. The prompt and the `edit-changelog` skill describe the case. Related: #126190 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Workflow [PR], commit [b974b97] Summary: ✅ AI ReviewSummaryReviewed Consumers of the two attribution forms were traced: Final VerdictStatus: ✅ Approve |
`strict_prs` holds only today's raw entries, so on the run after a re-apply with an entry of its own was integrated, the pull request fell back into `cancelling`: keeping its bullet was rejected and deleting it passed. The in-progress section is the record on those runs: an earlier verified edit could only have left it attributed there as its accepted bullet or as the re-apply link on the entry it brought back, and the link stays either way. Only the re-applies of today's raw blocks are put to the agent. Add a two-run regression for keeping and for losing the bullet. Review: #133259 (comment) Co-Authored-By: Claude Opus 5.5 <[email protected]>
When the accepted own entry of a re-apply is reverted and that revert is reverted later, the entry comes back from the ledger: it is in neither today's raw blocks nor the section, so the re-apply fell back into `cancelling` and its restoration was rejected. A deletion the ledger recorded as strict or already accepted (`required`) now counts as well. Extend the regression through the removal and the restoration of that entry, with the deletion recorded by `revert_licensed_deletions`. Review: #133259 (comment) Co-Authored-By: Claude Opus 5.5 <[email protected]>
A re-apply is attributed in two ways: as the link on an entry it brought back, and, when it carries a change of its own, on a bullet of its own. The verifier treated any attribution as "has an entry", which was wrong in both directions. An annotation was taken as evidence of an own entry. A plain re-apply `#300` of `#100` was promoted out of `cancelling` by its link on the bullet of `#100`, so when `#100` was reverted again, removing that bullet was rejected and giving `#300` a bullet for the reverted feature passed. And the own entry was not kept apart from the annotation. A re-apply on both the feature bullet and its own fix bullet had only the first of them recorded by `revert_licensed_deletions`, so after a revert and a revert of that revert the feature came back and the fix was lost, with the verifier satisfied by the link on the feature bullet. Losing the fix bullet while the link stayed was not noticed either. `analyze_reverts` now returns `brought_back`: for each revert, the pull requests whose entries it can annotate (the ones below it in a chain, except its direct targets). A bullet of a re-apply that also attributes one of them is an annotation, any other is its own (`own_bullets`), and `entry_placement` skips the annotations. With that: - a re-apply counts as having an entry of its own when it has a bullet of its own in the section, a recorded deletion of one, or a strict raw entry today - not for a link on an entry it brought back; - deletions record the own bullet, and restorations, their category, the re-apply links on them and the bullets a revert may annotate are all asked of the own bullet; - an own entry that disappears while its pull request stays attributed is reported, and a re-apply gets one bullet of its own. Regressions: a plain re-apply followed by a second revert of the original and its restoration, a re-apply with a fix of its own through acceptance, removal, recording and restoration of both bullets, and the fix staying when only the original is reverted again. Review: #133259 (comment) Review: #133259 (comment) Co-Authored-By: Claude Fable 5.2 <[email protected]>
…tion A re-apply with an entry of its own can be reverted on the night it arrives, before any edit has placed that entry: `#100` and its re-apply `#300` carry the same `Bug Fix` entry, `#200` reverts `#100`, and `#600` reverts `#300`. Both raw entries are deleted and recorded as `raw`. When `#700` reverts `#600`, the restoration demanded a bullet of `#300`'s own, so one bullet attributed to `#100`, `#300` and `#700` was rejected as missing `#300` while two duplicate bullets passed. On arrival the same entry may be merged into the one it brought back. A recorded deletion of a re-apply is now one of two things. A `section` record is a bullet of its own that an edit had accepted: it comes back as a bullet of its own, as before. A `raw` record is an entry that was never placed (`unplaced`): it is restored on the run that brings the re-apply back (the one whose raw blocks hold the revert of its reverter), and then either placement restores it, a bullet of its own or its link on the entry it brought back. On later runs the section says which it was, and the record asks for nothing: a merged one is a plain re-apply again, whose link goes when the original is reverted once more. When nothing it brought back ships on the run that brings it back, it is offered instead of required. The prompt tells the agent to place such an entry the way it would on arrival. Regressions: raw deletion and merged restoration of a repeating re-apply entry, the next run, and a second revert of the original; the same with nothing to merge into; and the offered case. Review: #133259 (comment) Co-Authored-By: Claude Fable 5.2 <[email protected]>
…ck ships A raw entry of a re-apply that is placed on a run (arriving under a strict category, or unplaced and brought back) was kept because the re-apply puts something back. That does not hold when the original change is out again. On arrival: `#100`, `#200` reverting it, `#300` re-applying it with the same `Bug Fix` entry, and a second revert of `#100`, all on one night. The fix is not in the release, but deleting both repeated entries was rejected ("Entries disappeared ... ['300']") and a standalone `#300` bullet for the reverted fix passed. On restoration the decision already existed, but it looked at every pull request the re-apply sits above in the chain. A plain re-apply in between (`#300` re-applying `#100`, later re-applied in turn by `#700`) stands and is not in `credits`, yet it carries no entry, so the repeating raw entry of `#700` stayed required after `#100` was reverted again. Both are now one decision. `carries_entry` says whether something a re-apply brought back is in the release as an entry its link can stand for: an original change that no standing revert takes out, or a revert with an entry of its own that the release keeps. A re-apply placed on this run with no such entry below it is `optional`: exempt from retention like a cancelling revert, and allowed a bullet of its own unlike one, since whether its entry describes an independent change is the agent's judgement. Decided in ascending order, so an optional re-apply is not an entry for a later one to stand on. The prompt lists the arriving ones separately, and the skill describes the case. Regressions: the four-PR arrival case and the later return of the original, the longer chain with a plain re-apply in between (offered with the second revert of the original, required without it), and two repeating re-applies of an original that is out again. Review: #133259 (comment) Review: #133259 (comment) Co-Authored-By: Claude Fable 5.2 <[email protected]>
`carries_entry` decides whether a re-apply's raw entry is required, by asking whether something it brought back is an entry its link can stand for. It still counted two kinds of pull requests that cannot carry a link: - A `cancelling` revert that came under a strict category. `#200` reverts `#100` with a `Bug Fix` entry, `#300` re-applies `#100` without one, and `#600` reverts `#300` with a `Bug Fix` entry, all on one night. What `#600` restores is the revert `#200`, whose bullet has to go, but its strict raw entry made it a carrier, so deleting all four bullets failed with "Entries disappeared ... ['600']". - An original change published in an earlier release. `#200` reverts `#50` from a released section and `#300` reverts `#200`. The entry of `#50` cannot be amended and nothing changed for users, but `#50` counted as a carrier, so deleting both descriptions failed with "Entries disappeared ... ['300']". A carrier is now an entry that stays in the in-progress section: an original change of this cycle that no standing revert takes out, or a revert with an entry of its own that is neither `cancelling` nor `optional`. In both cases above the entry becomes optional: it may go, and a bullet for an independent change may stay. The prompt and the skill name the three reasons a revert of a revert can have nothing of the release to put back. Review: #133259 (comment) Co-Authored-By: Claude Fable 5.2 <[email protected]>
The nightly changelog job treated every revert of a revert of this release as cancelling out, so its bullet had to be deleted. #129863 re-landed the tests-only #129425 (reverted by #129862). It also fixed
INSERTinto a table whosePROJECTIONhasGLOBAL INinWHERE, with aBug Fixchangelog entry of its own. The verifier rejected the edit that kept that entry ("Reverts of changes of this release still have entries of their own (['#129863'])"), and the retried edit dropped the fix from the 26.11 changelog: https://github.com/ClickHouse/ClickHouse/actions/runs/44660948255. The entry has been restored in #126190 by hand.A revert of reverts with a changelog entry of its own is now kept like any other entry and is no longer required to be deleted. It may keep a bullet of its own, or be merged into the entry it brought back when its text only repeats that entry. A revert-of-revert without its own entry behaves as before.
Such a pull request can be attributed in two ways: as the re-apply link on an entry it brought back, and on a bullet of its own. The job now tells the two apart (
brought_back,own_bullets):The edit prompt and the
edit-changelogskill describe the case.ci/tests/test_changelog_nightly_reverts.pycovers it over consecutive nightly runs (acceptance, later runs, removal, recording and restoration) withverify_editandrevert_licensed_deletions.Related: #126190
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/133259]
Version info
26.12.1.158-master(included in26.12and later)