[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: localhost connect sometimes fail on ci





Le jeu. 6 févr. 2025 à 17:24, Paul Gevers <elbrus@debian.org> a écrit :
Hi Jérémy,

On 06-02-2025 12:47, Jérémy Lal wrote:
> https://ci.debian.net/packages/n/node-nodeunit/ <https://ci.debian.net/
> packages/n/node-nodeunit/>
>
> sometimes fail to connect to localhost:$port
> where $port is random between 40000 and 60000.
> Note that it does try both ::1 and 127.0.0.1 before throwing, so both
> are rejected.

What should be listening on that port? Did it get time to set itself up?
It's not uncommon that our hosts are at 100% CPU usage and that
processes need to wait a bit.

> I have no idea how to reproduce this in a local container.
> Any suggestions ?

Maybe try running it 10 times in parallel? Or try to make the host busy
when starting up the test.

Right, the client doesn't properly wait for the server to be setup before doing the request,
hence failing when busy.
 
Thanks for that.

Reply to: