fix: yaml stdio per-connection, iac catalog path, makefile port
All checks were successful
Build and Deploy iLSP / test (push) Successful in 25s
Build and Deploy iLSP / build-and-deploy (push) Successful in 1m37s

- yaml-language-server: rewrite to stdio per WebSocket (fixes crash loop)
  vscode-jsonrpc v9 createServerSocketTransport is a TCP client, not server
  now spawns yaml-language-server --stdio per connection via asyncio subprocess

- bicep/modules.py: add /iac_source_catalog.json as first path in _IAC_SOURCE_PATHS
  Dockerfile copies to /iac_source_catalog.json but path wasn't listed

- server.py: remove YAML_LSP_PORT daemon (no longer needed with stdio mode)

- Makefile: add -e HTTP_PORT=$(HEALTH_PORT) to all docker run commands
  server defaulted to :8000 but Makefile exposed :2089 with no override
This commit is contained in:
Henrik Jess Nielsen
2026-05-10 16:37:42 +02:00
parent 2a1717ff81
commit ae751f944c
5 changed files with 52 additions and 38 deletions

View File

@@ -28,6 +28,7 @@ run: stop ## Build and start container (rebuilds image)
-p $(PYTHON_PORT):$(PYTHON_PORT) \
-p $(BICEP_PORT):$(BICEP_PORT) \
-p $(HEALTH_PORT):$(HEALTH_PORT) \
-e HTTP_PORT=$(HEALTH_PORT) \
-e DEVOPS_MCP_URL=$(DEVOPS_MCP_URL) \
-e PYTHONUNBUFFERED=1 \
$(IMAGE):$(TAG)
@@ -43,6 +44,7 @@ run-quick: ## Start container without rebuilding image
-p $(PYTHON_PORT):$(PYTHON_PORT) \
-p $(BICEP_PORT):$(BICEP_PORT) \
-p $(HEALTH_PORT):$(HEALTH_PORT) \
-e HTTP_PORT=$(HEALTH_PORT) \
-e PYTHONUNBUFFERED=1 \
$(IMAGE):$(TAG)
@sleep 5
@@ -55,6 +57,7 @@ run-with-data: ## Start container with local data dir mounted (test volum
-p $(PYTHON_PORT):$(PYTHON_PORT) \
-p $(BICEP_PORT):$(BICEP_PORT) \
-p $(HEALTH_PORT):$(HEALTH_PORT) \
-e HTTP_PORT=$(HEALTH_PORT) \
-e PYTHONUNBUFFERED=1 \
-v "$(DEVOPS_MCP_REPO):/data:ro" \
$(IMAGE):$(TAG)