@@ -91,22 +91,21 @@ jobs:
9191 environment = os.environ['ENVIRONMENT']
9292
9393 # Deployment uses a 2-phase approach to satisfy item dependencies.
94- # fabric-cicd resolves \$items dynamic variables (e.g.,
95- # \$items.Lakehouse.PatternsLakehouse.\$id) by querying the live workspace,
96- # so the referenced item must already exist .
94+ # fabric-cicd caches workspace state once at the start of each
95+ # publish_all_items() call, so items deployed within the same call
96+ # are not visible to later items' logicalId or \$items resolution .
9797 #
98- # Phase 1: Lakehouse only — must exist before Phase 2 so that
99- # parameter.yml rules referencing \$items.Lakehouse resolve.
100- # Phase 2: All remaining items (Ontology, DataAgent, Notebook, etc.).
101- # Ontology and DataAgent use logicalId references resolved by
102- # Fabric at runtime, so they have no deploy-time ordering needs.
98+ # Phase 1: Lakehouse + Ontology
99+ # - Lakehouse must exist so parameter.yml \$items.Lakehouse rules resolve.
100+ # - Ontology must exist so DataAgent's logicalId reference resolves.
101+ # Phase 2: All remaining items (DataAgent, Notebook, SemanticModel, etc.).
103102 #
104- # On subsequent deployments, all items already exist and phases are
103+ # On subsequent deployments all items already exist and phases are
105104 # idempotent — they simply update in place.
106105
107- phase1_types = ['Lakehouse']
106+ phase1_types = ['Lakehouse', 'Ontology' ]
108107
109- print('Phase 1: Deploying Lakehouse...')
108+ print('Phase 1: Deploying Lakehouse + Ontology ...')
110109 phase1_ws = FabricWorkspace(
111110 repository_directory=repo_dir,
112111 workspace_id=workspace_id,
0 commit comments