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

0.13: [Bug]: Deploy cached even though there were changes #4811

Closed
stefreak opened this issue Jul 12, 2023 · 2 comments · Fixed by #4812
Closed

0.13: [Bug]: Deploy cached even though there were changes #4811

stefreak opened this issue Jul 12, 2023 · 2 comments · Fixed by #4812
Assignees
Labels
0.13 bug priority:critical Critical issue regression A return to a previous and less advanced or worse state

Comments

@stefreak
Copy link
Member

stefreak commented Jul 12, 2023

Garden Bonsai (0.13) Bug

Current Behavior

First deploy (as expected):

ℹ deploy.postgres      → missing
ℹ deploy.postgres      → Deploying version v-5f8da6486d...

Second deploy (as expected):

ℹ deploy.postgres      → Already deployed

Third deploy with changed password (unexpected!):

ℹ deploy.postgres      → Already deployed

Expected behavior

I expect the postgres module to calculate a different version hash in the third deploy, because the postgres password changed.

Reproducible example

It happens both with kubernetes modules and native action kinds

  1. Run garden deploy postgres
  2. Run garden deploy postgres
  3. Run garden deploy postgres --var postgres-password=$(echo somethingelse | base64)

In step three, it is not important that the manifest changes due to the variable parameter. It also reproduces this bug when changing the value of the postgres-password variable in garden.yml.

It even reproduces when simply changing the manifest directly in postgres/garden.yml

Workaround

Downgrade to Garden 0.13.6

Suggested solution(s)

I don't know

Additional context

This is a regression that has been introduced in 0.13.7.
I suspect it might have been introduced in the bigger changes around https://github.com/garden-io/garden/pull/4516/files

@twelvemo and me discovered this one because internal deploy pipelines stopped working.

Your environment

  • OS: macOS
  • How I'm running Kubernetes: Docker Desktop

garden version 0.13.7

@stefreak stefreak added the 0.13 label Jul 12, 2023
@vvagaytsev vvagaytsev added bug regression A return to a previous and less advanced or worse state labels Jul 12, 2023
@stefreak stefreak added priority:critical Critical issue and removed bug regression A return to a previous and less advanced or worse state labels Jul 12, 2023
@vvagaytsev vvagaytsev added bug regression A return to a previous and less advanced or worse state labels Jul 12, 2023
@stefreak
Copy link
Member Author

Confirmed with @vvagaytsev that this regression has been introduced in #4516

Opened #4812 with a revert

TODO: this needs an integration test

@stefreak
Copy link
Member Author

If we find a fix really quickly we can also skip reverting of course 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.13 bug priority:critical Critical issue regression A return to a previous and less advanced or worse state
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants