Skip to content

Commit 79c041b

Browse files
committed
Chore(fabric): Enable integration tests
1 parent acf7f7e commit 79c041b

File tree

4 files changed

+29
-7
lines changed

4 files changed

+29
-7
lines changed

.circleci/continue_config.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,13 @@ workflows:
303303
- redshift
304304
- bigquery
305305
- clickhouse-cloud
306-
- athena
307-
# todo: enable fabric when cicd catalog create/drop implemented in manage-test-db.sh
308-
#- fabric
306+
- athena
307+
- fabric
309308
- gcp-postgres
310-
filters:
311-
branches:
312-
only:
313-
- main
309+
#filters:
310+
# branches:
311+
# only:
312+
# - main
314313
- ui_style
315314
- ui_test
316315
- vscode_test

.circleci/manage-test-db.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,26 @@ gcp-postgres_down() {
133133
gcp-postgres_exec "drop database $1"
134134
}
135135

136+
# Fabric
137+
fabric_init() {
138+
python --version #note: as at 2025-08-20, ms-fabric-cli is pinned to Python >= 3.10, <3.13
139+
pip install ms-fabric-cli
140+
141+
# to prevent the '[EncryptionFailed] An error occurred with the encrypted cache.' error
142+
# ref: https://microsoft.github.io/fabric-cli/#switch-to-interactive-mode-optional
143+
fab config set encryption_fallback_enabled true
136144

145+
echo "Logging in to Fabric"
146+
fab auth login -u $FABRIC_CLIENT_ID -p $FABRIC_CLIENT_SECRET --tenant $FABRIC_TENANT_ID
147+
}
148+
149+
fabric_up() {
150+
fab create "SQLMesh CircleCI.Workspace/$1.Warehouse"
151+
}
152+
153+
fabric_down() {
154+
fab rm -f "SQLMesh CircleCI.Workspace/$1.Warehouse" || true
155+
}
137156

138157
INIT_FUNC="${ENGINE}_init"
139158
UP_FUNC="${ENGINE}_up"

docs/integrations/engines/fabric.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Fabric
22

3+
!!! info
4+
The Fabric engine adapter is a community contribution. Due to this, only limited community support is available.
5+
36
## Local/Built-in Scheduler
47
**Engine Adapter Type**: `fabric`
58

tests/core/engine_adapter/integration/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ gateways:
198198
workspace_id: {{ env_var("FABRIC_WORKSPACE_ID") }}
199199
odbc_properties:
200200
Authentication: ActiveDirectoryServicePrincipal
201+
check_import: false
201202
state_connection:
202203
type: duckdb
203204

0 commit comments

Comments
 (0)