tests(system): surface self-healing execution traces in CI logs #1138
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests | |
| on: | |
| push: | |
| paths-ignore: | |
| - '**.md' | |
| - 'docs/**' | |
| - '.gitignore' | |
| jobs: | |
| unit-tests: | |
| name: unit-tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/[email protected] | |
| - name: Setup Go and system deps | |
| uses: ./.github/actions/setup-env | |
| # with: | |
| # bust_lumera_retag: 'true' | |
| - name: Go mod tidy | |
| run: go mod tidy | |
| - name: Run unit tests | |
| run: go test $(go list ./... | grep -v '/tests') -v | |
| integration-tests: | |
| name: integration-tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/[email protected] | |
| - name: Setup Go and system deps | |
| uses: ./.github/actions/setup-env | |
| # with: | |
| # bust_lumera_retag: 'true' | |
| - name: Go mod tidy | |
| run: go mod tidy | |
| - name: Run integration tests | |
| run: go test -v ./tests/integration/... | |
| cascade-e2e-tests: | |
| name: cascade-e2e-tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/[email protected] | |
| - name: Setup Go and system deps | |
| uses: ./.github/actions/setup-env | |
| # with: | |
| # bust_lumera_retag: 'true' | |
| - name: Go mod tidy | |
| run: go mod tidy | |
| - name: Install Lumera | |
| run: make install-lumera | |
| - name: Setup Supernode environments | |
| run: make setup-supernodes | |
| - name: Run cascade e2e tests | |
| run: make test-cascade | |
| self-healing-e2e-tests: | |
| name: self-healing-e2e-tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/[email protected] | |
| - name: Setup Go and system deps | |
| uses: ./.github/actions/setup-env | |
| # with: | |
| # bust_lumera_retag: 'true' | |
| - name: Go mod tidy | |
| run: go mod tidy | |
| - name: Install Lumera | |
| run: make install-lumera | |
| - name: Setup Supernode environments | |
| run: make setup-supernodes | |
| - name: Run self-healing e2e tests | |
| run: make test-self-healing | |
| - name: Dump self-healing runtime traces | |
| if: always() | |
| run: | | |
| cd tests/system | |
| for f in supernode0.out supernode1.out supernode2.out; do | |
| echo "==== ${f} (self-healing excerpts) ====" | |
| if [ -f "$f" ]; then | |
| grep -E "self-healing|sh-e2e-happy|RequestSelfHealing|VerifySelfHealing|CommitSelfHealing|reconstructed_hash_hex|observer" "$f" | tail -n 200 || true | |
| else | |
| echo "missing ${f}" | |
| fi | |
| done | |
| # sn-manager-e2e-tests: | |
| # name: sn-manager-e2e-tests | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - name: Checkout code | |
| # uses: actions/checkout@v4 | |
| # - name: Setup Go and system deps | |
| # uses: ./.github/actions/setup-env | |
| # - name: Install Lumera | |
| # run: make install-lumera | |
| # - name: Setup Supernode environments | |
| # run: make setup-supernodes | |
| # - name: Run sn-manager e2e tests | |
| # run: make test-sn-manager |