fix: Fixes parameterized global artifacts resolution in exit handlers. Fixes #11610#14991
Conversation
Signed-off-by: ItielOlenick <etl676@gmail.com>
afd1f36 to
6e27ca6
Compare
…n-in-exit-handler
…n-in-exit-handler
|
Hey @ItielOlenick, I was looking to review this as I recently fixed a similar issue in #15033. As part of that I refactored the It looks like you'd just need to ensure your code commented with if strings.HasPrefix(variable, "workflow.outputs.") {
continue
}part and from |
…n-in-exit-handler Signed-off-by: ItielOlenick <67790309+ItielOlenick@users.noreply.github.com>
Signed-off-by: ItielOlenick <67790309+ItielOlenick@users.noreply.github.com>
|
@elliotgunton After taking a look at your changes and doing some more testing, I removed all of the expression related changes as they seemed unnecessary and left only the validation ones. |
…n-in-exit-handler
|
Whilst testing this I've noticed a couple of things - I'll also take the test from #11610 and turn it into an e2e test |
|
❌ Cherry-pick failed for 3.7. Please check the workflow logs for details. |
|
❌ Cherry-pick failed for 3.6. Please check the workflow logs for details. |
Signed-off-by: Alan Clucas <alan@clucas.org>
…Fixes argoproj#11610 (cherry-pick argoproj#14991 for 3.7) (argoproj#15056) Signed-off-by: ItielOlenick <etl676@gmail.com> Signed-off-by: ItielOlenick <67790309+ItielOlenick@users.noreply.github.com> Signed-off-by: Alan Clucas <alan@clucas.org> Co-authored-by: ItielOlenick <67790309+ItielOlenick@users.noreply.github.com>
…Fixes argoproj#11610 (cherry-pick argoproj#14991 for 3.6) (argoproj#15057) Signed-off-by: ItielOlenick <etl676@gmail.com> Signed-off-by: ItielOlenick <67790309+ItielOlenick@users.noreply.github.com> Signed-off-by: Alan Clucas <alan@clucas.org> Co-authored-by: ItielOlenick <67790309+ItielOlenick@users.noreply.github.com>
…Fixes argoproj#11610 (argoproj#14991) Signed-off-by: ItielOlenick <etl676@gmail.com> Signed-off-by: ItielOlenick <67790309+ItielOlenick@users.noreply.github.com>
Signed-off-by: Alan Clucas <alan@clucas.org>
Fixes #11610
Motivation
Workflows with parameterized global artifact names (e.g.,
globalName: output-result-{{inputs.parameters.variable}}) fail validation in exit handlers after v3.4.6 witherrors like "failed to resolve {{workflow.outputs.artifacts.output-result-car}}". This worked correctly in v3.4.5 and earlier.
Modifications
anyWorkflowOutputArtifactMagicValuewhen parameterized global artifacts existVerification
Documentation
No documentation changes needed - this restores existing functionality that was inadvertently broken.