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

test: TestBuilder_Build "type dockerfile" seems flakey #709

Open
bobheadxi opened this issue Oct 19, 2020 · 1 comment
Open

test: TestBuilder_Build "type dockerfile" seems flakey #709

bobheadxi opened this issue Oct 19, 2020 · 1 comment
Labels
type: chore 🔨 linters, releases, management, etc.

Comments

@bobheadxi
Copy link
Member

This is an integration test that attempts to build and start an image. Seems flakey in CI occasionally

@bobheadxi bobheadxi added the type: chore 🔨 linters, releases, management, etc. label Oct 19, 2020
@bobheadxi
Copy link
Member Author

Building docker-compose project test_docker-compose_81...
Setting up docker-compose...
Building project test_docker-compose_81...
��webdev uses an image, skipping
test_docker-compose_81 build successful
Perparing test_docker-compose_81 container...
test_docker-compose_81 container created
Starting up test_docker-compose_81...
Building dockerfile project test_dockerfile_87...
Building project test_dockerfile_87...
{"stream":"Step 1/3 : FROM python:alpine"}
{"stream":"\n"}
{"stream":" ---\u003e 55d14c2b2fc1\n"}
{"stream":"Step 2/3 : EXPOSE 80"}
{"stream":"\n"}
{"stream":" ---\u003e Running in 2fce3dcc22b3\n"}
{"errorDetail":{"message":"unknown parent image ID sha256:55d14c2b2fc19eaf161b672519dfddb62b9dab5e93cacdf636cf66834a9d982b"},"error":"unknown parent image ID sha256:55d14c2b2fc19eaf161b672519dfddb62b9dab5e93cacdf636cf66834a9d982b"}
Building dockerfile project test_dockerfile_47...
Building project test_dockerfile_47...
{"stream":"Step 1/2 : FROM alpine"}
{"stream":"\n"}
{"status":"Pulling from library/alpine","id":"latest"}
{"status":"Already exists","progressDetail":{},"id":"df20fa9351a1"}
{"status":"Digest: sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321"}
{"status":"Status: Downloaded newer image for alpine:latest"}
{"stream":" ---\u003e a24bb4013296\n"}
{"stream":"Step 2/2 : RUN exit 1"}
{"stream":"\n"}
{"stream":" ---\u003e Running in 56d997dff1ca\n"}
{"errorDetail":{"code":1,"message":"The command '/bin/sh -c exit 1' returned a non-zero code: 1"},"error":"The command '/bin/sh -c exit 1' returned a non-zero code: 1"}
Building dockerfile project test_dockerfile_59...
Building project test_dockerfile_59...
{"stream":"Step 1/3 : FROM python:alpine"}
{"stream":"\n"}
{"status":"Pulling from library/python","id":"alpine"}
{"status":"Already exists","progressDetail":{},"id":"df20fa9351a1"}
{"status":"Already exists","progressDetail":{},"id":"36b3adc4ff6f"}
{"status":"Already exists","progressDetail":{},"id":"b3da09547f40"}
{"status":"Already exists","progressDetail":{},"id":"f253d7fd108d"}
{"status":"Already exists","progressDetail":{},"id":"eaea9af357a3"}
{"status":"Digest: sha256:d48f52e077e047f797a103670338a2c58c073b5bbaef611003732014d551cbaa"}
{"status":"Status: Downloaded newer image for python:alpine"}
{"stream":" ---\u003e 55d14c2b2fc1\n"}
{"stream":"Step 2/3 : EXPOSE 80"}
{"stream":"\n"}
{"stream":" ---\u003e Running in e63bd2380a0d\n"}
{"stream":"Removing intermediate container e63bd2380a0d\n"}
{"stream":" ---\u003e 6682f7e66e28\n"}
{"stream":"Step 3/3 : CMD [\"python\", \"-m\", \"http.server\", \"80\"]"}
{"stream":"\n"}
{"stream":" ---\u003e Running in 68125ae678a5\n"}
{"stream":"Removing intermediate container 68125ae678a5\n"}
{"stream":" ---\u003e e088bb5459d4\n"}
{"aux":{"ID":"sha256:e088bb5459d48d116606ec66998e7547ee0ee08faf67e5a4ce5b61642814d03f"}}
{"stream":"Successfully built e088bb5459d4\n"}
{"stream":"Successfully tagged inertia-build/test_dockerfile_59:latest\n"}
test_dockerfile_59 build successful
Perparing test_dockerfile_59 container...
test_dockerfile_59 container created
Starting up test_dockerfile_59...
Building dockerfile project test_dockerfile_81...
Building project test_dockerfile_81...
{"stream":"Step 1/3 : FROM python:alpine"}
{"stream":"\n"}
{"stream":" ---\u003e 55d14c2b2fc1\n"}
{"stream":"Step 2/3 : EXPOSE 80"}
{"stream":"\n"}
{"stream":" ---\u003e Using cache\n"}
{"stream":" ---\u003e 6682f7e66e28\n"}
{"stream":"Step 3/3 : CMD [\"python\", \"-m\", \"http.server\", \"80\"]"}
{"stream":"\n"}
{"stream":" ---\u003e Using cache\n"}
{"stream":" ---\u003e e088bb5459d4\n"}
{"aux":{"ID":"sha256:e088bb5459d48d116606ec66998e7547ee0ee08faf67e5a4ce5b61642814d03f"}}
{"stream":"Successfully built e088bb5459d4\n"}
{"stream":"Successfully tagged inertia-build/test_dockerfile_81:latest\n"}
test_dockerfile_81 build successful
Perparing test_dockerfile_81 container...
test_dockerfile_81 container created
Starting up test_dockerfile_81...
--- FAIL: TestBuilder_Build (466.05s)
    --- FAIL: TestBuilder_Build/type_dockerfile (361.17s)
Error:         builder_test.go:107: Preparing to build test project with name 'test_dockerfile_87' from directory '/home/runner/work/inertia/inertia/test/build/dockerfile'
        builder_test.go:120: 
            	Error Trace:	builder_test.go:120
            	Error:      	Received unexpected error:
            	            	image build failed: Error: No such image: inertia-build/test_dockerfile_87
            	Test:       	TestBuilder_Build/type_dockerfile
        builder_test.go:158: 
            	Error Trace:	builder_test.go:158
            	Error:      	Should be true
            	Test:       	TestBuilder_Build/type_dockerfile
            	Messages:   	project container should be active
FAIL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore 🔨 linters, releases, management, etc.
Projects
None yet
Development

No branches or pull requests

1 participant