This is an archive of the discontinued LLVM Phabricator instance.

[LNT] Fix postgres unit tests by closing db connections.
ClosedPublic

Authored by kristof.beyls on Sep 25 2015, 7:59 AM.

Details

Summary

When running the unit tests on a postgres database, the following error shows:

sqlalchemy.exc.TimeoutError: QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30

We've also seen this error from time to time on the instance running at
llvm.org/perf, and it was unclear what the exact reason was for this. Now that
we can run the unit tests on postgres, this shows that not closing the db
connection at the end of a request is at least one of the reasons this error
can be produced.

This builds on http://reviews.llvm.org/D13163, which makes it possible to run the unit tests on postgres instead of sqlite.

Diff Detail

Repository
rL LLVM

Event Timeline

kristof.beyls retitled this revision from to [LNT] Fix postgres unit tests by closing db connections..
kristof.beyls updated this object.
kristof.beyls added a subscriber: llvm-commits.
cmatthews accepted this revision.Sep 28 2015, 11:36 AM
cmatthews edited edge metadata.

This looks good to me.

This revision is now accepted and ready to land.Sep 28 2015, 11:36 AM
This revision was automatically updated to reflect the committed changes.