Files
headquarter/apps/api/tests/unit/.pi-map.index.md
T
Developer fe82a248ec fix: pi container repo mount target and npm update permissions
- Add Alembic migration to update built-in pi-agent manifest:
  * repo mount target from /workspace to ~/{{WORKSPACE_NAME}}
  * keep /workspace as compatibility symlink via working_dir
  * update startup chown target to $HOME/$WORKSPACE_NAME
- Pass REPO_NAME and WORKSPACE_NAME to compile_compose from instance_service
- Substitute {{WORKSPACE_NAME}} in manifest mount targets and expose it as
  a container env var so the entrypoint can create the /workspace symlink
- Generate entrypoint workspace symlink from runtime WORKSPACE_NAME env var
- Install npm_global packages into {home_dir}/.npm-global with PATH so the
  non-root container user can update global packages
- Update manifest compiler unit tests for the new behavior

Quality gates:
- pytest tests/unit: 207 passed
- ruff: clean on changed files
- mypy: clean on changed files
- alembic heads: single head
2026-06-14 18:45:32 +00:00

1.1 KiB

apps/api/tests/unit (index)

dir: apps/api/tests/unit

role

Contains unit tests for the API application's core services, utilities, and infrastructure components.

parent

index: apps/api/tests/.pi-map.index.md map: apps/api/tests/.pi-map.md

children

files

  • __init__.py
  • test_alembic_migrations.py
  • test_config.py
  • test_config_profile_resolver.py
  • test_docker_build.py
  • test_docker_service.py
  • test_event_bus.py
  • test_file_service.py
  • test_git_operations.py
  • test_git_service.py
  • test_git_url_parser.py
  • test_health_monitor.py
  • test_home_path_expansion.py
  • test_instance_service.py
  • test_lifecycle_hooks.py
  • test_manifest_compiler.py
  • test_migration_metadata.py
  • test_monitoring_models.py
  • test_notification_service.py
  • test_notifications_api_routes.py
  • test_permission_fixer.py
  • test_readiness_probe.py
  • test_ssh_keys.py

index: apps/api/tests/unit/.pi-map.index.md map: apps/api/tests/unit/.pi-map.md

workflows

  • change unit behavior read: __init__.py, test_alembic_migrations.py, test_config.py
  • change unit config read: test_config.py, test_config_profile_resolver.py

dirty