Skip to content

Commit f5cc190

Browse files
authored
Merge pull request #292 from ClickHouse/cloud-tests-against-smt
Cloud tests against smt
2 parents 506bd18 + fe26a93 commit f5cc190

File tree

3 files changed

+9
-12
lines changed

3 files changed

+9
-12
lines changed

.github/workflows/test_cloud.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ on: # yamllint disable-line rule:truthy
88
workflow_dispatch:
99

1010
jobs:
11-
cloud_tests:
12-
name: ClickHouse Cloud Tests
11+
cloud_smt_tests:
12+
name: ClickHouse Cloud SharedMergeTree Tests
1313
runs-on: ubuntu-latest
1414

1515
env:
1616
PYTHONPATH: dbt
17-
DBT_CH_TEST_HOST: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_HOST }}
18-
DBT_CH_TEST_PASSWORD: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_PASSWORD }}
17+
DBT_CH_TEST_HOST: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_HOST_SMT }}
18+
DBT_CH_TEST_PASSWORD: ${{ secrets.INTEGRATIONS_TEAM_TESTS_CLOUD_PASSWORD_SMT }}
1919
DBT_CH_TEST_CLUSTER_MODE: true
2020
DBT_CH_TEST_CLOUD: true
2121

2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v3
2525

2626
- name: Setup Python 3.11
27-
uses: actions/setup-python@v5
27+
uses: actions/setup-python@v4
2828
with:
2929
python-version: '3.11'
3030

dbt/include/clickhouse/macros/materializations/dictionary.sql

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@
9191
{% if credentials.get("database") -%}
9292
db '{{ credentials.get("database") }}'
9393
{%- endif %}
94-
{% if credentials.get("host") and credentials.get("host") != 'localhost' -%}
95-
host '{{ credentials.get("host") }}'
96-
{% if credentials.get("port") -%}
97-
port '{{ credentials.get("port") }}'
98-
{%- endif %}
99-
{%- endif %}
10094
{%- if table is not none %}
10195
table '{{ table }}'
10296
{% else %}

tests/integration/adapter/persist_docs/test_persist_docs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ def project_config_update(self):
179179

180180
@pytest.fixture(scope="class")
181181
def run_has_comments(self, project):
182+
if os.environ.get('DBT_CH_TEST_CLOUD', '').lower() in ('1', 'true', 'yes'):
183+
pytest.skip('Not running comment test for cloud')
184+
182185
def fixt():
183186
run_dbt()
184187
run_dbt(["docs", "generate"])

0 commit comments

Comments
 (0)