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(template): respect project level variables in action config context #4883

Merged
merged 3 commits into from
Jul 24, 2023

Conversation

vvagaytsev
Copy link
Collaborator

@vvagaytsev vvagaytsev commented Jul 24, 2023

What this PR does / why we need it:
The regression was introduced in #4659.
In that PR this.variables field was overwritten with the action-level values. It caused the erasure this.variables = garden.variables assignment in the super-class constructor.

Which issue(s) this PR fixes:

Fixes #4830

Special notes for your reviewer:
See individual commits. There is more explanation in the commit messages.

The regression was introduced in #4659.
In that PR `this.variables` field was overwritten with the action-level values.
It caused the erasure `this.variables = garden.variables` assignment
in the super-class constructor.
@vvagaytsev vvagaytsev requested a review from a team July 24, 2023 11:34
@vvagaytsev vvagaytsev marked this pull request as ready for review July 24, 2023 11:35
Non-trivial test case with cross-context variable references.
Uses disk-based project configuration.
Involves the whole graph resolution.
@vvagaytsev vvagaytsev force-pushed the feat/project-vars-in-include-exclude branch from db55f1a to d48268d Compare July 24, 2023 11:55
Copy link
Contributor

@shumailxyz shumailxyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, thanks for fixing this 💯

@vvagaytsev vvagaytsev merged commit 05d0f44 into main Jul 24, 2023
39 checks passed
@vvagaytsev vvagaytsev deleted the feat/project-vars-in-include-exclude branch July 24, 2023 13:39
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.

0.13: [Bug]: use Project variables in the include/exclude of an action
2 participants