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

🐛 Flaky integration tests relying on migration as a service #4175

Conversation

GitHK
Copy link
Contributor

@GitHK GitHK commented Apr 27, 2023

What do these changes do?

Makes migrated_pg_tables_context to wait for the migration service to have finished his migration before proceeding.
This impacted all tests requiring a Postgres database and also requesting the migration service in the pytest_simcore_core_services_selection.

Tests failed because they usually ran in parallel. This is more evident when the load on the CI is bigger causing delays. Errors such as "field already exists" were showing up in the logs.

Related issue/s

How to test

DevOps Checklist

@GitHK GitHK self-assigned this Apr 27, 2023
@GitHK GitHK added the t:maintenance Some planned maintenance work label Apr 27, 2023
@GitHK GitHK added this to the Jelly Beans milestone Apr 27, 2023
@codecov
Copy link

codecov bot commented Apr 27, 2023

Codecov Report

Merging #4175 (ddf7751) into master (ba2217c) will increase coverage by 1.1%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #4175     +/-   ##
========================================
+ Coverage    80.3%   81.4%   +1.1%     
========================================
  Files         934     957     +23     
  Lines       40956   41439    +483     
  Branches      906     952     +46     
========================================
+ Hits        32911   33768    +857     
+ Misses       7853    7468    -385     
- Partials      192     203     +11     
Flag Coverage Δ
integrationtests ?
unittests 81.4% <ø> (+1.9%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 112 files with indirect coverage changes

@GitHK GitHK marked this pull request as ready for review April 27, 2023 10:33
@GitHK GitHK requested a review from matusdrobuliak66 April 27, 2023 10:34
@GitHK GitHK enabled auto-merge (squash) April 27, 2023 10:59
@GitHK GitHK disabled auto-merge April 27, 2023 10:59
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

very cool. this will help a lot! thanks!

@GitHK GitHK enabled auto-merge (squash) April 27, 2023 11:27
Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

thx!

@codeclimate
Copy link

codeclimate bot commented Apr 27, 2023

Code Climate has analyzed commit ddf7751 and detected 0 issues on this pull request.

View more on Code Climate.

@sonarcloud
Copy link

sonarcloud bot commented Apr 27, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.1% 0.1% Duplication

@GitHK GitHK merged commit 75d94af into ITISFoundation:master Apr 28, 2023
@GitHK GitHK deleted the pr-osparc-fixture-waits-for-migration-service branch May 2, 2023 07:53
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request May 30, 2023
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t:maintenance Some planned maintenance work
Projects
None yet
4 participants