-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix: Address flaky dispatch #15601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Address flaky dispatch #15601
Conversation
Using Gemini Code AssistThe 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
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 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. |
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request aims to address test flakiness by disabling an asynchronous dispatch during nightly tests. This is achieved by introducing a FIREBASE_IS_NIGHTLY_TESTING preprocessor macro. The changes in Package.swift correctly set up this macro based on an environment variable and refactor the FirebaseCrashlytics target definition into a helper function for better organization. The change in FIRCLSSettings.m uses this macro to conditionally compile out the dispatch_async call. My feedback focuses on improving the readability of the conditional compilation in FIRCLSSettings.m. Overall, the changes are logical and achieve the stated goal.
|
cc: @themiswang |
|
So far, no flakes from this test file in the SPM nightly workflows: https://github.com/firebase/firebase-ios-sdk/actions/runs/20258318035 Will give it a few more days before making fix more robust. |
Goal: When nightly testing, disable a
dispatch_asyncto observe whether that makes a difference.Context: I saw promising results in reducing test flakiness when making removing an async dispatch in
CLSSettings. Before updating the tests or SDK to address this more robustly, I'd like to test disabling the async dispatch for a few nights to see if this actually makes a difference.#no-changelog