[pkg-go] Bug#876875: golang-github-gin-gonic-gin FTBFS with Go 1.9

Shengjing Zhu i at zhsj.me
Tue Sep 26 16:44:40 UTC 2017


On Tue, 26 Sep 2017 18:05:49 +0300 Adrian Bunk <bunk at debian.org> wrote:
> Source: golang-github-gin-gonic-gin
> Version: 1.2+dfsg1-2
> Severity: serious
>
> https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/golang-github-gin-gonic-gin.html
>
> ...
> === RUN   TestPanicInHandler
> --- FAIL: TestPanicInHandler (0.00s)
> assertions.go:239:
>
> Error Trace: recovery_test.go:28
>

I assume this is a random failed test, since I can't reproduce it
locally. And ci.d.n doesn't fail either.

I checked the test env, I see the obvious difference is
tests.reproducible-builds.org has 8 cores, and the test run with `-p
8`. And my local test machine and ci.d.n both have 2 cores.
However I don't have env to confirm it.

IMHO, the error is trigger by the following code,
https://github.com/gin-gonic/gin/blob/v1.2/recovery.go#L64-L67

```
data, err := ioutil.ReadFile(file)
if err != nil {
continue
}
```
it will skip write some expected info when it reads files failed.



More information about the Pkg-go-maintainers mailing list