Skip to content

Conversation

@ItielOlenick
Copy link

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 with
errors like "failed to resolve {{workflow.outputs.artifacts.output-result-car}}". This worked correctly in v3.4.5 and earlier.

Modifications

  • Added pre-scan in exit handler validation to detect parameterized global artifacts
  • Enable anyWorkflowOutputArtifactMagicValue when parameterized global artifacts exist
  • Added comprehensive unit tests covering the regression scenario

Verification

  • Unit tests reproduce the exact failure and verify the fix
  • Existing validation tests continue to pass
  • Runtime artifact resolution remains unchanged

Documentation

No documentation changes needed - this restores existing functionality that was inadvertently broken.

@ItielOlenick ItielOlenick changed the title Fix parameterized global artifacts resolution in exit handlers fix: Fixes parameterized global artifacts resolution in exit handlers. Fixes #11610 Sep 15, 2025
ItielOlenick and others added 27 commits September 15, 2025 20:19
Signed-off-by: ItielOlenick <[email protected]>
Signed-off-by: ItielOlenick <[email protected]>
Signed-off-by: ItielOlenick <[email protected]>
Signed-off-by: ItielOlenick <[email protected]>
Signed-off-by: ItielOlenick <[email protected]>
argoproj#14908)

Signed-off-by: shuangkun <[email protected]>
Signed-off-by: Sebastien Dionne <[email protected]>
Signed-off-by: Tianchu Zhao <[email protected]>
Co-authored-by: shuangkun tian <[email protected]>
Co-authored-by: lons <[email protected]>
Co-authored-by: Tianchu Zhao <[email protected]>
Signed-off-by: Alan Clucas <[email protected]>
Signed-off-by: Alan Clucas <[email protected]>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Alan Clucas <[email protected]>
Co-authored-by: Joibel <[email protected]>
Co-authored-by: Alan Clucas <[email protected]>
shuangkun and others added 22 commits October 26, 2025 19:30
Signed-off-by: Mason Malone <[email protected]>
Signed-off-by: Alan Clucas <[email protected]>
Co-authored-by: Alan Clucas <[email protected]>
…ge (argoproj#14943)

Signed-off-by: shota3506 <[email protected]>
Signed-off-by: Alan Clucas <[email protected]>
Co-authored-by: Alan Clucas <[email protected]>
ItielOlenick and others added 2 commits October 26, 2025 19:32
Signed-off-by: ItielOlenick <[email protected]>
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.

v3.4.6+ Cannot access output global artifacts in exit handler after upgrade