Skip to content

Commit 7f2777f

Browse files
committed
Export dbt logs as artifacts in integration test workflows
1 parent cf2fc02 commit 7f2777f

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/integration.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ jobs:
4545
- name: Run UC Cluster Functional Tests
4646
run: DBT_TEST_USER=notnecessaryformosttests@example.com DBT_DATABRICKS_LOCATION_ROOT=$DBT_DATABRICKS_LOCATION_ROOT DBT_DATABRICKS_HOST_NAME=$DBT_DATABRICKS_HOST_NAME DBT_DATABRICKS_UC_CLUSTER_HTTP_PATH=$DBT_DATABRICKS_UC_CLUSTER_HTTP_PATH DBT_DATABRICKS_CLIENT_ID=$DBT_DATABRICKS_CLIENT_ID DBT_DATABRICKS_CLIENT_SECRET=$DBT_DATABRICKS_CLIENT_SECRET hatch -v run uc-cluster-e2e
4747

48+
- name: Upload UC Cluster Test Logs
49+
if: always()
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: uc-cluster-test-logs
53+
path: logs/
54+
retention-days: 30
55+
4856
run-sqlwarehouse-e2e-tests:
4957
runs-on: ubuntu-latest
5058
environment: azure-prod
@@ -77,6 +85,14 @@ jobs:
7785
- name: Run Sql Endpoint Functional Tests
7886
run: DBT_TEST_USER=notnecessaryformosttests@example.com DBT_DATABRICKS_LOCATION_ROOT=$DBT_DATABRICKS_LOCATION_ROOT DBT_DATABRICKS_HOST_NAME=$DBT_DATABRICKS_HOST_NAME DBT_DATABRICKS_UC_CLUSTER_HTTP_PATH=$DBT_DATABRICKS_UC_CLUSTER_HTTP_PATH DBT_DATABRICKS_CLIENT_ID=$DBT_DATABRICKS_CLIENT_ID DBT_DATABRICKS_CLIENT_SECRET=$DBT_DATABRICKS_CLIENT_SECRET hatch -v run sqlw-e2e
7987

88+
- name: Upload SQL Endpoint Test Logs
89+
if: always()
90+
uses: actions/upload-artifact@v4
91+
with:
92+
name: sql-endpoint-test-logs
93+
path: logs/
94+
retention-days: 30
95+
8096
run-cluster-e2e-tests:
8197
runs-on: ubuntu-latest
8298
environment: azure-prod
@@ -105,3 +121,11 @@ jobs:
105121

106122
- name: Run Cluster Functional Tests
107123
run: DBT_TEST_USER=notnecessaryformosttests@example.com DBT_DATABRICKS_LOCATION_ROOT=$DBT_DATABRICKS_LOCATION_ROOT DBT_DATABRICKS_HOST_NAME=$DBT_DATABRICKS_HOST_NAME DBT_DATABRICKS_HTTP_PATH=$DBT_DATABRICKS_CLUSTER_HTTP_PATH DBT_DATABRICKS_CLIENT_ID=$DBT_DATABRICKS_CLIENT_ID DBT_DATABRICKS_CLIENT_SECRET=$DBT_DATABRICKS_CLIENT_SECRET hatch -v run cluster-e2e
124+
125+
- name: Upload Cluster Test Logs
126+
if: always()
127+
uses: actions/upload-artifact@v4
128+
with:
129+
name: cluster-test-logs
130+
path: logs/
131+
retention-days: 30

0 commit comments

Comments
 (0)