Commit Graph

4 Commits

Author SHA1 Message Date
aitbc
a2f84648ab ci: standardize Python venv setup across all workflows using setup-python-venv.sh script
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Successful in 9s
CLI Tests / test-cli (push) Failing after 6m49s
Integration Tests / test-service-integration (push) Successful in 2m22s
Package Tests / Python package - aitbc-agent-sdk (push) Failing after 26s
Package Tests / Python package - aitbc-core (push) Failing after 10s
Package Tests / Python package - aitbc-crypto (push) Failing after 5s
Package Tests / Python package - aitbc-sdk (push) Failing after 2s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 7s
Package Tests / JavaScript package - aitbc-token (push) Successful in 16s
Production Tests / Production Integration Tests (push) Failing after 1m21s
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Failing after 13s
Staking Tests / test-staking-service (push) Failing after 1m13s
Staking Tests / test-staking-integration (push) Has been skipped
Staking Tests / test-staking-contract (push) Has been skipped
Staking Tests / run-staking-test-runner (push) Has been skipped
Replaced manual venv creation and pip install commands with calls to scripts/ci/setup-python-venv.sh across all CI workflows. The script provides consistent venv setup with configurable options for requirements installation, copy mode, and extra packages.

- Changed from manual `python3 -m venv` + `pip install` to setup-python-venv.sh in all workflows
- Added --skip-requirements flag where workflows don't need requirements
2026-04-19 21:05:26 +02:00
aitbc
8495b558ea fix: correct uvicorn module path from src.app.main to app.main in production tests
Some checks failed
Production Tests / Production Integration Tests (push) Failing after 1m12s
Changed uvicorn application path from src.app.main:app to app.main:app in both
startup and cleanup steps to match the actual module structure where src is
already in PYTHONPATH.
2026-04-19 19:54:28 +02:00
aitbc
22a2597e23 fix: add Redis installation step and improve aitbc_crypto mocking in tests
Some checks failed
Production Tests / Production Integration Tests (push) Failing after 1m16s
Python Tests / test-python (push) Failing after 3m33s
- Added Redis server installation step in production-tests.yml workflow
  - Checks if Redis binaries are already available before installing
  - Installs redis-server package if needed
- Improved aitbc_crypto mocking in conftest.py
  - Try importing real aitbc_crypto module first before mocking
  - Only mock functions if they don't already exist
  - Prevents overriding real implementations when aitbc_crypto is available
2026-04-19 19:49:40 +02:00
aitbc
3f98f3f7bf ci: add service host discovery and strict policy docs validation
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Failing after 5s
CLI Tests / test-cli (push) Failing after 3m17s
Documentation Validation / validate-docs (push) Successful in 8s
Documentation Validation / validate-policies-strict (push) Failing after 3s
Integration Tests / test-service-integration (push) Failing after 1s
Package Tests / Python package - aitbc-agent-sdk (push) Successful in 30s
Package Tests / Python package - aitbc-core (push) Failing after 11s
Package Tests / Python package - aitbc-crypto (push) Failing after 11s
Package Tests / Python package - aitbc-sdk (push) Failing after 12s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 6s
Package Tests / JavaScript package - aitbc-token (push) Failing after 18s
Production Tests / Production Integration Tests (push) Failing after 11s
Python Tests / test-python (push) Failing after 2m54s
Security Scanning / security-scan (push) Failing after 48s
- Add multi-candidate host discovery (localhost, host.docker.internal, gateway) in api-endpoint-tests
- Pass discovered service host via AITBC_API_HOST environment variable to test script
- Update test_api_endpoints.py to use AITBC_API_HOST for all service URLs
- Add validate-policies-strict job to docs-validation workflow for policy Markdown files
- Add job names to package-tests matrix for better CI output clarity
- Add --import
2026-04-18 12:28:19 +02:00