Files
aitbc/.gitea/workflows/node-failover-simulation.yml
aitbc 99205f97b0
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 3s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Successful in 3s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 3s
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Successful in 2s
Cross-Node Transaction Testing / transaction-test (push) Successful in 3s
Deploy to Testnet / deploy-testnet (push) Successful in 1m17s
Documentation Validation / validate-docs (push) Failing after 11s
Documentation Validation / validate-policies-strict (push) Successful in 4s
Integration Tests / test-service-integration (push) Failing after 42s
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Failing after 3s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
Multi-Node Stress Testing / stress-test (push) Successful in 4s
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Node Failover Simulation / failover-test (push) Failing after 1h35m21s
Cross-Chain Functionality Tests / aggregate-results (push) Successful in 8s
ci: refactor Gitea workflows to use environment variables for workspace paths
- Added WORKSPACE env variable to all workflow jobs
- Changed hardcoded workspace paths to use ${{ env.WORKSPACE }}
- Added pull_request path filters to blockchain-sync-verification.yml
- Updated cross-chain-tests.yml path filters to apps/blockchain-node/** and scripts/multi-node/**
- Removed ait-devnet from default chains in cross-chain-tests.yml
- Disabled test-cross-chain-bridge job (test file not implemented)
- Removed test-cross-chain-bridge from aggregate
2026-05-11 14:26:44 +02:00

72 lines
1.9 KiB
YAML

name: Node Failover Simulation
on:
push:
branches: [main, develop]
paths:
- 'apps/blockchain-node/**'
- 'scripts/multi-node/**'
- '.gitea/workflows/node-failover-simulation.yml'
pull_request:
branches: [main, develop]
paths:
- 'apps/blockchain-node/**'
- 'scripts/multi-node/**'
- '.gitea/workflows/node-failover-simulation.yml'
workflow_dispatch:
concurrency:
group: node-failover-simulation-${{ github.ref }}
cancel-in-progress: true
jobs:
failover-test:
runs-on: debian
timeout-minutes: 20
env:
WORKSPACE: /var/lib/aitbc-workspaces/node-failover-simulation
steps:
- name: Clone repository
run: |
rm -rf "${{ env.WORKSPACE }}"
mkdir -p "${{ env.WORKSPACE }}"
cd "${{ env.WORKSPACE }}"
git clone --depth 1 http://gitea.bubuit.net:3000/oib/aitbc.git repo
- name: Initialize job logging
run: |
cd "${{ env.WORKSPACE }}/repo"
bash scripts/ci/setup-job-logging.sh
- name: Setup Python environment
run: |
cd "${{ env.WORKSPACE }}/repo"
# Remove any existing venv to avoid cache corruption issues
rm -rf venv
bash scripts/ci/setup-python-venv.sh \
--repo-dir "$PWD" \
--venv-dir "$PWD/venv" \
--skip-requirements \
--extra-packages "requests psutil"
- name: Run node failover simulation
run: |
cd "${{ env.WORKSPACE }}/repo"
bash scripts/multi-node/failover-simulation.sh
- name: Failover simulation report
if: always()
run: |
echo "=== Node Failover Simulation Report ==="
if [ -f /var/log/aitbc/failover-simulation.log ]; then
tail -50 /var/log/aitbc/failover-simulation.log
fi
- name: Cleanup
if: always()
run: rm -rf "${{ env.WORKSPACE }}"