Skip to content

[nexus] fix flake in instance_start saga's test_action_failure_can_unwind test#10689

Merged
sunshowers merged 1 commit into
mainfrom
sunshowers/spr/nexus-fix-flake-in-instance_start-sagas-test_action_failure_can_unwind-test
Jun 30, 2026
Merged

[nexus] fix flake in instance_start saga's test_action_failure_can_unwind test#10689
sunshowers merged 1 commit into
mainfrom
sunshowers/spr/nexus-fix-flake-in-instance_start-sagas-test_action_failure_can_unwind-test

Conversation

@sunshowers

@sunshowers sunshowers commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Looks like the instance_watcher bg task was racing with the saga set up by the test. (This is the "background tasks mutating the SUT" pattern in flake-patterns.adoc.)

Also change the other instance start saga tests to disable the instance watcher task. I couldn't reproduce a similar race with any of them after setting the period to 1 second (lowering the period made test_action_failure_can_unwind very easy to repro), but I think from a test hygiene perspective it makes sense to turn the task off.

Buildomat flake log

Created using spr 1.3.6-beta.1
@sunshowers sunshowers requested review from jmpesp and smklein June 30, 2026 00:20
@sunshowers sunshowers merged commit 63dfd8c into main Jun 30, 2026
18 checks passed
@sunshowers sunshowers deleted the sunshowers/spr/nexus-fix-flake-in-instance_start-sagas-test_action_failure_can_unwind-test branch June 30, 2026 16:37
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.

2 participants