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: Set default value to output parameters if suspend node timeout. Fixes #12230 #12960

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jswxstw
Copy link
Contributor

@jswxstw jswxstw commented Apr 22, 2024

Fixes #12230

Motivation

Node is marked to Succeeded when suspension is expired, but the value of node outputs parameters was not filled up with ValueFrom.Default if ValueFrom.Supplied != nil.

Modifications

Set default value to output parameters if suspend node timeout or mark the suspend node to error if raw output parameter has not been set and does not have a default value.

Verification

local test and add e2e test

…ixes argoproj#12230

Signed-off-by: oninowang <oninowang@tencent.com>
@jswxstw jswxstw marked this pull request as draft April 22, 2024 03:53
@jswxstw jswxstw marked this pull request as ready for review April 22, 2024 05:02
test/e2e/suspend_test.go Outdated Show resolved Hide resolved
Signed-off-by: oninowang <oninowang@tencent.com>
@tczhao
Copy link
Member

tczhao commented Apr 23, 2024

The test-corefunctional, minimal was succeed before the last commit 2317852,
The last commit only alters the functional test, the test-corefunctional, minimal failure is not an issue

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.

Supplied valueFrom ignores defaults after duration elapsed
2 participants