Skip to content
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

vdk-core: fix flakey test in test checking logs output #1194

Merged
merged 3 commits into from
Sep 27, 2022

Conversation

murphp15
Copy link
Collaborator

Why?

We want to fix intermittent failures in tests. Specifically the described in #1177.

What?

The underlying issue was that test_log_plugin was modifying the log level to warning.
the test test_run_dbapi_connection_no_such_db_type relies on it being INFO to pass.
There are two fixes to prevent this in the future

  1. the log level is explicitly set at the start of the test test_run_dbapi_connection_no_such_db_type.
  2. in the test test_log_plugin we revert the start back to info at the end of it.

How has this been tested?

Before my fix I was getting an error reasonably frequently during runs.
After I added my fix in I ran the pipeline many more times and never encountered the error again.

What type of change are you making?

Bug fix (non-breaking change which fixes an issue) or a cosmetic change/minor improvement

Signed-off-by: murphp15 murphp15@tcd.ie

closes #1177.

Signed-off-by: murphp15 murphp15@tcd.ie
Copy link
Contributor

@gageorgiev gageorgiev left a comment

Choose a reason for hiding this comment

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

looks good

Copy link
Contributor

@ivakoleva ivakoleva left a comment

Choose a reason for hiding this comment

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

good to find the linked ticket and pr details

@murphp15
Copy link
Collaborator Author

closes #1177.

@murphp15 murphp15 merged commit f1d4041 into main Sep 27, 2022
@murphp15 murphp15 deleted the person/murphp15/fix_flaxey_test branch September 27, 2022 12:12
antoniivanov pushed a commit that referenced this pull request Sep 29, 2022
closes #1177.

Signed-off-by: murphp15 murphp15@tcd.ie

Signed-off-by: murphp15 murphp15@tcd.ie
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.

None yet

4 participants