reanahub / reana-client

REANA command-line client
http://reana-client.readthedocs.io/
MIT License
10 stars 45 forks source link

workflow: show error when workflow fails after `start` #634

Closed mdonadoni closed 1 year ago

mdonadoni commented 1 year ago

Closes #629

How to test:

  1. Create a new demo workflow: reana-client create -w test
  2. Start the workflow without uploading inputs: reana-client start -w test --follow

Expected result: the workflow fails because of missing files and reana-client prints ==> ERROR: test has been failed

codecov-commenter commented 1 year ago

Codecov Report

Merging #634 (e717555) into master (bfdb57d) will decrease coverage by 0.92%. The diff coverage is 100.00%.

Additional details and impacted files [![Impacted file tree graph](https://codecov.io/gh/reanahub/reana-client/pull/634/graphs/tree.svg?width=650&height=150&src=pr&token=b85cSEiOhs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub)](https://codecov.io/gh/reanahub/reana-client/pull/634?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub) ```diff @@ Coverage Diff @@ ## master #634 +/- ## ========================================== - Coverage 57.57% 56.65% -0.93% ========================================== Files 23 21 -2 Lines 2291 2180 -111 ========================================== - Hits 1319 1235 -84 + Misses 972 945 -27 ``` | [Impacted Files](https://codecov.io/gh/reanahub/reana-client/pull/634?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub) | Coverage Δ | | |---|---|---| | [reana\_client/cli/workflow.py](https://codecov.io/gh/reanahub/reana-client/pull/634/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub#diff-cmVhbmFfY2xpZW50L2NsaS93b3JrZmxvdy5weQ==) | `63.69% <100.00%> (+0.12%)` | :arrow_up: | | [reana\_client/\_\_init\_\_.py](https://codecov.io/gh/reanahub/reana-client/pull/634/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub#diff-cmVhbmFfY2xpZW50L19faW5pdF9fLnB5) | | | | [reana\_client/utils.py](https://codecov.io/gh/reanahub/reana-client/pull/634/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub#diff-cmVhbmFfY2xpZW50L3V0aWxzLnB5) | | |