-
Notifications
You must be signed in to change notification settings - Fork 1
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
[CSE-13] extended error handling for workflows #16
Changes from 20 commits
de94f1d
0d483a1
62bfd2e
2a4c83c
3ea6e7b
f162e32
28da250
3657786
b4b17c4
b361ea0
28d97a8
193ffcf
059df92
c23f096
bf6763b
39dca2f
41e7b10
799b533
1b46346
4cd1489
7b4c254
0ce2ccd
1878655
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Argo Branding Assets | ||
## Logo | ||
![Argo Logo](https://github.com/CyrusBiotechnology/argo/blob/master/argo-logo600.png "Argo Logo") | ||
![Argo Logo](https://github.com/cyrusbiotechnology/argo/blob/master/argo-logo600.png "Argo Logo") |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.3.0 | ||
2.5.0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"swagger": "2.0", | ||
"info": { | ||
"title": "Argo", | ||
"version": "v2.2.1" | ||
"version": "v2.5.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2.4.0 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we add some type of indicator to convey that is version is (or will be different) from the 2.4 or 2.5 from the upstream? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The actual build artifacts we produce all have |
||
}, | ||
"paths": {}, | ||
"definitions": { | ||
|
@@ -229,6 +229,52 @@ | |
} | ||
} | ||
}, | ||
"io.argoproj.workflow.v1alpha1.ErrorCondition": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe ExceptionCondition so it is more straightforward that it also includes warnings? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i like that |
||
"description": "ErrorCondition is a container for defining an error or warning rule", | ||
"required": [ | ||
"name" | ||
], | ||
"properties": { | ||
"message": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"patternMatched": { | ||
"type": "string" | ||
}, | ||
"patternUnmatched": { | ||
"type": "string" | ||
}, | ||
"source": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"io.argoproj.workflow.v1alpha1.ErrorResult": { | ||
"description": "ErrorResult contains the results on an extended error or warning condition evaluation", | ||
"required": [ | ||
"name", | ||
"message", | ||
"podId", | ||
"stepName" | ||
], | ||
"properties": { | ||
"message": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"podId": { | ||
"type": "string" | ||
}, | ||
"stepName": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"io.argoproj.workflow.v1alpha1.GCSArtifact": { | ||
"description": "GCSArtifact is the location of a GCS artifact", | ||
"required": [ | ||
|
@@ -821,6 +867,12 @@ | |
"description": "DAG template subtype which runs a DAG", | ||
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.DAGTemplate" | ||
}, | ||
"errors": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ErrorCondition" | ||
} | ||
}, | ||
"inputs": { | ||
"description": "Inputs describe what inputs parameters and artifacts are supplied to this template", | ||
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.Inputs" | ||
|
@@ -888,6 +940,12 @@ | |
"items": { | ||
"$ref": "#/definitions/io.k8s.api.core.v1.Toleration" | ||
} | ||
}, | ||
"warnings": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/io.argoproj.workflow.v1alpha1.ErrorCondition" | ||
} | ||
} | ||
} | ||
}, | ||
|
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.
did you hit a bug related to casing?
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.
Yep. go's codegen tool insists on generating code with lowercase imports, and if you have a mix of lowercase and mixed case imports in your source base, your code wont compile with an error about import case collisions. it's "very cool"