-
Notifications
You must be signed in to change notification settings - Fork 75
Closed
Description
Subtask for #1329
To get a task status you have to run:
testground status --task c9p3s72el22n9gatgq70 --extended Which outputs something like:
› testground status --task c9p3s72el22n9gatgq70 --extended
May 4 08:54:21.573004 INFO using home directory: /Users/laurent/testground
May 4 08:54:21.573192 INFO .env.toml loaded from: /Users/laurent/testground/.env.toml
May 4 08:54:21.573203 INFO testground client initialized {"addr": "http://localhost:8043"}
>>> Result:
ID: c9p3s72el22n9gatgq70
Priority: 1
Created: 2022-05-04 08:49:32.426292982 +0000 UTC
Type: run
Status: complete
Last update: 2022-05-04 08:51:15.295936558 +0000 UTC
Input:
{"Sources":{"base_dir":"/home/laurent/testground/data/work/requests/5950d816","extra_dir":"","plan_dir":"/home/laurent/testground/data/work/requests/5950d816/plan","sdk_dir":""},"build_groups":[0],"composition":{"global":{"build":null,"build_config":{"enabled":true},"builder":"docker:generic","case":"example","disable_metrics":false,"plan":"sdk-rust","run":null,"run_config":{"enabled":true},"runner":"local:docker","total_instances":1},"groups":[{"build":{"dependencies":[],"selectors":null},"id":"single","instances":{"count":1,"percentage":0},"resources":{"cpu":"","memory":""},"run":{"artifact":"51db1e46f370","profiles":null,"test_params":{}}}],"metadata":{"author":"","name":""}},"created_by":{},"manifest":{"Builders":{"docker:generic":{"enabled":true}},"ExtraSources":null,"Name":"sdk-rust","Runners":{"local:docker":{"enabled":true}},"TestCases":[{"Instances":{"Maximum":1,"Minimum":1},"Name":"example","Parameters":null}]},"priority":1}
Result:
{"journal":{"events":{},"pods_statuses":{}},"outcome":"failure","outcomes":{"single":{"ok":0,"total":1}}}
Note the Status: complete at the beginning,
BUT if you use the --extended parameter, you see "outcomes": "failure" JSON log.
There is a different between the task status (complete) and the task outcome (failure). And we're generally interested in the task outcome.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
✅ Done