mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 04:07:57 +00:00
270540cf46
* Add check_bootnode script and github action * fix mktemp for linux machines * Update check_bootnodes.sh show logs to see what's going wrong * fix ephemeral ports and fetch polkadot * fix check-bootnodes.yml * increase node spawn holdoff * disable fail-fast * refactor, separate out check_bootnodes and make it posix-compliant * add new job for detecting new bootnodes * fix check-bootnodes.yml * only check all bootnodes on release * Add test bad bootnode REVERT ME before merging PR. Should cause the test to fail, then when we remove it, we should succeed. Sadly doesn't account for a new successful bootnode, should ask if we have one we can use for testing. * fix paths * fix paths and git... hopefully * this better work... * fix * test * last test * Revert "Add test bad bootnode" This reverts commit 540dd9754a1f8e2d3fef33f7f5a033b8c2aa4dcb. * Update check_bootnodes.sh * optimisations Begin polling the RPC node right after spawning, allowing us to break early on detecting peers * increase holdoff to 5 seconds * dont delete chainspec til we kill the node * Update check-bootnodes.yml * Remove checking bootnodes on pushing of this branch --------- Co-authored-by: parity-processbot <>
32 lines
1.0 KiB
YAML
32 lines
1.0 KiB
YAML
# checks all networks we care about (kusama, polkadot, westend) and ensures
|
||
# the bootnodes in their respective chainspecs are contactable
|
||
|
||
name: Check all bootnodes
|
||
on:
|
||
push:
|
||
branches:
|
||
# Catches v1.2.3 and v1.2.3-rc1
|
||
- release-v[0-9]+.[0-9]+.[0-9]+*
|
||
|
||
jobs:
|
||
check_bootnodes:
|
||
strategy:
|
||
fail-fast: false
|
||
matrix:
|
||
runtime: [westend, kusama, polkadot]
|
||
runs-on: ubuntu-latest
|
||
steps:
|
||
- name: Checkout sources
|
||
uses: actions/checkout@v3
|
||
- name: Install polkadot
|
||
shell: bash
|
||
run: |
|
||
curl -L "$(curl -s https://api.github.com/repos/paritytech/polkadot/releases/latest \
|
||
| jq -r '.assets | .[] | select(.name == "polkadot").browser_download_url')" \
|
||
| sudo tee /usr/local/bin/polkadot > /dev/null
|
||
sudo chmod +x /usr/local/bin/polkadot
|
||
polkadot --version
|
||
- name: Check ${{ matrix.runtime }} bootnodes
|
||
shell: bash
|
||
run: scripts/ci/github/check_bootnodes.sh node/service/chain-specs/${{ matrix.runtime }}.json
|