- 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
58 lines
1.7 KiB
YAML
58 lines
1.7 KiB
YAML
name: Cross-Node Transaction Testing
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: cross-node-transaction-testing-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
transaction-test:
|
|
runs-on: debian
|
|
timeout-minutes: 15
|
|
|
|
steps:
|
|
- name: Clone repository
|
|
run: |
|
|
WORKSPACE="/var/lib/aitbc-workspaces/cross-node-transaction-testing"
|
|
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/cross-node-transaction-testing/repo
|
|
bash scripts/ci/setup-job-logging.sh
|
|
|
|
- name: Setup Python environment
|
|
run: |
|
|
cd /var/lib/aitbc-workspaces/cross-node-transaction-testing/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 cross-node transaction test
|
|
run: |
|
|
cd /var/lib/aitbc-workspaces/cross-node-transaction-testing/repo
|
|
bash scripts/multi-node/cross-node-transaction-test.sh
|
|
|
|
- name: Transaction test report
|
|
if: always()
|
|
run: |
|
|
echo "=== Cross-Node Transaction Test Report ==="
|
|
if [ -f /var/log/aitbc/cross-node-transaction-test.log ]; then
|
|
tail -50 /var/log/aitbc/cross-node-transaction-test.log
|
|
fi
|
|
|
|
- name: Cleanup
|
|
if: always()
|
|
run: rm -rf /var/lib/aitbc-workspaces/cross-node-transaction-testing
|