Files
aitbc/.gitea
aitbc1 6c7b56e086
All checks were successful
audit / audit (push) Has been skipped
ci-cd / build (push) Has been skipped
ci / build (push) Has been skipped
autofix / fix (push) Has been skipped
python-tests / test (push) Successful in 23s
python-tests / test-specific (push) Has been skipped
security-scanning / audit (push) Has been skipped
test / test (push) Has been skipped
ci-cd / deploy (push) Has been skipped
ci / deploy (push) Has been skipped
fix: add missing dependencies and improve import path resolution
IMPORT FIX: Add sqlmodel and comprehensive PYTHONPATH setup

Issues identified from test run:
- ModuleNotFoundError: No module named 'sqlmodel'
- ModuleNotFoundError: No module named 'src' (agent-protocols)
- ModuleNotFoundError: No module named 'aitbc' (blockchain-node)

Solutions applied:
1. Add missing dependencies:
   - sqlmodel (for blockchain-node database)
   - sqlalchemy (for sqlmodel dependency)

2. Improve PYTHONPATH with specific paths:
   - /opt/gitea-runner/workspace/repo/apps/agent-protocols/src
   - /opt/gitea-runner/workspace/repo/apps/blockchain-node/src
   - /opt/gitea-runner/workspace/repo/apps/coordinator-api/src
   - /opt/gitea-runner/workspace/repo/cli
   - /opt/gitea-runner/workspace/repo/packages/py/aitbc-crypto/src
   - /opt/gitea-runner/workspace/repo/packages/py/aitbc-sdk/src

3. Applied to both jobs (test and test-specific)

Expected results:
- sqlmodel import errors resolved
- src imports resolved for agent-protocols
- aitbc imports resolved for blockchain-node
- Better import resolution across all apps
- More tests should be able to run successfully

This addresses the specific import errors seen in the test run
and provides comprehensive import path coverage for the complex project structure.
2026-03-27 20:43:27 +01:00
..