Skip to content

Address flaky event logging tests#328

Open
mokagio wants to merge 2 commits intotrunkfrom
ainfra-2224-address-flaky-test-in-tracks-ios
Open

Address flaky event logging tests#328
mokagio wants to merge 2 commits intotrunkfrom
ainfra-2224-address-flaky-test-in-tracks-ios

Conversation

@mokagio
Copy link
Copy Markdown
Contributor

@mokagio mokagio commented Mar 26, 2026

Recently, I noticed the Mac tests being flaky in CI. I got Codex to look into it and this seems like a decent way to address the issue.

Summary

  • stop rescheduling repeated delegate-cancelled uploads so they do not leak callbacks into later tests
  • wait for didFinishUploadingLog in the upload manager success test before asserting completion
  • keep the change scoped to the event logging flaky-test fix identified from recent Buildkite failures

Testing

Created #329 with 100 parallel test builds. All green

image

mokagio and others added 2 commits March 26, 2026 11:39
Repeated delegate cancellations could keep triggering
later queue checks and leak extra expectation fulfills
into subsequent tests.
Wait for `didFinishUploadingLog` before asserting the
successful upload callback path.

---

Generated with the help of Codex, https://openai.com

Co-Authored-By: Codex <noreply@openai.com>
Add brief comments around the delegate pause flow and the two-step
test expectation so the flaky-test fix is easier to follow.

---

Generated with the help of Codex

Co-Authored-By: Codex <noreply@openai.com>
@mokagio mokagio enabled auto-merge March 27, 2026 00:06
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