bd94cc9bbf
The previous commit moved the pi-agent repo mount from /workspace to
/home/user/{repo_name}. This exposed a permission bug: the Dockerfile
creates /workspace as a root-owned symlink in the image, and the
non-root entrypoint could not replace it because / is owned by root.
- Update compile_entrypoint to recreate /workspace via sudo when running
as the container user, or directly when running as root
- Add unit test covering sudo/root symlink creation
- Update OpenSpec change docs with the additional root cause
Quality gates:
- pytest tests/unit: 208 passed
- ruff: clean on changed files
- mypy: clean on changed files
- alembic heads: single head
1.1 KiB
1.1 KiB
apps/api/tests (index)
dir: apps/api/tests
role
Provides shared test infrastructure and fixtures for the FastAPI API application.
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