Closed jeftadlvw closed 1 month ago
A workaround would be to don't run the tests. Run the test environment container with one additional environment variable: -e DISABLE_TESTS=true
It seems that this issue only appears on MacOS arm docker containers. They run on my pc (amd64), in a docker container on my pc (golang:1.22.4-bookworm) and pi (armv6).
After further investigation, i have reasons to think the custom exec.Command wrapper causes these issues. Information gets lost somewhere around scanning and passing the data to parallel handler functions.
This problem should be solved. All tests succeed on various platforms. Still weird that the issue occured within a docker container on ARM, but maybe other things like system resources played a role
When running tests in the temporary environment, some of them fail, wheras they are completely fine on the host machine. There seems to be some inconsitency between the tests. Sometimes they also fail on the host machine. But when rerun everything is fine. Maybe this has to do with that most tests are run in parallel and they modify resources, or that the programs don't wait enough for os-side changes to be persisted.
Commit hash:
db39cda908ebed18e45f0ede9c307d613bc010a4