Skip to content

fix(codemining): do not share a label computation that is over - #394

Merged
RoiSoleil merged 1 commit into
masterfrom
fix/jump-label-computation-race
Oct 19, 2026
Merged

RoiSoleil merged 1 commit into
masterfrom
fix/jump-label-computation-race

Conversation

@RoiSoleil

Copy link
Copy Markdown
Contributor

The CI of master failed on JumpLabelComputerTest.labels_should_be_computed_again_when_they_expire (expected: <1> but was: <0>), while the previous runs of the same code passed.

A computation was removed from the running ones by a callback of the future, which may run after the caller that waits for the future resumed. A computer created right after could then share the computation of the previous one, and so not compute the labels again after they expired.

The computation now removes itself before it completes. The test creates the computers one after the other many times, as the race is rare: I could not make it fail locally on the old code, so the cause is deduced from the code, not observed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01GviovNL1A9qQNNC72f312S

The computation was removed from the running ones once completed, by a callback
that may run after the caller that waits for it resumed: a computer created
right after could share the computation of the previous one, and so not
compute the labels again after they expired.

Signed-off-by: Hélios GILLES <helios.gilles@gmail.com>
@RoiSoleil
RoiSoleil merged commit 55efc66 into master Oct 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant