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

Perform stack check by loading models without waiting on migrations #3925

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

xandroc
Copy link
Contributor

@xandroc xandroc commented Aug 8, 2024

We do this because we want to be able to call the stack checker prior to running migrations. This is so that if the stack checker fails the deployment then new migrations will not have run and we are left a clean state.

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

We do this because we want to be able to call the stack checker
prior to running migrations. This is so that if the stack checker fails
the deployment then new migrations will not have run and we are left
a clean state.

Co-authored-by: Sam Gunaratne <sam.gunaratne@broadcom.com>
Samze added a commit to cloudfoundry/capi-release that referenced this pull request Aug 8, 2024
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>
@Samze Samze requested a review from sethboyles August 8, 2024 21:07
…ean install

Co-authored-by: Sam Gunaratne <sam.gunaratne@broadcom.com>
@Samze Samze requested a review from philippthun August 12, 2024 16:42
@Samze Samze merged commit 338c7f0 into main Aug 14, 2024
8 checks passed
Samze added a commit to cloudfoundry/capi-release that referenced this pull request Aug 14, 2024
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>
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request Aug 14, 2024
Changes in cloud_controller_ng:

- Perform stack check by loading models without waiting on migrations
    PR: cloudfoundry/cloud_controller_ng#3925
    Author: Alex Rocha <alex.rocha@broadcom.com>
    Author: Sam Gunaratne <sam.gunaratne@broadcom.com>
@moleske moleske deleted the improve_stack_checker branch August 15, 2024 02:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants