24fc6358d6
* Set starting slot and improve error gap capturing * Set starting slot and improve error gap capturing * Tests + Significant Refactor The code for historical processing has been significantly refactored to use a context to signify a shutdown. There have also been many tests added for historical and knownGaps processing. * Update MhKeys in test * Update correct values * Update Max Retry Genesis is not working as expected. * Ensure we release locks properly * Add ordered testing * Include system tests * Update workflow calls * Add secrets * Add required secrets * update path * Try using the absolute path * Remove volumes at the end. * Update system-tests.yml * Update system-tests.yml * Update test err * Update and test the shutdown * rename ethcl --> eth-beacon * Try forcing /bin/bash for docker-compose * Update system-tests.yml * Update system-tests.yml * Update system-tests.yml * Update system-tests.yml * Update system-tests.yml * Update system-tests.yml * Use single quote cron * Dont run generic on schedule
95 lines
2.6 KiB
YAML
95 lines
2.6 KiB
YAML
name: System Testing for the stack.
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
stack-orchestrator-ref:
|
|
required: false
|
|
type: string
|
|
ipld-eth-beacon-db-ref:
|
|
required: false
|
|
type: string
|
|
secrets:
|
|
GHA_KEY:
|
|
required: true
|
|
BC_ADDRESS:
|
|
required: true
|
|
env:
|
|
stack-orchestrator-ref: ${{ inputs.stack-orchestrator-ref || '3048a224100ceb122d6da71328bf3803dff72a01' }}
|
|
ipld-eth-beacon-db-ref: ${{ inputs.ipld-eth-beacon-db-ref || '3dfe416302d553f8240f6051c08a7899b0e39e12' }}
|
|
GOPATH: /tmp/go
|
|
bc_protocol: "http"
|
|
bc_address: ${{secrets.BC_ADDRESS}}
|
|
bc_port: 5052
|
|
db_host: localhost
|
|
db_port: 8076
|
|
db_name: vulcanize_testing
|
|
db_user: vdbm
|
|
db_password: password
|
|
db_driver: "pgx"
|
|
|
|
jobs:
|
|
system-testing:
|
|
runs-on: self-hosted
|
|
steps:
|
|
- name: Create GOPATH
|
|
run: mkdir -p /tmp/go
|
|
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
path: "./ipld-eth-beacon-indexer"
|
|
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ env.stack-orchestrator-ref }}
|
|
path: "./stack-orchestrator/"
|
|
repository: vulcanize/stack-orchestrator
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ env.ipld-eth-beacon-db-ref }}
|
|
repository: vulcanize/ipld-eth-beacon-db
|
|
path: "./ipld-eth-beacon-db/"
|
|
ssh-key: ${{secrets.GHA_KEY}}
|
|
fetch-depth: 0
|
|
|
|
- name: Create config file
|
|
run: |
|
|
echo vulcanize_ipld_eth_beacon_db=$(pwd)/ipld-eth-beacon-db > ./config.sh
|
|
cat ./config.sh
|
|
|
|
- name: Run docker compose
|
|
id: compose
|
|
shell: bash
|
|
run: |
|
|
ls "./stack-orchestrator/docker/local/docker-compose-ipld-eth-beacon-db.yml"
|
|
whoami
|
|
/usr/local/bin/docker-compose \
|
|
-f "./stack-orchestrator/docker/local/docker-compose-ipld-eth-beacon-db.yml" \
|
|
--env-file ./config.sh \
|
|
up -d --build
|
|
|
|
- uses: actions/setup-go@v3
|
|
with:
|
|
go-version: ">=1.18.0"
|
|
check-latest: true
|
|
|
|
- name: Install packages
|
|
run: |
|
|
go install github.com/onsi/ginkgo/v2/ginkgo@latest
|
|
which ginkgo
|
|
|
|
- name: Run the tests using Make
|
|
run: |
|
|
cd ipld-eth-beacon-indexer
|
|
make system-test-ci
|
|
|
|
- name: Clean up the docker containers
|
|
if: steps.compose.outcome == 'success'
|
|
shell: bash
|
|
run: |
|
|
/usr/local/bin/docker-compose \
|
|
-f "./stack-orchestrator/docker/local/docker-compose-ipld-eth-beacon-db.yml" \
|
|
--env-file ./config.sh \
|
|
down -v
|