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

Add shed-tools test options #169

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

selten
Copy link

@selten selten commented Feb 13, 2021

  • Add option to cleanup the history after running the test
  • Add option to fail when an error is encounted for all shed-tools options.
    Solves part of Tool testing improvements #117

fail_on_error will allow ephemeris to be more easily integrated into CI/CD pipelines to automatically deploy new tool versions into Galaxy.
Copy link
Contributor

@rhpvorderman rhpvorderman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me. Can you add a test for this behavior?

)
else:
raise NotImplementedError("This point in the code should not be reached. Please contact the developers.")

# Validate if all tools installed correctly
if args.fail_on_error and install_results and install_results.errored_repositories > 0:
log.info("The %s of a tool has failed. Exiting." % args.action)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log.error would be more appropriate.
Alternatively: since log + exit is usted. It may be better to use raise an error instead.

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

Successfully merging this pull request may close these issues.

2 participants