Commit Graph

1063 Commits

Author SHA1 Message Date
aitbc
391ba4ca2e fix: add nosec comments for B104 in config.py
Some checks failed
Integration Tests / test-service-integration (push) Successful in 11s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Successful in 10s
Security Scanning / security-scan (push) Successful in 21s
Blockchain Synchronization Verification / sync-verification (push) Failing after 5s
- Add nosec B104 comments for rpc_bind_host and p2p_bind_host
- These are intentional defaults for distributed blockchain
- P2P nodes need to accept connections from peers
- RPC needs to be accessible from other machines in cluster
- Suppresses Bandit security scan warnings
2026-04-20 21:23:10 +02:00
aitbc
ea12226a5d fix: exclude tests/production from integration-tests
All checks were successful
Integration Tests / test-service-integration (push) Successful in 11s
- Add --ignore=tests/production to pytest command
- Tests in production/ are localhost-backed integration tests
- Not suitable for CI environment
- Fixes AssertionError for missing /opt/aitbc/services/monitor.py
2026-04-20 21:21:47 +02:00
aitbc
29b6ee93bb fix: add aitbc-agent-coordinator to integration-tests workflow
Some checks failed
Integration Tests / test-service-integration (push) Failing after 17s
- Add aitbc-agent-coordinator to service start step
- Add aitbc-agent-coordinator to service status report
- Port 9001 is used by agent-coordinator service
- Fixes port 9001 not ready error in integration tests
2026-04-20 21:20:19 +02:00
aitbc
84b784fc2b fix: add port 9001 to integration-tests service readiness check
All checks were successful
Integration Tests / test-service-integration (push) Successful in 38s
- Add port 9001 to service readiness check in integration-tests.yml
- Fixes ConnectionError in test_agent_coordinator_api.py
- Test expects coordinator-api on port 9001 but workflow wasn't waiting for it
2026-04-20 21:18:39 +02:00
aitbc
f06bbff370 fix: add PyJWT to integration-tests extra-packages
Some checks failed
Integration Tests / test-service-integration (push) Failing after 24s
- Add PyJWT to --extra-packages in integration-tests.yml
- Fixes ModuleNotFoundError in test_jwt_authentication.py
- Test imports jwt at line 8 but package was missing from cached environment
2026-04-20 21:17:15 +02:00
aitbc
cdcca9852f fix: add sqlmodel to integration-tests extra-packages
Some checks failed
Integration Tests / test-service-integration (push) Failing after 25s
- Add sqlmodel to --extra-packages in integration-tests.yml
- Fixes ModuleNotFoundError in test_staking_lifecycle.py
- Test imports sqlmodel at line 20 but package was missing from cached environment
2026-04-20 21:16:02 +02:00
aitbc
c9ce95749a fix: add sqlalchemy to integration-tests extra-packages
Some checks failed
Integration Tests / test-service-integration (push) Failing after 23s
- Add sqlalchemy to --extra-packages in integration-tests.yml
- Fixes ModuleNotFoundError in test_staking_lifecycle.py
- Test imports sqlalchemy at line 18 but package was missing from cached environment
2026-04-20 21:14:22 +02:00
aitbc
4f157e21ee feat: implement automatic bulk sync for blockchain nodes
Some checks failed
Integration Tests / test-service-integration (push) Failing after 8s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Successful in 17s
Security Scanning / security-scan (push) Failing after 37s
Blockchain Synchronization Verification / sync-verification (push) Failing after 2s
- Add auto_sync_enabled, auto_sync_threshold, auto_sync_max_retries config
- Add min_bulk_sync_interval for rate limiting
- Implement gap detection in process_blocks() with automatic bulk sync trigger
- Add rate limiting to ChainSync.bulk_import_from() to prevent sync loops
- Automatic bulk sync triggers when gap > threshold (default 10 blocks)
- Retries block import after bulk sync completes
- Logs sync events for monitoring and debugging
2026-04-20 21:11:01 +02:00
aitbc
1053431ea6 fix: remove bc command dependency from stress test script
Some checks failed
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 6s
P2P Network Verification / p2p-verification (push) Successful in 3s
Blockchain Synchronization Verification / sync-verification (push) Failing after 2s
- Replace bc with integer comparison for wallet balance check
- Replace bc with integer calculation for TPS monitoring
- Replace bc with integer calculation for error rate
- Fixes 'bc: command not found' error in stress test workflow
2026-04-20 20:54:17 +02:00
aitbc
84cb5a3672 fix: simplify wallet address and balance CLI commands
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 3s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
P2P Network Verification / p2p-verification (push) Successful in 2s
- Remove JSON parsing from get_wallet_address function
- Remove JSON parsing from get_wallet_balance function
- Use direct CLI output instead of --output json parsing
- Fixes wallet address retrieval failure in cross-node transaction test
2026-04-20 20:52:48 +02:00
aitbc
f6074ec624 feat: add medium-priority multi-node blockchain testing workflows
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 3s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
P2P Network Verification / p2p-verification (push) Successful in 2s
- Add cross-node transaction testing workflow (manual dispatch)
- Add node failover simulation workflow (manual dispatch, check logic only)
- Add multi-node stress testing workflow (manual dispatch)
- All workflows use only RPC endpoints (no SSH access)
- All workflows run on manual dispatch only
- No remediation steps (monitoring/testing only)
- Cross-node transaction testing uses real transactions from test wallet
- Failover simulation uses check logic only (no actual shutdown)
- Stress testing generates real transactions with configurable count/rate
- Comprehensive logging to /var/log/aitbc/
- Proper wallet creation and cleanup
2026-04-20 20:48:10 +02:00
aitbc
6db8628c26 fix: correct chain ID parsing regex in sync verification
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 4s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
P2P Network Verification / p2p-verification (push) Successful in 3s
- Fix regex to extract actual chain ID value from supported_chains array
- Previously extracted 'supported_chains' field name instead of value
- Now correctly extracts chain ID from ["ait-devnet"] format
2026-04-20 20:35:18 +02:00
aitbc
9bc9cdefc8 refactor: remove SSH dependencies from P2P and sync verification scripts
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 3s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
P2P Network Verification / p2p-verification (push) Successful in 3s
- Remove SSH-based P2P peer checks and connectivity tests
- Remove SSH-based P2P log checks and remediation
- Remove SSH-based force sync remediation from sync verification
- P2P verification now only checks Redis gossip backend
- Sync verification skips remediation (requires SSH for chain.db copy)
- All scripts now use only RPC endpoints, no SSH access needed
2026-04-20 20:33:17 +02:00
aitbc
adb719efcc refactor: remove SSH dependencies from blockchain health check
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 3s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 7s
P2P Network Verification / p2p-verification (push) Has been cancelled
- Remove SSH-based service status checks (use RPC health instead)
- Remove SSH-based resource usage checks
- Remove SSH-based remediation functions
- Remove ssh_exec function entirely
- Script now uses only RPC endpoints for health checks
- gitea-runner no longer needs SSH access to other nodes
2026-04-20 20:30:48 +02:00
aitbc
7d19ec110e fix: use IP address for local node detection in ssh_exec
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 3s
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
- Compare node IP against local IP instead of hostname
- Fixes SSH permission issues when running on gitea-runner
- gitea-runner (10.1.223.98) should execute commands directly for aitbc2
2026-04-20 20:28:35 +02:00
aitbc
717fd4cb7c fix: handle local node execution without SSH in blockchain health check
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 2s
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
- Detect when node is localhost or current hostname
- Execute commands directly on local node instead of using SSH
- Fixes SSH permission denied errors when checking services on local node
- gitea-runner runs the workflow, so it should check aitbc services directly
2026-04-20 20:26:04 +02:00
aitbc
5c8e2b379c fix: correct RPC endpoints in blockchain sync verification script
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 3s
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
- Use /rpc/head endpoint for block height instead of /blockchain/height
- Use /health endpoint for chain ID instead of /blockchain/chain-id
- Use /rpc/blocks/{height} endpoint for block hash instead of /blockchain/block/{height}/hash
- Fixes workflow failure due to incorrect RPC endpoint paths
2026-04-20 20:25:13 +02:00
aitbc
c5525d7345 feat: add multi-node blockchain monitoring workflows for 3-node network
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 9s
P2P Network Verification / p2p-verification (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
- Create multi-node blockchain health monitoring workflow
- Create P2P network verification workflow for all 3 nodes
- Create blockchain synchronization verification workflow
- Update blockchain-communication-test.sh to include aitbc2 (gitea-runner)
- Add shared scripts directory with health check, P2P verification, and sync verification scripts
- All workflows trigger on git push to main/develop branches
- Workflows run on gitea-runner (has SSH access to all nodes)
- Include automatic remediation for failed services and sync issues
- Sync threshold set to 10 blocks
- Logging to /var/log/aitbc/ and alerts in Gitea UI
2026-04-20 20:22:28 +02:00
aitbc
b656a26017 Merge dependabot pull request
Some checks failed
JavaScript SDK Tests / test-js-sdk (push) Successful in 12s
Package Tests / Python package - aitbc-agent-sdk (push) Successful in 19s
Package Tests / Python package - aitbc-core (push) Successful in 21s
Package Tests / Python package - aitbc-crypto (push) Successful in 10s
Package Tests / Python package - aitbc-sdk (push) Successful in 15s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 6s
Package Tests / JavaScript package - aitbc-token (push) Successful in 16s
Security Scanning / security-scan (push) Successful in 51s
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Successful in 19s
Smart Contract Tests / lint-solidity (push) Successful in 11s
Integration Tests / test-service-integration (push) Failing after 13m54s
2026-04-20 20:04:08 +02:00
Andreas Michael Fleckl
b8364f3467 Merge pull request #68 from oib/dependabot/npm_and_yarn/contracts/npm_and_yarn-84d155bf99
build(deps): bump the npm_and_yarn group across 3 directories with 4 updates
2026-04-20 17:02:16 +02:00
aitbc
d7d15c34b5 fix: add package name to contracts/package-lock.json
Added missing "name": "contracts" field to package-lock.json root object to properly identify the package in the lockfile.
2026-04-20 16:59:08 +02:00
aitbc
3c464d9fec docs: add Git Setup Configuration section with placeholder tokens
- Documented Gitea remote setup with HTTP token authentication
- Added credential storage and authentication method documentation
- Used placeholder variables instead of actual tokens
- Added security notes about token management
- Never commit actual tokens to version control
2026-04-20 16:51:12 +02:00
dependabot[bot]
452a692f2d build(deps): bump the npm_and_yarn group across 3 directories with 4 updates
Bumps the npm_and_yarn group with 2 updates in the /contracts directory: [lodash](https://github.com/lodash/lodash) and [cookie](https://github.com/jshttp/cookie).
Bumps the npm_and_yarn group with 1 update in the /packages/js/aitbc-sdk directory: [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite).
Bumps the npm_and_yarn group with 1 update in the /packages/solidity/aitbc-token directory: [lodash](https://github.com/lodash/lodash).


Updates `lodash` from 4.17.21 to 4.18.1
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.21...4.18.1)

Removes `cookie`

Updates `undici` from 5.29.0 to 6.25.0
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.29.0...v6.25.0)

Updates `undici` from 5.29.0 to 6.25.0
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.29.0...v6.25.0)

Updates `vite` from 8.0.3 to 8.0.9
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v8.0.9/packages/vite)

Updates `lodash` from 4.17.23 to 4.18.1
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.21...4.18.1)

Updates `lodash` from 4.17.23 to 4.18.1
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.21...4.18.1)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.18.1
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: cookie
  dependency-version: 
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: undici
  dependency-version: 6.25.0
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: undici
  dependency-version: 6.25.0
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: vite
  dependency-version: 8.0.9
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: lodash
  dependency-version: 4.18.1
  dependency-type: indirect
  dependency-group: npm_and_yarn
- dependency-name: lodash
  dependency-version: 4.18.1
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-20 14:40:00 +00:00
aitbc
78fa196ef2 docs: update GitHub workflow to reflect actual Gitea domain and fix security issues
- Updated Gitea domain from gitea.keisanki.net to gitea.bubuit.net
- Fixed GitHub remote to remove exposed token from URL
- Updated Gitea remote to use SSH instead of HTTP with token
- Updated all web interface URLs to use correct domain
- Clarified authentication methods for both remotes
2026-04-20 16:33:37 +02:00
aitbc
715bf57a22 docs: update blockchain README with new node setup and sync documentation
All checks were successful
Documentation Validation / validate-docs (push) Successful in 5s
Documentation Validation / validate-policies-strict (push) Successful in 4s
- Updated metadata (last updated date, file counts)
- Replaced auto-generated structure with manual index
- Added links to gitea-runner third node setup guide and blockchain sync troubleshooting docs
- Updated category overview to reflect actual blockchain operations content
2026-04-20 16:24:53 +02:00
aitbc
92f175c54f docs: improve gitea-runner CI debug workflow with ripgrep and failure markers
- Added ripgrep (rg) usage notes and preference over grep for targeted searches
- Updated log discovery examples to use rg with --fixed-strings for workflow/job name searches
- Added failure-marker search pattern (|Traceback|FAILED|etc.) for quick issue identification
- Replaced grep with rg in runner health checks (dmesg, journalctl)
- Added failure marker search to quick-start one-liner
- Preserved awk usage for tab
2026-04-20 13:21:19 +02:00
aitbc
3d4300924e Revert systemd ExecStart paths to use central venv (/opt/aitbc/venv/bin/python)
All checks were successful
Systemd Sync / sync-systemd (push) Successful in 10s
2026-04-20 13:20:23 +02:00
aitbc
456ba8ce9b fix: systemd ExecStart paths to use app-specific venvs
All checks were successful
Systemd Sync / sync-systemd (push) Successful in 4s
2026-04-20 13:10:28 +02:00
aitbc
e3804f84e4 feat: add app/data directory with consumer_gpu_profiles
All checks were successful
API Endpoint Tests / test-api-endpoints (push) Successful in 1m22s
Integration Tests / test-service-integration (push) Successful in 2m9s
Python Tests / test-python (push) Successful in 11s
Security Scanning / security-scan (push) Successful in 30s
2026-04-20 13:06:49 +02:00
aitbc
ca8b201f64 fix: coordinator-api systemd ExecStart path to use app-specific venv
All checks were successful
Systemd Sync / sync-systemd (push) Successful in 6s
2026-04-20 13:04:37 +02:00
aitbc
7a5f3487f3 ci: add job logging initialization to all remaining workflow files
All checks were successful
API Endpoint Tests / test-api-endpoints (push) Successful in 8s
CLI Tests / test-cli (push) Successful in 4s
Documentation Validation / validate-docs (push) Successful in 6s
Documentation Validation / validate-policies-strict (push) Successful in 2s
Integration Tests / test-service-integration (push) Successful in 2m9s
JavaScript SDK Tests / test-js-sdk (push) Successful in 7s
Package Tests / Python package - aitbc-agent-sdk (push) Successful in 10s
Package Tests / Python package - aitbc-core (push) Successful in 11s
Package Tests / Python package - aitbc-crypto (push) Successful in 7s
Package Tests / Python package - aitbc-sdk (push) Successful in 12s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 5s
Package Tests / JavaScript package - aitbc-token (push) Successful in 12s
Python Tests / test-python (push) Successful in 8s
Rust ZK Components Tests / test-rust-zk (push) Successful in 31s
Security Scanning / security-scan (push) Successful in 28s
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Successful in 18s
Smart Contract Tests / lint-solidity (push) Successful in 9s
Added setup-job-logging.sh initialization step to api-endpoint-tests.yml, cli-level1-tests.yml, docs-validation.yml (both jobs), integration-tests.yml, js-sdk-tests.yml, package-tests.yml (both jobs), python-tests.yml, rust-zk-tests.yml, security-scanning.yml, and smart-contract-tests.yml (both jobs) to ensure consistent logging across all CI workflows.
2026-04-20 12:16:45 +02:00
aitbc
d546932b2d ci: add python-dotenv dependency and improve agent coordinator startup validation in production tests
All checks were successful
Production Tests / Production Integration Tests (push) Successful in 33s
- Added python-dotenv to --extra-packages in production-tests.yml venv setup
- Added PYTHONUNBUFFERED=1 to agent coordinator uvicorn startup for immediate log output
- Added startup validation check after 2-second sleep to detect early coordinator exits
- Display coordinator logs and fail job if process exits during startup
2026-04-20 12:10:03 +02:00
aitbc
3df724d9fc docs: add gitea-runner SSH-based CI log debugging skill and workflow
Added comprehensive documentation for autonomous investigation of failed Gitea Actions runs via SSH access to gitea-runner host. Includes log location mapping, classification heuristics for distinguishing workflow/dependency/application/service/infrastructure failures, and evidence-based debug suggestion templates. Provides read-only investigation sequences with safety constraints to prevent conflating application failures with runner inst
2026-04-20 12:05:31 +02:00
aitbc
eb51363ea9 ci: add job logging initialization to production and staking workflows and fix systemd-sync script paths
Some checks failed
Production Tests / Production Integration Tests (push) Failing after 1m8s
Staking Tests / test-staking-service (push) Successful in 4s
Systemd Sync / sync-systemd (push) Successful in 5s
Staking Tests / test-staking-integration (push) Successful in 2s
Staking Tests / test-staking-contract (push) Successful in 1m17s
Staking Tests / run-staking-test-runner (push) Successful in 9s
- Added setup-job-logging.sh initialization step to production-tests.yml, all staking-tests.yml jobs, and systemd-sync.yml
- Removed redundant agent-coordinator package installation from production-tests.yml (already included in extra-packages)
- Fixed systemd-sync.yml to use relative paths (scripts/utils/link-systemd.sh) instead of absolute paths (/opt/aitbc/scripts/utils/link-systemd.sh)
2026-04-20 12:00:06 +02:00
aitbc
482e0be438 refactor: implement lazy loading for coordinator-api service imports
All checks were successful
API Endpoint Tests / test-api-endpoints (push) Successful in 13s
Integration Tests / test-service-integration (push) Successful in 2m17s
Python Tests / test-python (push) Successful in 8s
Security Scanning / security-scan (push) Successful in 55s
Replaced eager imports with lazy loading using __getattr__ to defer service module imports until first access. Added module mapping dictionary and dynamic import logic to reduce initial import overhead while maintaining the same public API.
2026-04-20 11:11:12 +02:00
aitbc
64770afa6a ci: add click to staking tests venv dependencies
Some checks failed
Staking Tests / test-staking-service (push) Failing after 11s
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
Added click package to --extra-packages in both staking service tests and integration tests jobs to ensure CLI functionality is available during test execution.
2026-04-20 11:05:09 +02:00
aitbc
fc803d80d0 ci: standardize Python execution across workflows and improve venv caching robustness
Some checks failed
CLI Tests / test-cli (push) Successful in 14s
Package Tests / Python package - aitbc-agent-sdk (push) Successful in 32s
Package Tests / Python package - aitbc-core (push) Successful in 23s
Package Tests / Python package - aitbc-crypto (push) Successful in 9s
Package Tests / Python package - aitbc-sdk (push) Successful in 13s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 7s
Package Tests / JavaScript package - aitbc-token (push) Successful in 12s
Python Tests / test-python (push) Successful in 18s
Staking Tests / test-staking-service (push) Failing after 9s
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
- Changed all Python/pip commands to use `venv/bin/python -m` pattern instead of direct tool invocation or source activation
  - package-tests.yml: pip, mypy, black, pytest now use `venv/bin/python -m`
  - python-tests.yml: ruff, pip, pytest now use `venv/bin/python -m` or `venv/bin/pytest`
  - staking-tests.yml: pytest now uses `venv/bin/pytest` instead of `python3 -m pytest`
- Added missing dependencies to workflow
2026-04-20 10:50:16 +02:00
aitbc
75d0588e29 ci: remove --skip-requirements and --extra-packages flags from cli-level1-tests venv setup
Some checks failed
CLI Tests / test-cli (push) Failing after 3m52s
Reverted to standard requirements.txt installation instead of explicit test package dependencies, aligning with the default behavior of setup-python-venv.sh script.
2026-04-20 06:51:26 +02:00
aitbc
39988af60b ci: standardize venv setup with --skip-requirements and explicit test dependencies across workflows
Some checks failed
CLI Tests / test-cli (push) Failing after 15s
Package Tests / Python package - aitbc-agent-sdk (push) Failing after 4s
Package Tests / Python package - aitbc-core (push) Failing after 2s
Package Tests / Python package - aitbc-crypto (push) Failing after 2s
Package Tests / Python package - aitbc-sdk (push) Failing after 4s
Package Tests / JavaScript package - aitbc-sdk-js (push) Failing after 26m1s
Package Tests / JavaScript package - aitbc-token (push) Failing after 27s
Python Tests / test-python (push) Failing after 20s
Staking Tests / test-staking-service (push) Failing after 10s
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
- Added --skip-requirements flag to cli-level1-tests.yml, python-tests.yml, and staking-tests.yml
- Specified explicit test package dependencies via --extra-packages instead of relying on requirements files
  - cli-level1-tests.yml: pytest click typer rich
  - python-tests.yml: pytest pytest-cov pytest-mock pytest-timeout pytest-asyncio locust
  - staking-tests.yml: pytest pytest-asyncio
- Increased
2026-04-20 06:44:09 +02:00
aitbc
ffb1f2a4f8 ci: add explicit venv cleanup before setup in all workflows to prevent cache corruption
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Successful in 10s
CLI Tests / test-cli (push) Failing after 41s
Integration Tests / test-service-integration (push) Successful in 2m10s
Package Tests / Python package - aitbc-agent-sdk (push) Failing after 4s
Package Tests / Python package - aitbc-core (push) Failing after 4s
Package Tests / Python package - aitbc-crypto (push) Failing after 5s
Package Tests / Python package - aitbc-sdk (push) Failing after 4s
Package Tests / JavaScript package - aitbc-sdk-js (push) Failing after 16m15s
Production Tests / Production Integration Tests (push) Failing after 7s
Python Tests / test-python (push) Failing after 1m33s
Security Scanning / security-scan (push) Failing after 3s
Staking Tests / test-staking-service (push) Failing after 2m21s
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
Package Tests / JavaScript package - aitbc-token (push) Failing after 12m54s
Added `rm -rf venv` (and `venv-build` where applicable) before venv setup in all CI workflows to ensure clean installations and prevent cache corruption issues. Removed redundant venv corruption detection and rebuild logic from package-tests.yml since explicit cleanup makes it unnecessary.
2026-04-20 06:10:32 +02:00
aitbc
05b3b02166 ci: add --no-cache-dir flag to all pip install commands in venv setup script
Some checks failed
Security Scanning / security-scan (push) Failing after 8s
Added --no-cache-dir to pip install commands for pip/setuptools/wheel, requirements file, and extra packages to reduce disk usage and ensure clean installations in CI environments.
2026-04-19 21:30:02 +02:00
aitbc
097cd9cccf ci: add venv corruption detection and auto-rebuild in package tests
Some checks failed
Package Tests / Python package - aitbc-agent-sdk (push) Failing after 3s
Package Tests / Python package - aitbc-core (push) Failing after 2s
Package Tests / Python package - aitbc-crypto (push) Failing after 4s
Package Tests / Python package - aitbc-sdk (push) Failing after 1s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 6m12s
Package Tests / JavaScript package - aitbc-token (push) Failing after 10s
Added validation checks for venv and venv-build directories with automatic rebuild on corruption detection. Checks for executable pip/python binaries and rebuilds the venv if not found.
2026-04-19 21:28:26 +02:00
aitbc
3a5e8782ca ci: fix venv activation in security scanning workflow
Some checks failed
Security Scanning / security-scan (push) Failing after 2s
Changed from `source venv/bin/activate` to direct venv/bin/pip-audit and venv/bin/bandit calls to match the pattern used in other workflows for more reliable venv usage.
2026-04-19 21:21:49 +02:00
aitbc
b293059bd6 ci: add service lifecycle management and fix venv activation in workflows
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Successful in 8s
Package Tests / Python package - aitbc-agent-sdk (push) Failing after 3s
Package Tests / Python package - aitbc-core (push) Failing after 3s
Package Tests / Python package - aitbc-crypto (push) Failing after 2s
Package Tests / Python package - aitbc-sdk (push) Failing after 2s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 3m31s
Package Tests / JavaScript package - aitbc-token (push) Failing after 8s
Production Tests / Production Integration Tests (push) Failing after 35s
Python Tests / test-python (push) Failing after 1m17s
- Added explicit service start/stop steps in api-endpoint-tests.yml
  - Start coordinator-api, exchange-api, wallet, and blockchain-rpc services before tests
  - Stop all started services in cleanup step
- Fixed venv activation in package-tests.yml
  - Changed from `source venv/bin/activate` to direct venv/bin/pip and venv/bin/python calls
  - Applied same pattern to venv-build for package building
- Fixed venv activation in production-tests.
2026-04-19 21:19:53 +02:00
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
59ae930411 refactor: replace hardcoded paths with dynamic Path resolution in staking tests
All checks were successful
Python Tests / test-python (push) Successful in 2m32s
Staking Tests / test-staking-service (push) Successful in 2m17s
Staking Tests / test-staking-integration (push) Successful in 2m23s
Staking Tests / test-staking-contract (push) Successful in 1m16s
Staking Tests / run-staking-test-runner (push) Successful in 2m30s
- Changed from hardcoded /opt/aitbc paths to Path(__file__).resolve().parents[2] for dynamic repository root resolution
- Reorganized imports to follow standard order (stdlib, third-party, local)
- Removed duplicate sys import in test_staking_service.py
- Extracted repo_root variable in test_staking_lifecycle.py for cleaner path construction
2026-04-19 20:44:42 +02:00
aitbc
20b2d2040c docs: fix markdown formatting in DOTENV_DISCIPLINE.md
All checks were successful
Documentation Validation / validate-docs (push) Successful in 3s
Documentation Validation / validate-policies-strict (push) Successful in 3s
Added blank lines after list introductions to fix markdown rendering of bullet lists.
2026-04-19 20:35:19 +02:00
aitbc
23b57c4eca fix: improve git diff detection in security scanning workflow
All checks were successful
Security Scanning / security-scan (push) Successful in 24s
Changed from `git show` to `git diff HEAD^ HEAD` for more reliable detection of changed files in push/PR events. Also increased clone depth from 1 to 2 and added explicit fetch/checkout of the target ref to ensure HEAD^ is available for comparison.
2026-04-19 20:33:31 +02:00
aitbc
9cdb541609 ci: optimize security scanning to only check changed files on push/PR
Some checks failed
Security Scanning / security-scan (push) Failing after 33s
Added conditional logic to security-scanning.yml to scan only changed files
during push/PR events while maintaining full scans for scheduled and manual runs.
- Bandit now scans only modified Python files on push/PR using git diff
- Secret scanning now checks only changed files on push/PR
- Both tools still perform full repository scans on schedule/workflow_dispatch
- Added early exit when no relevant files changed to avoid unnecessary processing
2026-04-19 20:30:18 +02:00
aitbc
733fa11638 test: update CLI blockchain command test to use block query instead of info
Some checks failed
CLI Tests / test-cli (push) Successful in 2m26s
Security Scanning / security-scan (push) Failing after 46s
Changed test from 'blockchain info' to 'blockchain block --number 1' and added
verification for "Block #1" in output. Also improved error output to include
stdout when stderr is empty.
2026-04-19 20:22:17 +02:00