-
Notifications
You must be signed in to change notification settings - Fork 104
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
Revert "Run stack_check after DB migrations and seeds (#453)" #454
Conversation
This reverts commit f445c39. We can now run the stack checker before migrations as per cloudfoundry/cloud_controller_ng#3925. This is an improvement as we want to fail the stack checker before any migrations have run so that we are not in a state where migrations have run but the deployment has failed Co-authored-by: Sam Gunaratne <sam.gunaratne@broadcom.com>
I'm still unsure if this works for a from-scratch setup (as it's done in the CAPI CI pipeline for three environments). I think at this time - i.e. the very first time this runs on a vm on a new foundation - the database is completely empty (no tables etc.). So loading the models should actually fail... |
Thanks @philippthun, perhaps we can detect if any migrations have run at all do you have any recommendations on how we might do that? |
@xandroc Hm, maybe connect to the database and check if the migrations table exists:
|
Thanks @philippthun we added a variation, |
@philippthun can you give the changes in this pr a review, thanks |
LGTM given cloudfoundry/cloud_controller_ng#3925 |
This reverts commit f445c39.
We can now run the stack checker before migrations as per cloudfoundry/cloud_controller_ng#3925.
This is an improvement as we want to fail the stack checker before any migrations have run so that we are not in a state where migrations have run but the deployment has failed
I have viewed signed and have submitted the Contributor License Agreement
I have made this pull request to the
develop
branchI have run CF Acceptance Tests on bosh lite