Repository navigation
Backport #113553 to 26.7: Fix data race when tracing profile events - #115500
Merged
Merged
Conversation
Contributor
|
Workflow [BackportPR], commit [b1fe203] Summary: ✅ |
alexey-milovidov
added a commit
that referenced
this pull request
Aug 28, 2026
`reapplied_by` walked one level out from the direct remover, so it found the revert that first put a change back and stopped there. With `#109946` ← `#114911` ← `#114912` ← `#115500` ← `#116000` — out, back, out, back, all inside one cycle — it reported only `#114912`, which the recorded bullet already carried from the first restoration. The re-apply check was therefore satisfied by the stale line and `#116000` was lost for good: a revert of a revert has no bullet of its own, so the link on the entry is its only trace in the release. `revert_chain` now walks the whole chain above the entry, and the uncancelled reverts of that chain are the ones that ship, so they are the ones that belong on the bullet. `removed_by` is the complement — the cancelled ones — which also makes the prompt name both removals of a repeated cycle instead of the first. The three-pull-request case is unchanged: one remover, one re-applier. The prompt asks for the links of every re-applier, noting that some may already be on the recorded line from an earlier restoration. `test_a_longer_chain_records_every_reapply` walks the five-pull-request timeline and asserts `removed_by == ['114911', '115500']`, `reapplied_by == ['114912', '116000']`, that replaying the recorded line is rejected for missing `#116000`, and that appending it passes. It fails with the one-level walk.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Original pull-request #113553
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.7.5.4