Skip to content

Commit

Permalink
add tool_id and test_index to jq output
Browse files Browse the repository at this point in the history
currently the combine step just outputs a set of "error" or "failure"
strings for such tests. it would be much more useful to know immedately,
i.e. without checking the html output, which tests failed.

this info should now be visible

just tested for the json output of
https://github.com/galaxyproject/tools-iuc/actions/runs/4798624079/jobs/8538223205
.. output looks like

```
...
"failure;mothur_remove_lineage;2"
"error;mothur_remove_lineage;3"
"error;mothur_remove_lineage;4"
"success;mothur_remove_otulabels;0"
...
```
  • Loading branch information
bernt-matthias authored and mvdbeek committed Apr 26, 2023
1 parent 8f3308d commit 66477cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions planemo_ci_actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ fi
# check outputs mode
# - check if there were unsuccessful tests
if [ "$MODE" == "check" ]; then

if jq '.["tests"][]["data"]["status"]' upload/tool_test_output.json | grep -v "success"; then
if jq '.["tests"][]["data"] | {status: .status, id: .tool_id, idx: .test_index} | join(";")' tool_test_output.json | grep -v "success;"; then
echo "Unsuccessful tests found, inspect the 'All tool test results' artifact for details."
exit 1
fi
Expand Down

0 comments on commit 66477cc

Please sign in to comment.