Skip to content

Wait for the lines logged after a request's removal before asserting them - #322

Merged
arifBurakDemiray merged 1 commit into
sdk-behavior-settingsfrom
sbs-ci-test-race
Oct 22, 2026
Merged

arifBurakDemiray merged 1 commit into
sdk-behavior-settingsfrom
sbs-ci-test-race

Conversation

@arifBurakDemiray

Copy link
Copy Markdown
Member

What

Two tests in ModuleConfigurationNetworkTests waited until a request file was gone, then checked a line that the SDK logs only after it removes the file:

Test Line checked Logged after the removal by
requestDropAge_settlesTheJourneyTriggerOfADroppedRequest_andALaterTriggerStillRefreshes the owner's "carrying a journey trigger failed" line DefaultNetworking.dropWithoutSending, which tells the owner after removeRequest
backoff_neverAfterARequestOlderThanTheRequestAge_norWhileTheServerTurnsItOff the last request's "not backing off" line backOffIfTheServerIsSlow, called in the send callback after removeRequest

On a busy runner the check could run in between. The drop age test failed this way 4 times on CI on 2026-10-22 (expected:<1> but was:<0>), which keeps #275 red. Both tests now wait for their line with the file's awaitLogs helper.

The SDK keeps its order: telling the owner before the removal succeeds would report a drop that might not happen.

Verified

  • ModuleConfigurationNetworkTests on Java 8: 8 of 8 runs green.

Not in this PR

  • sc_MV_ManualViewTests.MV_201A_autoStopped_pausedResumed_Legacy on Windows is a view-duration timing flake that also fails on master.
  • The Gradle wrapper check on feat: SBS #275 failed on a network timeout to Gradle's checksum server; a rerun clears it.

🤖 Generated with Claude Code

…them

Two tests waited until a request file was gone, then checked a line that
the SDK logs only after it removes the file: the request drop age test the
line of the request's owner, the backoff test the "not backing off" line of
the last request. On a busy runner the check could run in between and fail,
as the drop age test did on CI with "expected:<1> but was:<0>". Both now
wait for their line with awaitLogs.
@arifBurakDemiray
arifBurakDemiray marked this pull request as ready for review October 22, 2026 18:31
@arifBurakDemiray
arifBurakDemiray merged commit 18d5076 into sdk-behavior-settings Oct 22, 2026
5 checks passed
@arifBurakDemiray
arifBurakDemiray deleted the sbs-ci-test-race branch October 22, 2026 18:31
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