daml/libs-scala
Samir Talwar 52dbcf5d95
postgresql-testing: "Lock" ports when starting PostgreSQL. (#5310)
* http-json: Ask for a free port by specifying port 0.

This will avoid race conditions.

* bindings-akka-testing: Delete RandomPorts; it's unused.

* ports: Fix the Bazel test glob.

* ports: Move FreePort to postgresql-testing and add a test case.

* postgresql-testing: Make `FreePort.find()` return a `Port`.

* postgresql-testing: Lock free ports until the server starts.

This uses a `FileLock`, which should work well on all our
supported operating systems as long as everyone agrees to use it.

CHANGELOG_BEGIN
CHANGELOG_END

* postgresql-testing: Try to find a free port 10 times, then give up.

* postgresql-testing: Use a shared directory for the port lock.

* postgresql-testing: Try an alternative way of getting `%LOCALAPPDATA%`.
2020-03-31 17:13:02 +00:00
..
auth-utils replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
build-info replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
contextualized-logging replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
direct-execution-context replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
grpc-utils replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
ports postgresql-testing: "Lock" ports when starting PostgreSQL. (#5310) 2020-03-31 17:13:02 +00:00
postgresql-testing postgresql-testing: "Lock" ports when starting PostgreSQL. (#5310) 2020-03-31 17:13:02 +00:00
resources replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
resources-akka replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00
timer-utils replace DAML Authors with DA in copyright headers (#5228) 2020-03-27 01:26:10 +01:00