Why Rails Parallel Tests Hang Forever on a Postgres Lock

bin/rails test stopped printing and never finished. Not a failure. Not a stack trace. The log just froze mid-run, and the parent process sat at 0% CPU: Running 2014 tests in parallel using 10 …