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

fix(liquibase): fix checkSum errors occurring with spinnaker upgrade #6217

Merged
merged 4 commits into from
Jun 7, 2024

Conversation

kirangodishala
Copy link
Contributor

@kirangodishala kirangodishala commented May 22, 2024

This PR fixes checkSum errors caused after liquibase upgrade(to 4.24.0) as the checksum calculation underwent some changes causing this issue.

This PR fixes the checksum errors by adding validChecksum tags to the failing changesets.

Added an integration test to verify the migration scenario with postgres. This will be useful to identify and avoid issues when liquibase is upgraded or if any changesets are modified.

Similar orca PR for reference: spinnaker/orca#4727

@kirangodishala kirangodishala changed the title fix(liquibase): fix checkSum errors occurring for spinnaker installations with migrating db fix(liquibase): fix checkSum errors occurring with spinnaker upgrade May 22, 2024
@kirangodishala
Copy link
Contributor Author

Moved integration testes to a separate PR - #6221

@kirangodishala kirangodishala marked this pull request as ready for review June 5, 2024 09:59
@kirangodishala kirangodishala marked this pull request as draft June 5, 2024 15:59
@kirangodishala kirangodishala marked this pull request as ready for review June 5, 2024 18:26
@dbyron-sf dbyron-sf marked this pull request as draft June 5, 2024 18:38
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 to spinnaker/kork 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.
@dbyron-sf
Copy link
Contributor

@Mergifyio update

Copy link
Contributor

mergify bot commented Jun 7, 2024

update

✅ Branch has been successfully updated

@dbyron-sf dbyron-sf marked this pull request as ready for review June 7, 2024 15:13
@dbyron-sf dbyron-sf added the ready to merge Approved and ready for a merge label Jun 7, 2024
@mergify mergify bot added the auto merged Merged automatically by a bot label Jun 7, 2024
@mergify mergify bot merged commit ad1a8ef into spinnaker:master Jun 7, 2024
24 checks passed
@dbyron-sf
Copy link
Contributor

@Mergifyio backport release-1.33.x release-1.34.x

Copy link
Contributor

mergify bot commented Jun 11, 2024

backport release-1.33.x release-1.34.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jun 11, 2024
…6217)

* fix(tests): added postgres migration test

* fix(tests): hardcoded the docker image to create initial conditions

* fix(liquibase): add validCheckSum values to fix failing changesets

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit ad1a8ef)

# Conflicts:
#	clouddriver-integration/src/test/java/com/netflix/spinnaker/clouddriver/StandaloneContainerTest.java
mergify bot pushed a commit that referenced this pull request Jun 11, 2024
…6217)

* fix(tests): added postgres migration test

* fix(tests): hardcoded the docker image to create initial conditions

* fix(liquibase): add validCheckSum values to fix failing changesets

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit ad1a8ef)
@dbyron-sf
Copy link
Contributor

@Mergifyio backport release-1.33.x

Copy link
Contributor

mergify bot commented Jun 11, 2024

backport release-1.33.x

✅ Backports have been created

mergify bot added a commit that referenced this pull request Jun 11, 2024
…6217) (#6232)

* fix(tests): added postgres migration test

* fix(tests): hardcoded the docker image to create initial conditions

* fix(liquibase): add validCheckSum values to fix failing changesets

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit ad1a8ef)

Co-authored-by: Kiran Godishala <53332225+kirangodishala@users.noreply.github.com>
dbyron-sf pushed a commit that referenced this pull request Jun 11, 2024
…6217)

* fix(tests): added postgres migration test

* fix(tests): hardcoded the docker image to create initial conditions

* fix(liquibase): add validCheckSum values to fix failing changesets

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit ad1a8ef)
mergify bot added a commit that referenced this pull request Jun 11, 2024
…6217) (#6231)

* fix(tests): added postgres migration test

* fix(tests): hardcoded the docker image to create initial conditions

* fix(liquibase): add validCheckSum values to fix failing changesets

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit ad1a8ef)

Co-authored-by: Kiran Godishala <53332225+kirangodishala@users.noreply.github.com>
aman-agrawal pushed a commit to aman-agrawal/clouddriver that referenced this pull request Jul 5, 2024
…pinnaker#6217) (spinnaker#6231)

* fix(tests): added postgres migration test

* fix(tests): hardcoded the docker image to create initial conditions

* fix(liquibase): add validCheckSum values to fix failing changesets

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit ad1a8ef)

Co-authored-by: Kiran Godishala <53332225+kirangodishala@users.noreply.github.com>
aman-agrawal pushed a commit to OpsMx/clouddriver-oes that referenced this pull request Jul 8, 2024
…pinnaker#6217) (spinnaker#6231)

* fix(tests): added postgres migration test

* fix(tests): hardcoded the docker image to create initial conditions

* fix(liquibase): add validCheckSum values to fix failing changesets

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit ad1a8ef)

Co-authored-by: Kiran Godishala <53332225+kirangodishala@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for a merge target-release/1.35
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants