Repository navigation
test(meeting): fix flaky retry-after-background-failure test - #1962
Closed
AIWorkDeckAdmin wants to merge 1 commit into
Closed
AIWorkDeckAdmin wants to merge 1 commit into
AIWorkDeckAdmin wants to merge 1 commit into
Conversation
…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>
Collaborator
Author
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.
Summary
MeetingTranscriptionServiceTest.retryAfterTheBackgroundFailureLandsIsALegitimateSecondSubmitfailed 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
findByIdcalls wait on a latch until the assertions are done (same pattern asconcurrentStartTranscriptionOnlySubmitsOnce). Test-only change.Verification
getStatus(), the old test fails with the exact CI message.MeetingTranscriptionServiceTest19/19 five runs in a row (JDK 21,mvn -o).🤖 Generated with Claude Code