-
Notifications
You must be signed in to change notification settings - Fork 11
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
PR CI should cover container image build [RHELDST-2973] #29
Conversation
Can capture the build failure in travis-ci job log.
|
85fd24b
to
a1ee797
Compare
@dichen16 - #25 has been merged, which should fix the Travis CI failure |
Am I correct to assume that intent of this PR is to validate that the image can be built successfully, so we can more easily detect whether a change will break an image build? |
@crungehottman yes, "validate that the image can be built successfully" exactly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is implemented in the right way - if you have a look at the Travis logs, you can see that it builds the container image at the beginning of each of the three jobs in the test matrix, although as far as the build is concerned, there is no difference in environment between them.
It's at least wasteful, and also seems arbitrary to handle this one kind of test differently in this way. Before the change, we had this:
- one job running python tests & collecting coverage
- one job building docs
- one job applying static checkers (e.g. pylint)
If we want to add another kind of test, should that just be adding one more job to the above list? It seems more logical than adding an unrelated step at the beginning of all the existing jobs.
e09967b
to
c599c3a
Compare
@rohanpm separated job for build-docker-image added. |
Add image build by using docker in travis-ci.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Building the image and pushing it to right registry should be handled in a separate task before the CI tests are executed.
@lioramilbaum This PR introduces another image-building process besides the Quay.io Build Triggers.
So building-image is happened before CI tests. Not sure why pushing to registry should happened before CI tests as well. Then untested, risky image can exist in our registry, right? |
The long term plan is to enable integration tests in CI. Unit tests are not sufficient validation. |
Yes, upstream CI is not enough, downstream CI for integration test running in openshift is necessary. |
Add image build by using docker in travis-ci.