Skip to content

Commit 8c71273

Browse files
author
Artem Ermoshkin
committed
strengthen coverage suite
1 parent 41492f0 commit 8c71273

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/coverage.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,13 @@ jobs:
6161
- name: Test
6262
shell: bash
6363
run: |
64+
set -euo pipefail
65+
6466
IAM_REGEX='^(DriverAuth|TMetadataFixture|TJwtIamFixture|TOAuthIamFixture|OAuth_WithFacility)\.'
67+
FLAKY_REGEX='(ManyMessages|DiscoveryHang|DescribeHang)'
68+
EXCLUDE_REGEX="${IAM_REGEX}|${FLAKY_REGEX}"
6569
66-
ctest -j1 --preset coverage-all -E "${IAM_REGEX}" --output-on-failure
70+
ctest -j1 --preset coverage-all -E "${EXCLUDE_REGEX}" --output-on-failure
6771
6872
cleanup_iam() { docker rm -f ydb-iam >/dev/null 2>&1 || true; }
6973
trap cleanup_iam EXIT
@@ -85,6 +89,13 @@ jobs:
8589
sleep 2
8690
done
8791
92+
if ! docker exec ydb-iam /ydb --endpoint grpc://localhost:2136 \
93+
--database /local sql -s 'select 1' >/dev/null 2>&1; then
94+
echo "ydb-iam failed to become ready"
95+
docker logs ydb-iam 2>&1 | tail -50
96+
exit 1
97+
fi
98+
8899
YDB_ENDPOINT=localhost:2236 YDB_DATABASE=/local \
89100
ctest -j1 --test-dir build -R "${IAM_REGEX}" --output-on-failure
90101

0 commit comments

Comments
 (0)