popstellar icon indicating copy to clipboard operation
popstellar copied to clipboard

[BUG] The test TestConnectToSocket times out very rarely

Open MaelyssGilliard opened this issue 4 years ago • 0 comments

Description (Actual behavior)

The test TestConnectToSocket times out very rarely (we don't have a specific failure rate) in the CI. It is probably the same problem than in issue #709 that wasn't completely fixed but only has a drastically reduced rate after the proposed solution.

Expected behavior

The test is not supposed to fail. The logs of the test are supposed to look like this: image

How to reproduce

We don't know how to reproduce the bug, it happened only on the CI

Version & Environment

This bug was reproduced on:

Front-ends:
  • [ ] Fe1-Web (please include browser's names & version)
  • [ ] Fe2-Android (please specify if phone or emulation, and Android version)
  • [x] Not applicable
Back-ends:
  • [x] Be1-Go
  • [ ] Be2-Scala
  • [ ] Not applicable

Workaround

Re-run all jobs when the CI fails.

Possible root cause

The problem comes probably from a concurrency error, where only the read pump or the write pump closes when a socket is closed while a message is being sent or received through the socket.

MaelyssGilliard avatar Jan 18 '22 09:01 MaelyssGilliard