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

chore(dependencies): upgrade liquibase to 4.27.0 #1184

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

kirangodishala
Copy link
Contributor

@kirangodishala kirangodishala commented May 22, 2024

postgresql not supporting afterColumn feature and various issues with liquibase versions resulted in delayed liquibase upgrade from 3.10.3 to 4.24.0 in spinnaker 1.33.0 release. Here is the PR- #1117

But even after the upgrade, migrating databases faced checksum issues.

In order to fix this issue two changes are needed.

  1. Upgrade liquibase further to 4.27.0 (through this PR)
  2. Add validCheckSum tags to those changeSets in clouddriver and Orca which are failing with CheckSum errors.

Some background:

Broken Sprinnaker upgrades

Kork 7.201.0 upgraded liquibase to 4.24.0. And this is causing checkSum error for spinnaker upgrades. So all the releases starting from 1.33.0(1.33.0, 1.33.1, 1.33.2, 1.34.0, 1.34.1 and 1.34.2) are broken for Spinnaker upgrades.

Broken new Spinnaker Installation when Clouddriver uses Postgresql

Post liquibase 4.24.0 upgrade, due to lack of changes from spinnaker/clouddriver#6194, releases 1.33.0, 1.33.1, 1.34.0 and 1.34.1 would fail for new spinnaker installation if clouddriver uses Postgres and the error being "addAfterColumn is not allowed on postgresql". After including the changes 1.33.2 and 1.34.2 have no issues for new spinnaker installation.

So when the current fixes are merged and released, the versions 1.35.0, 1.33.3 and 1.34.3 and all later versions will work for both new installation and upgrade of Spinnaker.

@kirangodishala kirangodishala force-pushed the liquibase-4-27-0-upgrade branch from d8c5fc1 to 61b2f8e Compare May 23, 2024 12:02
@dbyron-sf dbyron-sf added the ready to merge Approved and ready for merge label Jun 6, 2024
@mergify mergify bot added the auto merged label Jun 6, 2024
@mergify mergify bot merged commit 4ff407e into spinnaker:master Jun 6, 2024
6 checks passed
dbyron-sf added a commit to dbyron-sf/kork that referenced this pull request Jun 6, 2024
)"

This reverts commit 4ff407e.

Turns out that we don't need liquibase 4.27.0 to fix migration issues with postgres.
spinnaker/clouddriver#6217 fixes the migration with 4.24.0.
mergify bot pushed a commit that referenced this pull request Jun 7, 2024
)

This reverts commit 4ff407e.

Turns out that we don't need liquibase 4.27.0 to fix migration issues with postgres.
spinnaker/clouddriver#6217 fixes the migration with 4.24.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants