Skip to content

Commit bc4de2d

Browse files
committed
Fix clickhouse in our test suite
1 parent 48ebd73 commit bc4de2d

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

.github/workflows/test-integrations-dbs.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,15 @@ jobs:
5959
with:
6060
python-version: ${{ matrix.python-version }}
6161
allow-prereleases: true
62-
- uses: getsentry/[email protected]
62+
- name: "Setup ClickHouse Server"
63+
uses: getsentry/[email protected]
64+
- name: Ensure ClickHouse Ready
65+
run: |
66+
set -x
67+
sleep 3
68+
docker ps
69+
docker logs clickhouse-test
70+
curl -i 'http://localhost:8123/' --data-binary 'SELECT * FROM system.build_options'
6371
- name: Setup Test Env
6472
run: |
6573
pip install "coverage[toml]" tox
@@ -154,7 +162,15 @@ jobs:
154162
with:
155163
python-version: ${{ matrix.python-version }}
156164
allow-prereleases: true
157-
- uses: getsentry/[email protected]
165+
- name: "Setup ClickHouse Server"
166+
uses: getsentry/[email protected]
167+
- name: Ensure ClickHouse Ready
168+
run: |
169+
set -x
170+
sleep 3
171+
docker ps
172+
docker logs clickhouse-test
173+
curl -i 'http://localhost:8123/' --data-binary 'SELECT * FROM system.build_options'
158174
- name: Setup Test Env
159175
run: |
160176
pip install "coverage[toml]" tox

scripts/split_tox_gh_actions/templates/test_group.jinja

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,15 @@
5151
python-version: {% raw %}${{ matrix.python-version }}{% endraw %}
5252
allow-prereleases: true
5353
{% if needs_clickhouse %}
54-
- uses: getsentry/[email protected]
54+
- name: "Setup ClickHouse Server"
55+
uses: getsentry/[email protected]
56+
- name: Ensure ClickHouse Ready
57+
run: |
58+
set -x
59+
sleep 3
60+
docker ps
61+
docker logs clickhouse-test
62+
curl -i 'http://localhost:8123/' --data-binary 'SELECT * FROM system.build_options'
5563
{% endif %}
5664

5765
{% if needs_redis %}

0 commit comments

Comments
 (0)