Database locking issues still occur with 60s timeout and >100MB sqlite database when xdist is running 16 workers. Add an option to specify timeout --testmon-connect-timeout
I don't think this is the way to fix the problem because:
there shouldn't actually be any write contention between xdist workers. They all should send information to controller which is only one process writing the information to the sqlite file
You might be getting deadlock sometimes so you would have to wait indefinitely...
Related issue
sqlite3.connect
Default timeout 60s.
Database locking issues still occur with 60s timeout and >100MB sqlite database when
xdist
is running 16 workers. Add an option to specify timeout--testmon-connect-timeout