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: wait for migration service to be finished upgrading #4203

Merged

Conversation

sanderegg
Copy link
Member

@sanderegg sanderegg commented May 8, 2023

What do these changes do?

  • reverted changes in postgres_utils.py (waiting for migration service)
  • wait for task to be started in docker_stack fixture
  • migration service healthcheck already tells us if the migration was properly done or not.
  • added a manual integration test in the migration service to test the migration

Related issue/s

How to test

DevOps Checklist

@sanderegg sanderegg added the a:services-library issues on packages/service-libs label May 8, 2023
@sanderegg sanderegg added this to the Pastel de Nata milestone May 8, 2023
@sanderegg sanderegg self-assigned this May 8, 2023
@sanderegg sanderegg requested a review from pcrespov as a code owner May 8, 2023 09:54
@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

Merging #4203 (666d9e0) into master (2e8d8e4) will increase coverage by 0.8%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #4203     +/-   ##
========================================
+ Coverage    83.9%   84.8%   +0.8%     
========================================
  Files         961     961             
  Lines       41640   41640             
  Branches      955     955             
========================================
+ Hits        34951   35317    +366     
+ Misses       6472    6106    -366     
  Partials      217     217             
Flag Coverage Δ
integrationtests 62.3% <ø> (-0.1%) ⬇️
unittests 82.3% <ø> (+0.9%) ⬆️

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

see 23 files with indirect coverage changes

@sanderegg sanderegg force-pushed the flaky/wait-for-migration-finish branch from d1d3e45 to 188f54c Compare May 8, 2023 10:55
@sanderegg sanderegg changed the title ♻️Flaky: wait for migration service to be finished ♻️Flaky: wait for migration service to be finished upgrading May 8, 2023
@mrnicegyu11
Copy link
Member

Supernice, thx.

Question for my learning:

  • What is a gitkeep file?
  • What is this ... syntax in the last test? You dont execute any python commands?

image

@sanderegg
Copy link
Member Author

Supernice, thx.

Question for my learning:

  • What is a gitkeep file?
  • What is this ... syntax in the last test? You dont execute any python commands?

image

@mrnicegyu11

  • the .gitkeep file is to ensure that git keeps the folder in git. otherwise empty folders are not pulled, which makes the make test* recipes fail
  • ... is indeed doing nothing, it just executes the fixtures.

@sanderegg sanderegg force-pushed the flaky/wait-for-migration-finish branch from 2599037 to 3de297f Compare May 8, 2023 13:04
@sonarcloud
Copy link

sonarcloud bot commented May 8, 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.0% 0.0% Duplication

@codeclimate
Copy link

codeclimate bot commented May 8, 2023

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

View more on Code Climate.

@sanderegg sanderegg enabled auto-merge (squash) May 8, 2023 13:24
@sanderegg sanderegg merged commit 109de05 into ITISFoundation:master May 8, 2023
@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
a:services-library issues on packages/service-libs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants