-
Notifications
You must be signed in to change notification settings - Fork 903
Support running tests from c/image #760
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
Conversation
vrothberg
left a comment
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.
Are we ready to go? Before merging, the "x" commit could need a commit message.
|
For this PR to work, both the tests in here and containers/image#744 need to succeed, which is not currently the case. |
This allows using the vendored dependencies instead of
searching for them in $GOPATH and elsewhere.
This does not necessarily matter for skopeo itself, but
the test-skopeo Makefile target in containers/image uses
(go mod edit -replace) to replace the vendored c/image with
a locally-edited copy; skopeo's (make check) then runs tests in
a container which does not have access to this locally-edited
copy, and since Go 1.13 this causes (go {list,test,vet})
to fail if -mod=vendor is not used.
Signed-off-by: Miloslav Trmač <[email protected]>
(go list) removes the vendor subdirectory automatically since Go 1.9. Signed-off-by: Miloslav Trmač <[email protected]>
The nested podman tries to write to it. This primarily only removes noise from logs, it does not seem to significantly change behavior. Signed-off-by: Miloslav Trmač <[email protected]>
Experimentally, this seems to help with localhost access inside that container (but I have no idea what's the reason for that). Signed-off-by: Miloslav Trmač <[email protected]>
Apparently we run into the 10-minute timeout now in Travis. Signed-off-by: Miloslav Trmač <[email protected]>
… testing This image is about 100 MB instead of about 2 GB for the Server Core, decreasing disk requirements and hopefully significantly speeeding up integration tests. Signed-off-by: Miloslav Trmač <[email protected]>
82e9754 to
af07348
Compare
|
Yay, success! This primarily modifies the test suite so that it can again succeed when run from c/image’s The two major elements are:
containers/image#744 , with
(which will be momentarily removed) succeeds. @vrothberg PTAL. |
|
LGTM |
See #760 (comment) below.