Skip to content

Commit fb0638e

Browse files
committed
Log connection exception to debug flaky e2e test
1 parent 3461382 commit fb0638e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

airbyte-db/src/main/java/io/airbyte/db/Databases.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public class Databases {
5757
LOGGER.info("Testing config database connection...");
5858
return database.query(ctx -> ctx.fetchExists(select().from("information_schema.tables")));
5959
} catch (Exception e) {
60+
LOGGER.info("Unsuccessful connection to config database", e);
6061
return false;
6162
}
6263
};

tools/bin/e2e_test.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ mkdir -p /tmp/airbyte_local
1616

1717
# Detach so we can run subsequent commands
1818
VERSION=dev TRACKING_STRATEGY=logging docker-compose up -d
19-
trap 'echo "docker-compose logs:" && docker-compose logs -t --tail 150 && docker-compose down && docker rm -f $(docker ps -q --filter name=airbyte_ci_pg)' EXIT
19+
trap 'echo "docker-compose logs:" && docker-compose logs -t --tail 1000 && docker-compose down && docker rm -f $(docker ps -q --filter name=airbyte_ci_pg)' EXIT
2020

2121
docker run -d -p 5433:5432 -e POSTGRES_PASSWORD=secret_password -e POSTGRES_DB=airbyte_ci --name airbyte_ci_pg postgres
2222
echo "Waiting for services to begin"
2323
sleep 30 # TODO need a better way to wait
2424

2525
echo "Running e2e tests via gradle"
2626
SUB_BUILD=PLATFORM ./gradlew --no-daemon :airbyte-e2e-testing:e2etest
27-

0 commit comments

Comments
 (0)