Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 7s
Contract Performance Benchmarks / benchmark-gas-usage (push) Successful in 1m3s
Contract Performance Benchmarks / benchmark-execution-time (push) Successful in 1m1s
Contract Performance Benchmarks / benchmark-throughput (push) Successful in 58s
Deploy to Testnet / deploy-testnet (push) Failing after 1m7s
P2P Network Verification / p2p-verification (push) Successful in 2s
Security Scanning / security-scan (push) Successful in 29s
Contract Performance Benchmarks / compare-benchmarks (push) Successful in 1s
Deploy to Testnet / notify-deployment (push) Successful in 2s
- Remove cron schedules from blockchain-sync-verification.yml (every 6 hours) - Remove cron schedule from node-failover-simulation.yml (daily at 2 AM) - Remove cron schedule from p2p-network-verification.yml (every 4 hours) - Remove cron schedule from security-scanning.yml (weekly on Monday) - Remove cron schedule from contract-benchmarks.yml (weekly on Sunday) - All workflows now only trigger on push or manual workflow_dispatch
66 lines
2.0 KiB
YAML
66 lines
2.0 KiB
YAML
name: Blockchain Synchronization Verification
|
|
|
|
on:
|
|
push:
|
|
branches: [main, develop]
|
|
paths:
|
|
- 'apps/blockchain-node/**'
|
|
- 'scripts/multi-node/**'
|
|
- '.gitea/workflows/blockchain-sync-verification.yml'
|
|
pull_request:
|
|
branches: [main, develop]
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: blockchain-sync-verification-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
sync-verification:
|
|
runs-on: debian
|
|
timeout-minutes: 20
|
|
|
|
steps:
|
|
- name: Clone repository
|
|
run: |
|
|
WORKSPACE="/var/lib/aitbc-workspaces/blockchain-sync-verification"
|
|
rm -rf "$WORKSPACE"
|
|
mkdir -p "$WORKSPACE"
|
|
cd "$WORKSPACE"
|
|
git clone --depth 1 http://gitea.bubuit.net:3000/oib/aitbc.git repo
|
|
|
|
- name: Initialize job logging
|
|
run: |
|
|
cd /var/lib/aitbc-workspaces/blockchain-sync-verification/repo
|
|
bash scripts/ci/setup-job-logging.sh
|
|
|
|
- name: Setup Python environment
|
|
run: |
|
|
cd /var/lib/aitbc-workspaces/blockchain-sync-verification/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 blockchain synchronization verification
|
|
run: |
|
|
cd /var/lib/aitbc-workspaces/blockchain-sync-verification/repo
|
|
CHECK_CHAIN_ID_CONSISTENCY=true CHAINS="ait-mainnet,ait-testnet" bash scripts/multi-node/sync-verification.sh
|
|
|
|
- name: Sync verification report
|
|
if: always()
|
|
run: |
|
|
echo "=== Blockchain Synchronization Verification Report ==="
|
|
if [ -f /var/log/aitbc/sync-verification.log ]; then
|
|
tail -50 /var/log/aitbc/sync-verification.log
|
|
fi
|
|
|
|
- name: Cleanup
|
|
if: always()
|
|
run: rm -rf /var/lib/aitbc-workspaces/blockchain-sync-verification
|