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

Backend - Docker build should fail on sample compilation failures #1760

Conversation

Ark-kun
Copy link
Contributor

@Ark-kun Ark-kun commented Aug 7, 2019

Problem: Docker implicitly prepends "sh -c " to the RUN commands (no "-e"). Without "-e", the exit code of the shell script is the exit code of the last executed command. So the sample compilation script will only fail if the last sample failed the compilation.

Fix: Explicitly adding "set -e" to the command fixes the issue.

Fixes #1735


This change is Reviewable

Problem: Docker implicitly prepends "sh -c " to the RUN commands (no "-e"). Without "-e", the exit code of the shell script is the exit code of the last executed command. So the csample compilation script will only fail if the last sample failed the compilation.

Fix: Explicitly adding "set -e" to the command fixes the issue.

Fixes kubeflow#1735
@IronPan
Copy link
Member

IronPan commented Aug 7, 2019

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: IronPan

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Ark-kun
Copy link
Contributor Author

Ark-kun commented Aug 7, 2019

/retest

2 similar comments
@Ark-kun
Copy link
Contributor Author

Ark-kun commented Aug 7, 2019

/retest

@Ark-kun
Copy link
Contributor Author

Ark-kun commented Aug 8, 2019

/retest

@gaoning777
Copy link
Contributor

/lgtm

@IronPan
Copy link
Member

IronPan commented Aug 8, 2019

/test kubeflow-pipeline-e2e-test

@k8s-ci-robot k8s-ci-robot merged commit 1407d86 into kubeflow:master Aug 8, 2019
@Ark-kun Ark-kun deleted the Backend---Docker-build-should-fail-on-compilation-failures branch August 9, 2019 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

E2E tests do not catch build image failure
4 participants