-
Notifications
You must be signed in to change notification settings - Fork 361
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
WX-757 Fix stdout
, stderr
in workflow body causing crashes
#7386
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
5fe626a
Fix `stdout`, `stderr`
aednichols b627704
Import niceties
aednichols 9ba6d85
Add test
aednichols 1e49941
Merge branch 'develop' into aen_wx_757_2
aednichols c7f4018
Deflake test?
aednichols 483c15f
Merge remote-tracking branch 'origin/aen_wx_757_2' into aen_wx_757_2
aednichols 4303a3b
Merge branch 'develop' into aen_wx_757_2
aednichols 71a4938
Merge branch 'develop' into aen_wx_757_2
aednichols 39502dc
Merge branch 'develop' into aen_wx_757_2
aednichols File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...es/standardTestCases/failures/stderr_stdout_workflow_body/stderr_stdout_workflow_body.wdl
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 @@ | ||
version 1.0 | ||
|
||
workflow break_with_stderr { | ||
|
||
output { | ||
File load_data_csv = select_first([stdout(), stderr()]) | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
centaur/src/main/resources/standardTestCases/stderr_stdout_workflow_body.test
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,13 @@ | ||
name: stderr_stdout_workflow_body | ||
testFormat: workflowfailure | ||
|
||
files { | ||
workflow: failures/stderr_stdout_workflow_body/stderr_stdout_workflow_body.wdl | ||
} | ||
|
||
metadata { | ||
workflowName: break_with_stderr | ||
status: Failed | ||
"failures.0.message": "Workflow failed" | ||
"failures.0.causedBy.0.message": "Failed to evaluate 'break_with_stderr.load_data_csv' (reason 1 of 2): Evaluating select_first([stdout(), stderr()]) failed: stdout is not implemented at the workflow level, Failed to evaluate 'break_with_stderr.load_data_csv' (reason 2 of 2): Evaluating select_first([stdout(), stderr()]) failed: stderr is not implemented at the workflow level" | ||
} |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really appreciate how our error handling reports both errors on the same line!