-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fix docker migration test CI workflow (PP-1171) #1800
Conversation
1fb54b9
to
52f402b
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1800 +/- ##
==========================================
- Coverage 90.31% 90.30% -0.01%
==========================================
Files 259 259
Lines 28663 28663
Branches 6515 6515
==========================================
- Hits 25887 25885 -2
- Misses 1839 1840 +1
- Partials 937 938 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jonathangreen : I just never stop admiring your skillz, dog. 🥇 You set a high bar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! ⬆️ ⬇️ ⬆️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if the issue I pointed out is a problem. Feel free to merge if it is not.
docker/ci/test_migrations.sh
Outdated
check_db "A new migration is required or a up migration is broken." | ||
gh_group "Testing upgrade migrations" | ||
run_migrations "webapp" "upgrade head" | ||
check_db "webapp" "A new migration is required or a up migration is broken." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a -> an
docker/ci/test_migrations.sh
Outdated
run_migrations "upgrade head" | ||
check_db "A new migration is required or a up migration is broken." | ||
gh_group "Testing upgrade migrations" | ||
run_migrations "webapp" "upgrade head" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be" webapp-old" here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can't be webapp-old
because the old container doesn't have the migrations in it in order to move to the latest DB version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay - right of course: I get it now - one database container is shared by the two web app instances.
Description
Update
docker/ci/test_migrations.sh
:test_migrations.yml
was added for this purposeMotivation and Context
Previously we tried to build a container based on the old version of the codebase for these tests. That is an error prone endeavor, and failed in this case because of the change in dependencies in the container build introduced in #1799.
In order to reduce the chances of this failing in the future, we just use an old previously build version of the container. This also simplifies the script, since it no longer has to move back and forth between old and new git commits in order to run the tests.
How Has This Been Tested?
Checklist