Skip to content

test(meeting): fix flaky retry-after-background-failure test - #1962

Closed
AIWorkDeckAdmin wants to merge 1 commit into
masterfrom
90d/flaky-meeting-retry
Closed

AIWorkDeckAdmin wants to merge 1 commit into
masterfrom
90d/flaky-meeting-retry

Conversation

@AIWorkDeckAdmin

Copy link
Copy Markdown
Collaborator

Summary

MeetingTranscriptionServiceTest.retryAfterTheBackgroundFailureLandsIsALegitimateSecondSubmit failed in Backend (mvn test) on two unrelated PRs today (#1952, #1956): expected: <TRANSCRIBING> but was: <FAILED>.

Cause: the second submit's own background continuation finds no audio in the stub and calls failMeeting on the same MeetingRecording object, sometimes before the test reads getStatus(). Test timing only; product behaviour is unchanged.

Fix: once the first FAILED has been saved, background findById calls wait on a latch until the assertions are done (same pattern as concurrentStartTranscriptionOnlySubmitsOnce). Test-only change.

Verification

  • Red: with a 500 ms gap inserted before getStatus(), the old test fails with the exact CI message.
  • Green: the same 500 ms gap passes with the fix; without the gap, MeetingTranscriptionServiceTest 19/19 five runs in a row (JDK 21, mvn -o).

🤖 Generated with Claude Code

…retry assertion reads status

retryAfterTheBackgroundFailureLandsIsALegitimateSecondSubmit flaked on CI
(expected TRANSCRIBING but was FAILED) on two unrelated PRs on 2026-12-04:
the second submit's own background continuation finds no audio and writes
FAILED onto the same MeetingRecording before the test reads getStatus().
Block background findById after the first failure lands until the
assertions are done, as the neighbouring concurrency test already does.

Red check: a 500 ms gap before getStatus() fails the old test with the CI
message and passes with this change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AIWorkDeckAdmin

Copy link
Copy Markdown
Collaborator Author

Superseded by e93d556 (#1950), which fixed the same race by snapshotting saved statuses. Closing.

@AIWorkDeckAdmin
AIWorkDeckAdmin deleted the 90d/flaky-meeting-retry branch December 5, 2026 07:56
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