6e33e8e4e9
The pi-agent manifest still declared an explicit repo mount with
{{WORKSPACE_NAME}}, making the mount target dependent on tool config. The
instance service now synthesizes the repo mount, so the manifest no longer
needs the explicit mount.
- Add Alembic migration 2026_06_15_090500 to remove the source_type: repo
mount from the built-in pi-agent manifest
- Add _get_repository_mount_name() helper to derive the workspace directory
name from the repository remote URL (matching git clone behavior) and
fall back to the user-provided repository name
- Use the helper for WORKSPACE_NAME/REPO_NAME in manifest, legacy dockerfile,
and legacy compose template paths
- Update unit tests for the new migration and helper
Quality gates:
- pytest tests/unit: 218 passed
- ruff: clean on changed files
- mypy: clean on changed files
- alembic heads: single head
37 lines
1.1 KiB
Markdown
37 lines
1.1 KiB
Markdown
# apps/api/tests (index)
|
|
dir: apps/api/tests
|
|
|
|
## role
|
|
Provides shared testing infrastructure and reusable fixtures for the API test suite.
|
|
## parent
|
|
index: apps/api/.pi-map.index.md
|
|
map: apps/api/.pi-map.md
|
|
## children
|
|
- apps/api/tests/api
|
|
index: apps/api/tests/api/.pi-map.index.md
|
|
map: apps/api/tests/api/.pi-map.md
|
|
- apps/api/tests/integration
|
|
index: apps/api/tests/integration/.pi-map.index.md
|
|
map: apps/api/tests/integration/.pi-map.md
|
|
- apps/api/tests/services
|
|
index: apps/api/tests/services/.pi-map.index.md
|
|
map: apps/api/tests/services/.pi-map.md
|
|
- apps/api/tests/system
|
|
index: apps/api/tests/system/.pi-map.index.md
|
|
map: apps/api/tests/system/.pi-map.md
|
|
- apps/api/tests/unit
|
|
index: apps/api/tests/unit/.pi-map.index.md
|
|
map: apps/api/tests/unit/.pi-map.md
|
|
## files
|
|
- conftest.py
|
|
## links
|
|
index: apps/api/tests/.pi-map.index.md
|
|
map: apps/api/tests/.pi-map.md
|
|
## workflows
|
|
- change tests behavior
|
|
read: conftest.py
|
|
- explore tests subdirectories
|
|
index: apps/api/tests/api/.pi-map.index.md, apps/api/tests/integration/.pi-map.index.md, apps/api/tests/services/.pi-map.index.md
|
|
## dirty
|
|
-
|