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

CI: Link commands in all scripts by their exit code, use mostly 'bash' #1712

Merged
merged 11 commits into from
Sep 13, 2019

Conversation

astafan8
Copy link
Contributor

@astafan8 astafan8 commented Sep 11, 2019

There have been cases where within a bash or script step one command would fail with non-0 exit code but the command after that would continue to execute. This is not desired because, for example, we don't want to run mypy if the "qcodes" environment wasn't activated.

In this PR, we use && to glue commands together so that non-0 exit code prevents continuation of execution of a command sequence. Moreover, most of the script steps got converted to bash steps.

there have been cases where within a bash or script step
one command would fail with non-0 exit code but the command
after that would continue to execute.

we are trying to prevent this from happening
@codecov
Copy link

codecov bot commented Sep 11, 2019

Codecov Report

Merging #1712 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1712      +/-   ##
==========================================
- Coverage   67.22%   67.21%   -0.01%     
==========================================
  Files         145      145              
  Lines       17951    17951              
==========================================
- Hits        12067    12066       -1     
- Misses       5884     5885       +1

@WilliamHPNielsen WilliamHPNielsen changed the title Link commands in all scripts by their exit code CI: Link commands in all scripts by their exit code Sep 11, 2019
azure-pipelines.yml Outdated Show resolved Hide resolved
@astafan8 astafan8 changed the title CI: Link commands in all scripts by their exit code CI: Link commands in all scripts by their exit code, use mostly 'bash' Sep 11, 2019
@astafan8 astafan8 marked this pull request as ready for review September 11, 2019 12:30
@astafan8
Copy link
Contributor Author

@jenshnielsen could you have a look again ? after that we can press "update branch", ensure that everything ends with green, and squash-merge it.

@astafan8
Copy link
Contributor Author

@jenshnielsen is this good to go?

Copy link
Collaborator

@jenshnielsen jenshnielsen left a comment

Choose a reason for hiding this comment

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

yes looks good

@astafan8 astafan8 merged commit 023a666 into master Sep 13, 2019
@astafan8 astafan8 deleted the azure-pipelines/respect-exit-code-within-scripts branch September 13, 2019 14:43
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