chore: add diagnostic logging around workspace git clone

The workspace creation endpoint returns 500 but the actual error is not
visible. Add explicit error logging when GitService.clone fails and info
logging when git creates a directory name different from the one derived
from the remote URL.

Quality gates:
- pytest tests/unit: 219 passed
- mypy: clean on changed files
This commit is contained in:
Developer
2026-06-15 10:04:34 +00:00
parent 8f648264f1
commit 83928d0f02
13 changed files with 47 additions and 23 deletions
@@ -2,12 +2,14 @@
dir: apps/api/src/services/shared
## role
Provides common infrastructure and utility services used across the API backend, including cross-cutting concerns like request tracing, file operations, notifications, Docker container management, and workspace lifecycle handling.
Provides common infrastructure services used across the API backend, including security, I/O, container operations, and workspace lifecycle management.
## parent
index: apps/api/src/services/.pi-map.index.md
map: apps/api/src/services/.pi-map.md
## children
-
- apps/api/src/services/shared/.ruff_cache
index: apps/api/src/services/shared/.ruff_cache/.pi-map.index.md
map: apps/api/src/services/shared/.ruff_cache/.pi-map.md
## files
- __init__.py
- correlation.py
@@ -24,5 +26,7 @@ map: apps/api/src/services/shared/.pi-map.md
## workflows
- change shared behavior
read: __init__.py, correlation.py, file_service.py
- explore shared subdirectories
index: apps/api/src/services/shared/.ruff_cache/.pi-map.index.md
## dirty
-