-
Notifications
You must be signed in to change notification settings - Fork 2
add failed state #132
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
add failed state #132
Conversation
7c137fe
to
47471b2
Compare
@davixcky, this looks good to me, but I would extend the info we display in the other states as well. cli/internal/command/jobs/printers.go Lines 94 to 112 in 220ffe1
WDYT? |
Makes sense, updated |
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.
LGTM
It seems there is a bug in the API, hold on merging this changes
This doesn't look good: $ go run ./cmd/signadot/ job get basic-ipmqgdi
Job Name: basic-ipmqgdi
Job Runner Group: basic
Status: Running
Runner Pod: 26/10 <============
Environment: baseline
Created At: about a minute ago
Started At: about a minute ago
Dashboard URL: https://app.signadot.com/testing/jobs/basic-ipmqgdi
Artifacts
No artifacts I checked the API is returning invalid info: $ sdcurl -e dev /api/v2/orgs/ddvcorp/jobs/basic-wx31lgq
GET http://localhost:8080/api/v2/orgs/ddvcorp/jobs/basic-wx31lgq
200 OK in 7.263833ms
{
"name": "basic-wx31lgq",
"createdAt": "2024-06-17T14:45:14Z",
"deletedAt": "",
"spec": {
"namePrefix": "basic",
"runnerGroup": "basic",
"script": "#!/bin/bash\n\necho \"Hello this is the demo meeting\"\nstart=`date +%s`\n\nx=1\nwhile [ $x -le 30 ]\ndo\n echo \"Welcome $x times (env TEST=$TEST)\"\n x=$(( $x + 1 ))\n echo \"Error $x: retrying\" 1\u003e\u00262\n sleep 1\ndone\necho \"This is an artifact\" \u003e aaa.txt\necho \"We are done!\"\n\nend=`date +%s`\nruntime=$((end-start))\necho $runtime\n",
"routingContext": null,
"uploadArtifact": [
{
"path": "aaa.txt",
"meta": {
"format": "text"
}
}
]
},
"status": {
"attempts": [
{
"id": 0,
"createdAt": "2024-06-17T14:45:14Z",
"sentToClusterBy": "2024-06-17T14:45:16Z",
"startedAt": "2024-06-17T14:45:16Z",
"phase": "running",
"state": {
"running": {
"jobExecutorAddr": "10.244.26.50:3773",
"podName": "10", <========================
"podNamespace": "26" <========================
}
},
"executionCount": 1,
"tries": [
{
"seqNumber": 34
}
]
}
],
"seqNum": 34
}
} Let's check what's going on before merging this one (maybe those fields are not intended to be there) |
The above issue is related to https://github.com/signadot/signadot/pull/4574. |
They are intended to be there, so that a user can access to the pod via I missed the interaction with the DNS caching fix though. |
I guess the right thing to do here would be to report that in the |
Feels less accessible if not available via the saas resource. |
I'm proposing to keep it in the SaaS resource, but instead of parsing that info out of the |
yes, that sounds right to me. |
I can make this change, after the planning meeting. |
(but there is also the question of operator compatibility) |
Here is a PR that fixes the issue: https://github.com/signadot/signadot/pull/4575 |
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.
Being fixed the API issue, LGTM
Uh oh!
There was an error while loading. Please reload this page.