Skip to content

Conversation

@ncooke3
Copy link
Member

@ncooke3 ncooke3 commented Dec 18, 2025

Formalizing a follow-up to #15601, now that it is more convincing from the nightlies that the dispatch_async is the cuprit to the FIRCLSSettingsTests flakes.

Using the same approach as in #15608. It's possible that the race condition is playing out within single test as opposed to across test cases. In that case, we'll need to drain the queue or add a waiter within each affected test case.

Update: Because the SDK dispatches to the global concurrent background queue, there is not a way to reliably "drain" that queue and it appears that the background queue's work may not finish in a reasonable time when running in the CI environment. So, a queue with a higher priority is injected into the class for more reliable testing.

I did three rounds of testing, checking for the FIRCLSSettingsTest flakes. None reported.

  1. https://github.com/firebase/firebase-ios-sdk/actions/runs/20387547915
  2. https://github.com/firebase/firebase-ios-sdk/actions/runs/20395779611
  3. https://github.com/firebase/firebase-ios-sdk/actions/runs/20396945460

#no-changelog

@gemini-code-assist
Copy link
Contributor

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

@ncooke3 ncooke3 requested a review from themiswang December 18, 2025 22:34
@ncooke3 ncooke3 removed the request for review from themiswang December 18, 2025 23:31
@ncooke3 ncooke3 marked this pull request as draft December 18, 2025 23:31
@ncooke3
Copy link
Member Author

ncooke3 commented Dec 18, 2025

Using the same approach as in #15608. It's possible that the race condition is playing out within single test as opposed to across test cases. In that case, we'll need to drain the queue or add a waiter within each affected test case.

This appears to be the case based on CI results from 2bdb8d3

@ncooke3 ncooke3 mentioned this pull request Dec 19, 2025
@ncooke3 ncooke3 closed this Dec 20, 2025
@ncooke3 ncooke3 reopened this Dec 20, 2025
@ncooke3 ncooke3 closed this Dec 20, 2025
@ncooke3 ncooke3 reopened this Dec 20, 2025
@ncooke3 ncooke3 closed this Dec 20, 2025
@ncooke3 ncooke3 reopened this Dec 20, 2025
@ncooke3 ncooke3 marked this pull request as ready for review December 20, 2025 17:07
Copy link
Member

@paulb777 paulb777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ncooke3
Copy link
Member Author

ncooke3 commented Dec 20, 2025

This might be a still existing, but rarer flake - https://github.com/firebase/firebase-ios-sdk/actions/runs/20387547915/job/58591201190

@paulb777, I haven't looked into that one yet, but yes– it does appear to be rarer.

@ncooke3 ncooke3 merged commit 4fe7179 into main Dec 20, 2025
48 of 50 checks passed
@ncooke3 ncooke3 deleted the nc/crashlytics-flake branch December 20, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants