On 11/27/26 2:02 PM, Joe Orton via dev wrote:
> On Thu, Nov 26, 2026 at 10:38:00AM +0100, Ruediger Pluem via dev wrote:
>> On 11/23/26 2:48 PM, Joe Orton via dev wrote:
> ...
>>> 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?
>
> Yes, but specifically to ensure that *any* commit which lands on trunk
> should be safe to cherry-pick onto 2.4.x safely. I wrote PR 859 as a
> series of related commits, filling in the APLOGNO()s as a separate final
> commit, but then the individual trunk commits were not safe to backport
> after that landed via a rebase-merge.>
>>> 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?
>
> If possible preallocating before you open a PR is better, assuming you
> know how many numbers you need at that point.
Thanks. Now I think get your concept better:
1. Preallocate numbers with a direct commit to trunk. If I am not sure how many
numbers
I need exactly I could even reserve a few more as holes in the numbers are
not a problem.
I could even use left over numbers of this reservation for another PR. We
only care that
the numbers are unique. They neither need to get in in the same order as the
commits nor
do holes matter.
2. Then I create the PR and in each commit I already fill APLOGNO()'s with one
of the preallocated
numbers. I do not do any commits in that PR with an empty APLOGNO().
This way the commits can pass CI and each of them can be safely
cherry-picked for 2.4.x.
3. If by accident I add a commit to the PR with an empty APLOGNO() I fix this,
amend this commit
and force push it to the PR branch to ensure that the commit that gets
merged later is fine.
I do not fix the empty APLOGNO() with a separate commit added to the PR.
4. There is no special magic with regards to APLOGNO()'s to be done once a PR
is fine for merging.
It just gets merged.
5. Backport PR's do not need any special treatment if 1. - 4. was done. We
probably still want to do
some sanity checking.
Regards
RĂ¼diger