sqlmesh icon indicating copy to clipboard operation
sqlmesh copied to clipboard

CI Fix - Fabric CI Currently Failing

Open cmgoffena13 opened this issue 3 months ago • 2 comments

Link: https://github.com/SQLMesh/sqlmesh/actions/runs/32525879293/job/96916106956

Two Issues that are failing the Fabric Tests. These are code based.

AI Notes

1

Failing tests tests/core/engine_adapter/integration/test_integration_fabric.py::test_create_drop_catalog tests/core/engine_adapter/integration/test_integration.py::test_janitor[fabric-catalog]

What’s Wrong Creating a Fabric warehouse that already exists should do nothing. Fabric used to return HTTP 400 for that; now it returns 409. Our code only handles 400, so it crashes.

Possible Fix In sqlmesh/core/engine_adapter/fabric.py (create_warehouse): treat “already exists” (ItemDisplayNameAlreadyInUse) on 409 the same way as 400.

2

Failing tests tests/core/engine_adapter/integration/test_integration.py::test_catalog_operations[fabric] tests/core/engine_adapter/integration/test_integration.py::test_get_data_objects[[query]fabric] tests/core/engine_adapter/integration/test_integration.py::test_get_data_objects[[df-pandas]fabric]

What’s Wrong On Fabric, the default warehouse is stored as None. Other code expects a real name like ci_050fce7a, so .lower() crashes and get_data_objects returns objects with no catalog.

Possible Fix In sqlmesh/core/engine_adapter/fabric.py: make get_current_catalog() return the real default DB name when you’re on default, instead of None.

cmgoffena13 avatar Aug 21 '26 22:08 cmgoffena13

Hi, I'd like to work on this. I'll submit a PR shortly.

nightcityblade avatar Aug 24 '26 03:08 nightcityblade

Hey @nightcityblade -- appreciate your efforts on the other issue you closed. Normally I'd say take your time, but since this is breaking our CI I'd appreciate it if something can be submitted within the next month. Let me know if that's feasible for you; if not, I can start taking a look

cmgoffena13 avatar Aug 31 '26 22:08 cmgoffena13