On Thu, Nov 26, 2026 at 10:38 AM Ruediger Pluem via dev <[email protected]> wrote: > > On 11/23/26 2:48 PM, Joe Orton via dev wrote: > > We discussed this a bit on Slack but didn't get far. A few problems: > > > > 1. CI in PRs fails if APLOGNO() is not filled in, implying next-number > > bumps should be done per-PR, which is a recipe for conflicts/reuse > > > > 2. Two trunk PRs merging the same next-number += 1 bump do not even > > conflict at merge time because they merge cleanly (I think). > > > > 3. If you backport a trunk commit with an empty APLOGNO() that can go > > easily awry, as in this case which reused APLOGNO(10636) probably due to > > LLM "eagerness"... and that doesn't get caught in CI either: > > https://github.com/apache/httpd/commit/20600b083673664a70d59feaa0c6adbe3bb203ee > > > > I don't think there is a really clean solution for this stuff, but this > > would be better than the status quo: > > > > a) trunk PRs MUST never include a next-number bump > > > > b) all PRs will fail CI if *any* commit in the PR has an empty > > APLOGNO(). (note this is different to checking the final tree) > > Is this to catch cases where LLMs just fill in some numbers and thus > CI jumps to green such that people don't notice that they still have > to fill the APLOGNO() properly before merging? > > > > > c) hence, committers MUST (pre)allocate number ranges by pushing direct > > to trunk before amending then merging a PR > > Hence a trunk PR will get the numbers only at the very last second before > merging it > with the change to next-number bump done outside the PR?
Yes, that's what I did for a PR merged yesterday. Not great but seems to be the least bad so far. I know nothing about git(hub) hooks, but couldn't one just fill the APLOGNOs for us at merge time? The ci would fail for non-empty new APLOGNOs targeting trunk, and for empty ones targeting 2.4.x? Probably more checks/cases/details, but something like this. Regards; Yann.
