Skip to content

Bump deadlock timeout on server initialization to 60s

Administrator requested to merge bump-init-timeout into master

Created by: chrismwendt

We're seeing CI flakiness due to Postgres DB migrations taking more than 30s, which triggers the deadlock detector.

It takes 12s to initialize a sourcegraph/server instance on my macOS, and with variabilities in runtime in CI it's perhaps not surprising that we exceed the 30s from time to time.

This bumps the timeout from 30s to 60s.

Alternatives:

  • Investigate further, profile migrations, see if they can be sped up
  • Exclude the period of time during which migrations are being run from the deadlock detector timeout

More context: https://github.com/sourcegraph/sourcegraph/issues/5721#issuecomment-540855232

Merge request reports

Loading