Open mcharest-mcn opened 8 months ago
@mcharest-mcn can you suggest how to solve it and send a pull request?
Ok, i'll look into it. But do the unit tests work for new submissions in the project?
It ended up being written right in my face...
/go/pkg/mod/golang.org/x/exp@v0.0.0-20230905200255-921286631fa9/slog/value.go:173:10: too many errors
note: module requires Go 1.20
Updated the Go version in the unit test Dockerfile to 1.20 and the test came back to life.
I'm preparing a few modifications to the docker-compose files to be able to run them in both Podman and Docker.
Added them in PR https://github.com/prest/prest/pull/871
Context
Using podman instead of docker on MacOS
Describe the bugs
To Reproduce
Multiple parameters to the healthcheck command
Podman is rootless
test: ["CMD-SHELL", "pg_isready -U prest"]
Unit test won't pass
test: ["CMD-SHELL", "pg_isready -U prest"]
Expected behavior
For the unit tests to pass in the main branch
Error
Multiple parameters to the healthcheck command
ValueError: 'CMD_SHELL' takes a single string after it
Podman is rootless
chown: changing ownership of '/var/lib/postgresql/data': Operation not permitted
Unit test won't pass
Additional context
The real problem is that the unit tests won't pass. But I had to expose the podman limitations to explain my context since there is always a possibility that it could be at the root of the problem.