-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: include resolved config in module version
Module versions now also include a serialized version of the resolved module config (hashed together with versions / dirty timestamps). This fixes an issue where changes to project variables used in a module's config would not result in the module's version changing when recomputed. This was the case because the version was based only on the latest commit and dirty timestamp of the module in question, and those of its dependencies, which doesn't factor in changes to project-level variables.
- Loading branch information
Showing
8 changed files
with
218 additions
and
83 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
garden-service/test/unit/data/test-project-variable-versioning/garden.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
project: | ||
name: test-project-variable-versioning | ||
environmentDefaults: | ||
variables: | ||
echo-string: OK | ||
environments: | ||
- name: local | ||
providers: | ||
- name: test-plugin |
8 changes: 8 additions & 0 deletions
8
garden-service/test/unit/data/test-project-variable-versioning/module-a/garden.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module: | ||
name: module-a | ||
type: test | ||
build: | ||
command: [echo, "${variables.echo-string}"] | ||
tests: | ||
- name: unit | ||
command: [echo, OK] |
8 changes: 8 additions & 0 deletions
8
garden-service/test/unit/data/test-project-variable-versioning/module-b/garden.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module: | ||
name: module-b | ||
type: test | ||
build: | ||
command: [echo, beans] | ||
tests: | ||
- name: unit | ||
command: [echo, OK] |
Oops, something went wrong.