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)

c) hence, committers MUST (pre)allocate number ranges by pushing direct 
to trunk before amending then merging a PR

d) 2.4.x CI should probably cross-check against trunk to make sure 
APLOGNO() allocations are consistent?

Probably we can provide some scripts which helps with (c). WDYT?

Regards, Joe

Reply via email to