Skip to content

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Sep 30, 2025

Backports the following commits to 9.1:

…ic#135564)

Transport version generation relies on finding the original contents of
transport resources before they may have been modified by the current
branch. Currently it looks directly at the upstream main branch. Yet
that means newly generated ids could leave holes if the branch is out of
date with upstream main.

Instead, this commit now uses the merge base of the branch. The merge
base is calculcated against upstream main. This allows generation to be
locally consistent with the branch. The generated id may already be used
on main, but that will be detected by a merge conflict in the upper
bound before merging the PR. Additionally if in the middle of a merge,
like with resolveTransportVersionConflict, the MERGE_HEAD is used as the
base so that the regenerated ids will be based on the state at the end
of the merge.
@rjernst rjernst requested a review from a team as a code owner September 30, 2025 18:40
@rjernst rjernst added :Core/Infra/Core Core issues without another label >refactoring auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Core/Infra Meta label for core/infra team labels Sep 30, 2025
@elasticsearchmachine elasticsearchmachine merged commit e539c43 into elastic:9.1 Sep 30, 2025
36 checks passed
@rjernst rjernst deleted the backport/9.1/pr-135564 branch September 30, 2025 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Core/Infra/Core Core issues without another label >refactoring Team:Core/Infra Meta label for core/infra team v9.1.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants