Skip to content
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

Running dpp with nonexistent dataset reference exists silently #118

Open
jbothma opened this issue Jan 31, 2018 · 4 comments
Open

Running dpp with nonexistent dataset reference exists silently #118

jbothma opened this issue Jan 31, 2018 · 4 comments
Assignees

Comments

@jbothma
Copy link
Contributor

jbothma commented Jan 31, 2018

In order to submit an issue, please ensure you can check the following. Thanks!

  • [x ] Declare which version of Python you are using (python --version)
  • [ x] Declare which operating system you are using
  • python 3.6.4
  • datapackage-pipelines 1.5.4
  • operating system: iinux (arch)

Running

GOBBLE_AUTH_TOKEN=mytoken dpp run ./2017-18/national/estimates-of-national-expenditure-south-africa-2017-18

outputs

INFO    :Main                            :Skipping redis connection, host:None, port:6379
INFO    :Main                            :RESULTS:

and exists with exit code zero giving no feedback that something went wrong or what went wrong.

@OriHoch
Copy link
Contributor

OriHoch commented Jan 31, 2018

this is the relevant code - https://github.com/frictionlessdata/datapackage-pipelines/blob/master/datapackage_pipelines/cli.py#L110

I think that we need to add a condition there, something like -

if len(results) == 0:
  exitcode=1

@OriHoch
Copy link
Contributor

OriHoch commented Jan 31, 2018

also, output a friendly error message -

no results, please check the pipeline id / processor names

@OriHoch
Copy link
Contributor

OriHoch commented Jan 31, 2018

also, you can add this condition to our cli exit codes test..
https://github.com/frictionlessdata/datapackage-pipelines/blob/master/tests/exit-codes/test_cli_exit_codes.sh

@akariv
Copy link
Member

akariv commented Jan 31, 2018

Good suggestion. On it.

@akariv akariv self-assigned this Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants