Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixes flaky TestAccSqlDatabaseInstance_activationPolicy test, makes run sequential #13152

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ankushkhanna1998
Copy link

@ankushkhanna1998 ankushkhanna1998 commented Feb 21, 2025

SQL test method TestAccSqlDatabaseInstance_activationPolicy is flaky, as the test steps are curated (and expected) to run one after the other. But currently parallel execution is enabled for the test steps (reference) using Parallel(), which enables unordered execution making the test flaky.

Debug logs showing how, (steps), after the MySQL 8_0_18 step, the MySQL 8_4 step got executed before the MySQL 8_0_37 step, creating this error: "Invalid request: To upgrade to MySQL 8.4 source version should be 8.0.37 or higher.". This issue surfaced in this PR: #13090.

sql: Fixes flakiness of TestAccSqlDatabaseInstance_activationPolicy in `resource_sql_database_instance` by making test runs sequential

@github-actions github-actions bot requested a review from BBBmau February 21, 2025 14:52
Copy link

Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@BBBmau, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by doing a self-review and by running impacted tests locally.

@modular-magician modular-magician added the awaiting-approval Pull requests that need reviewer's approval to run presubmit tests label Feb 21, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
awaiting-approval Pull requests that need reviewer's approval to run presubmit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants