coder / envbox

envbox is an image that enables creating non-privileged containers capable of running system-level software (e.g. dockerd, systemd, etc) in Kubernetes.
GNU Affero General Public License v3.0
34 stars 8 forks source link

chore: test flake: TestCoderLog #37

Open johnstcn opened 1 year ago

johnstcn commented 1 year ago
--- FAIL: TestCoderLog (0.00s)
    --- FAIL: TestCoderLog/OutputNotDropped (0.01s)
        coder_test.go:100: 
                Error Trace:    /home/runner/work/envbox/envbox/buildlog/coder_test.go:100
                Error:          Condition never satisfied
                Test:           TestCoderLog/OutputNotDropped
    --- FAIL: TestCoderLog/OK (0.01s)
        coder_test.go:51: 
                Error Trace:    /home/runner/work/envbox/envbox/buildlog/coder_test.go:51
                Error:          Condition never satisfied
                Test:           TestCoderLog/OK
FAIL

I could only get it to reproduce somewhat reliably by running

go test -count=10000 ./buildlog/

Interestingly, the race detector didn't seem to pick anything up.