[SpannerToSourceDb] Fixing flaky test SpannerToMySqlDataTypesIT#3379
[SpannerToSourceDb] Fixing flaky test SpannerToMySqlDataTypesIT#3379darshan-sj merged 1 commit intoGoogleCloudPlatform:mainfrom
Conversation
Summary of ChangesHello @darshan-sj, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a critical issue with a flaky integration test, Highlights
Changelog
Activity
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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3379 +/- ##
============================================
- Coverage 51.05% 51.01% -0.04%
- Complexity 5212 5249 +37
============================================
Files 994 1005 +11
Lines 60723 60914 +191
Branches 6657 6658 +1
============================================
+ Hits 31000 31076 +76
- Misses 27543 27656 +113
- Partials 2180 2182 +2
🚀 New features to boost your workflow:
|
Fixing a flaky test - SpannerToMySqlDataTypesIT
The test was using ChainedConditionCheck and chaining 23 conditions. Chained condition check executes checks one after the other with 15 seconds wait in between. Hence, even if all the underlying 23 conditions were satisfied, the whole condition check was taking 23*15 = 345 secs ~ 6 mins. and hence we were hitting timeout.
Changed the condition check to use "AND" condition instead of using chained condition. "AND" condition doesn't put waits in between.