Closed zivkovicmilos closed 22 hours ago
This is the output of the image:
2024-11-20 01:25:48 unable to load config; try running `gnoland config init` or use the -lazy flag, config file at "/opt/gno/src/gno.land/gnoland-data/config/config.toml" does not exist
Setting --lazy
starts the node inside the container:
func startGnoland(t *testing.T) {
t.Helper()
cmd := createCommand(t, []string{
"docker", "run",
"-d",
"--name", gnolandContainerName,
"-w", "/opt/gno/src/gno.land",
"gno:integration",
"gnoland",
"start",
"--lazy",
})
output, err := cmd.CombinedOutput()
require.NoError(t, err)
require.NotEmpty(t, string(output)) // should be the hash of the container.
// t.Cleanup(func() { cleanupGnoland(t) })
}
But there are other problems:
=== RUN TestDockerIntegration
=== PAUSE TestDockerIntegration
=== CONT TestDockerIntegration
integration_test.go:38: docker info
integration_test.go:39: docker rm -f int_gnoland
integration_test.go:40: docker build -t gno:integration ../..
integration_test.go:41: docker run -d --name int_gnoland -w /opt/gno/src/gno.land gno:integration gnoland start --lazy
integration_test.go:42: waiting...
integration_test.go:42: docker logs int_gnoland
integration_test.go:42: docker logs int_gnoland
integration_test.go:42: docker logs int_gnoland
integration_test.go:42: docker logs int_gnoland
integration_test.go:42: docker logs int_gnoland
integration_test.go:42: docker logs int_gnoland
integration_test.go:42: docker logs int_gnoland
integration_test.go:42: docker logs int_gnoland
integration_test.go:42: docker logs int_gnoland
integration_test.go:42: docker logs int_gnoland
integration_test.go:42: docker logs int_gnoland
integration_test.go:42: docker logs int_gnoland
integration_test.go:42: gnoland ready
integration_test.go:44: docker exec int_gnoland sh -c echo "pass\npass\nsource bonus chronic canvas draft south burst lottery vacant surface solve popular case indicate oppose farm nothing bullet exhibit title speed wink action roast\n" | gnokey add -recover -insecure-password-stdin test1
integration_test.go:44:
Error Trace: /Users/zmilos/Work/gno/misc/docker-integration/integration_test.go:119
/Users/zmilos/Work/gno/misc/docker-integration/integration_test.go:51
/Users/zmilos/Work/gno/misc/docker-integration/integration_test.go:44
Error: Received unexpected error:
exit status 1
Test: TestDockerIntegration
Messages: Enter a passphrase to encrypt your key to disk:
Repeat the passphrase:
unable to parse provided password, EOF
--- FAIL: TestDockerIntegration (12.99s)
FAIL
Process finished with the exit code 1
almost fixed... Just fighting with gas... Even increasing is not working
integration_test.go:44: docker exec int_gnoland sh -c echo 'pass' | gnokey maketx addpkg -insecure-password-stdin \
-gas-fee 1000000ugnot -gas-wanted 2000000 \
-broadcast -chainid dev \
-pkgdir /gnoroot/examples/gno.land/r/demo/tests/ \
-pkgpath gno.land/r/demo/tests_copy \
-deposit 100000000ugnot \
test1
---
Data: out of gas error
Msg Traces:
0 /gnoroot/tm2/pkg/crypto/keys/client/maketx.go:215 - deliver transaction failed: log:out of gas, gasWanted: 2000000, gasUsed: 2078599 location: ReadPerByte
Does this even run in the CI?
It screams of an outdated test we should delete
I think it is old stuff, but I was curious making them work
TestDockerIntegration
fails locallyDescription
Running the test
TestDockerIntegration
fails locally, even with the build tagdocker
.Docker version on my machine:
Your environment
go version go1.23.3 darwin/arm64
macOS 15.1
master
Steps to reproduce
Head over to
misc/docker-integration
and runmake test
Expected behavior
The test should pass.
Actual behavior
The test panics.
Logs
Proposed solution
🤷♂️