Skip to content

testing containers not working on GitHub actions #255

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

Closed
migmartri opened this issue Jul 20, 2023 · 3 comments · Fixed by #349
Closed

testing containers not working on GitHub actions #255

migmartri opened this issue Jul 20, 2023 · 3 comments · Fixed by #349
Assignees
Labels
bug Something isn't working

Comments

@migmartri
Copy link
Member

Jobs are failing even in main https://github.com/chainloop-dev/chainloop/actions/runs/5611270603/job/15202468154

2023/07/20 12:58:43 github.com/testcontainers/testcontainers-go - Connected to docker: 
  Server Version: 20.10.25+azure-2
  API Version: 1.41
  Operating System: Ubuntu 22.04.2 LTS
  Total Memory: 6931 MB
2023/07/20 12:58:43 Starting container id: 5710e9f6bbe4 image: docker.io/testcontainers/ryuk:0.3.4
2023/07/20 12:58:43 Waiting for container id 5710e9f6bbe4 image: docker.io/testcontainers/ryuk:0.3.4
2023/07/20 12:58:43 Starting container id: dd84ae47e6cd image: docker.io/testcontainers/ryuk:0.3.4
2023/07/20 12:58:44 Waiting for container id dd84ae47e6cd image: docker.io/testcontainers/ryuk:0.3.4
2023/07/20 12:58:44 Starting container id: 366c370844d1 image: docker.io/testcontainers/ryuk:0.3.4
2023/07/20 12:58:44 Waiting for container id 366c370844d1 image: docker.io/testcontainers/ryuk:0.3.4
--- FAIL: TestDispatcher (1.09s)
    --- FAIL: TestDispatcher/TestInitDispatchQueue (0.38s)
        database.go:149: 
            	Error Trace:	/home/runner/work/chainloop/chainloop/app/controlplane/internal/biz/testhelpers/database.go:149
            	            				/home/runner/work/chainloop/chainloop/app/controlplane/internal/biz/testhelpers/database.go:106
            	            				/home/runner/work/chainloop/chainloop/app/controlplane/internal/dispatcher/dispatcher_test.go:213
            	            				/home/runner/go/pkg/mod/github.com/stretchr/[email protected]/suite/suite.go:187
            	Error:      	Received unexpected error:
            	            	http: invalid Host header, host port waiting failed: could not start container: creating reaper failed: failed to create container
            	Test:       	TestDispatcher/TestInitDispatchQueue
    --- FAIL: TestDispatcher/TestLoadInputsEnvelope (0.33s)

the ryuk container does not seem to start. creating reaper failed: failed to create container

@migmartri migmartri added the bug Something isn't working label Jul 20, 2023
@migmartri
Copy link
Member Author

A successful run should contain the entry

2023/07/20 15:34:37 Container is ready id: c6ffdabf95ac image: docker.io/testcontainers/ryuk:0.3.4

@migmartri
Copy link
Member Author

Seems to be an issue with golang 1.20.6

testcontainers/testcontainers-go#1359

@migmartri
Copy link
Member Author

This is the underlying issue golang/go#61431

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant