Merge gitea/main, preserving release v0.2.2 stability and CLI documentation

This commit is contained in:
AITBC System
2026-03-25 12:58:02 +01:00
230 changed files with 2370 additions and 369 deletions

View File

@@ -59,7 +59,7 @@ skill test
python -m pytest tests/integration/test_multichain.py -v
# Run all tests including multi-chain scenarios
./tests/run_all_tests.sh
./scripts/testing/run_all_tests.sh
```
#### Using CLI for Testing
@@ -168,7 +168,7 @@ python -m aitbc_cli --url http://127.0.0.1:8000 --api-key test-key blockchain he
#### **4.1 Run Complete Test Suite**
```bash
# Execute all tests including multi-chain scenarios
./tests/run_all_tests.sh
./scripts/testing/run_all_tests.sh
# Run specific multi-chain integration tests
python -m pytest tests/integration/test_multichain.py -v
@@ -237,7 +237,7 @@ jobs:
### **Scheduled Testing**
```bash
# Regular multi-chain test execution
0 2 * * * cd /home/oib/windsurf/aitbc && ./tests/run_all_tests.sh
0 2 * * * cd /home/oib/windsurf/aitbc && ./scripts/testing/run_all_tests.sh
```
## Troubleshooting

View File

@@ -23,23 +23,23 @@ Historical development setup included mock coordinator services for testing purp
### 1. Localhost Cleanup
```bash
# Stop and disable mock service
sudo systemctl stop aitbc-mock-coordinator.service
sudo systemctl disable aitbc-mock-coordinator.service
systemctl stop aitbc-mock-coordinator.service
systemctl disable aitbc-mock-coordinator.service
# Remove service file
sudo rm /etc/systemd/system/aitbc-mock-coordinator.service
sudo systemctl daemon-reload
rm /etc/systemd/system/aitbc-mock-coordinator.service
systemctl daemon-reload
```
### 2. AITBC Server Cleanup
```bash
# Stop and disable mock service
ssh aitbc-cascade "systemctl stop aitbc-coordinator.service"
ssh aitbc-cascade "systemctl disable aitbc-coordinator.service"
ssh aitbc "systemctl stop aitbc-coordinator.service"
ssh aitbc "systemctl disable aitbc-coordinator.service"
# Remove service file
ssh aitbc-cascade "rm /etc/systemd/system/aitbc-coordinator.service"
ssh aitbc-cascade "systemctl daemon-reload"
ssh aitbc "rm /etc/systemd/system/aitbc-coordinator.service"
ssh aitbc "systemctl daemon-reload"
```
### 3. Production Service Verification

View File

@@ -209,21 +209,21 @@ server {
```bash
# Enable and start services
sudo systemctl enable aitbc-reputation
sudo systemctl enable aitbc-rewards
sudo systemctl enable aitbc-trading
sudo systemctl enable aitbc-analytics
sudo systemctl enable aitbc-certification
systemctl enable aitbc-reputation
systemctl enable aitbc-rewards
systemctl enable aitbc-trading
systemctl enable aitbc-analytics
systemctl enable aitbc-certification
# Start services
sudo systemctl start aitbc-reputation
sudo systemctl start aitbc-rewards
sudo systemctl start aitbc-trading
sudo systemctl start aitbc-analytics
sudo systemctl start aitbc-certification
systemctl start aitbc-reputation
systemctl start aitbc-rewards
systemctl start aitbc-trading
systemctl start aitbc-analytics
systemctl start aitbc-certification
# Check status
sudo systemctl status aitbc-*
systemctl status aitbc-*
```
## Configuration Details
@@ -588,7 +588,7 @@ CACHE_CONFIG = {
1. **Database Connection Errors**
```bash
# Check PostgreSQL status
sudo systemctl status postgresql
systemctl status postgresql
# Check connection
psql -h localhost -U aitbc_user -d aitbc_economics
@@ -667,10 +667,10 @@ curl -f http://localhost:8000/health || echo "Health check failed"
```bash
# Rollback to previous version
sudo systemctl stop aitbc-*
systemctl stop aitbc-*
git checkout previous_version_tag
pip install -r requirements.txt
sudo systemctl start aitbc-*
systemctl start aitbc-*
```
### Database Rollback

View File

@@ -193,9 +193,9 @@ server {
#### **Services Not Starting**
```bash
# Check service status
sudo systemctl status aitbc-cross-chain-reputation
sudo systemctl status aitbc-agent-communication
sudo systemctl status aitbc-advanced-learning
systemctl status aitbc-cross-chain-reputation
systemctl status aitbc-agent-communication
systemctl status aitbc-advanced-learning
# Check logs
sudo journalctl -u aitbc-cross-chain-reputation
@@ -206,7 +206,7 @@ sudo journalctl -u aitbc-advanced-learning
#### **Nginx Issues**
```bash
# Check nginx status
sudo systemctl status nginx
systemctl status nginx
# Test configuration
sudo nginx -t
@@ -224,7 +224,7 @@ ls -la /var/www/aitbc.bubuit.net/
sudo nginx -t
# Restart nginx
sudo systemctl restart nginx
systemctl restart nginx
```
### 📞 **Support Contacts**

View File

@@ -77,7 +77,7 @@ The AITBC Developer Ecosystem & DAO Grants system has been successfully implemen
#### Test Execution:
```bash
# Run all tests
./tests/run_all_tests.sh
./scripts/testing/run_all_tests.sh
# Individual suites
npx hardhat test tests/contracts/
@@ -211,7 +211,7 @@ npm run test # Frontend E2E
./scripts/production-health-check.sh
# Monitor system logs
ssh aitbc-cascade "journalctl -u nginx -f"
ssh aitbc "journalctl -u nginx -f"
# Check contract events
npx hardhat run scripts/monitor-contracts.js --network mainnet
@@ -220,7 +220,7 @@ npx hardhat run scripts/monitor-contracts.js --network mainnet
### Weekly Operations
```bash
# Security updates
ssh aitbc-cascade "apt update && apt upgrade -y"
ssh aitbc "apt update && apt upgrade -y"
# Performance monitoring
./scripts/performance-report.sh

View File

@@ -59,8 +59,8 @@
- **`tests/cli/test_wallet.py`**: Updated wallet tests for unified CLI interface
- **`tests/cli/test_marketplace.py`**: Updated marketplace tests for CLI integration
- **`tests/cli/test_cli_integration.py`**: Enhanced integration testing with CLI support
- **`tests/conftest.py`**: Enhanced test configuration for CLI testing
- **`tests/run_all_tests.sh`**: Updated test runner with CLI testing support
- **`tests/conftest.py`**: Enhanced test configuration
- **`tests/scripts/testing/run_all_tests.sh`**: Updated test runner with CLI testing support
- **`tests/cli-test-updates-completed.md`**: Created CLI test completion summary
- **`tests/test-integration-completed.md`**: Created test ecosystem integration summary
- **`docs/22_workflow/DOCS_WORKFLOW_COMPLETION_SUMMARY.md`**: Updated with latest workflow completion