Skip to content

Commit

Permalink
Consolidate Databricks testing to a single action
Browse files Browse the repository at this point in the history
For historical reasons we were testing both cluster connection
types and sql warehouse connection types. Since cutting our
connection management over to dbt adapters and removing all DDL
from MetricFlow we no longer need to test in both runtimes, so
this removes the cluster connection tests and brings our
Databricks environment variable in line with the other engines.
  • Loading branch information
tlento authored and sarbmeetka committed Nov 3, 2023
1 parent 798b34d commit 2f03cc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
uses: ./.github/actions/run-mf-tests
with:
python-version: ${{ env.PYTHON_VERSION }}
mf_sql_engine_url: ${{ secrets.MF_DATABRICKS_SQL_WAREHOUSE_URL }}
mf_sql_engine_url: ${{ secrets.MF_DATABRICKS_URL }}
mf_sql_engine_password: ${{ secrets.MF_DATABRICKS_PWD }}
parallelism: 1
make-target: "populate-persistent-source-schema-databricks"
Expand Down
25 changes: 3 additions & 22 deletions .github/workflows/cd-sql-engine-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,28 +72,9 @@ jobs:
additional-pytest-options: ${{ env.ADDITIONAL_PYTEST_OPTIONS }}
make-target: "test-bigquery"

databricks-cluster-tests:
databricks-tests:
environment: DW_INTEGRATION_TESTS
name: Databricks Cluster Tests
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'run_mf_sql_engine_tests' }}
runs-on: ubuntu-latest
steps:
- name: Check-out the repo
uses: actions/checkout@v3

- name: Test w/ Python Python ${{ env.PYTHON_VERSION }}
uses: ./.github/actions/run-mf-tests
with:
python-version: ${{ env.PYTHON_VERSION }}
mf_sql_engine_url: ${{ secrets.MF_DATABRICKS_CLUSTER_URL }}
mf_sql_engine_password: ${{ secrets.MF_DATABRICKS_PWD }}
parallelism: ${{ env.EXTERNAL_ENGINE_TEST_PARALLELISM }}
additional-pytest-options: ${{ env.ADDITIONAL_PYTEST_OPTIONS }}
make-target: "test-databricks"

databricks-sql-warehouse-tests:
environment: DW_INTEGRATION_TESTS
name: Databricks SQL Warehouse Tests
name: Databricks Tests
if: ${{ github.event.action != 'labeled' || github.event.label.name == 'run_mf_sql_engine_tests' }}
runs-on: ubuntu-latest
steps:
Expand All @@ -104,7 +85,7 @@ jobs:
uses: ./.github/actions/run-mf-tests
with:
python-version: ${{ env.PYTHON_VERSION }}
mf_sql_engine_url: ${{ secrets.MF_DATABRICKS_SQL_WAREHOUSE_URL }}
mf_sql_engine_url: ${{ secrets.MF_DATABRICKS_URL }}
mf_sql_engine_password: ${{ secrets.MF_DATABRICKS_PWD }}
parallelism: ${{ env.EXTERNAL_ENGINE_TEST_PARALLELISM }}
additional-pytest-options: ${{ env.ADDITIONAL_PYTEST_OPTIONS }}
Expand Down

0 comments on commit 2f03cc0

Please sign in to comment.