Skip to content

Commit

Permalink
added an extra step for restarting nodes in main-process workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BuddyGlas committed Dec 17, 2024
1 parent 9cf662f commit f57e39d
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
9 changes: 5 additions & 4 deletions .baedeker/main-process.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ local relay = {
allowed_ancestry_len: 3,
max_candidate_depth: 4,
},
validation_upgrade_cooldown: 400,
validation_upgrade_delay: 200,
validation_upgrade_cooldown: 200,
validation_upgrade_delay: 100,
minimum_validation_upgrade_delay: 15,
minimum_backing_votes: 2,
needed_approvals: 2,
scheduling_lookahead:1,
scheduler_params+: {
lookahead: 1,
},
},
},
},
Expand Down Expand Up @@ -80,7 +82,6 @@ local unique = {
extraArgs: [
'--increase-future-pool',
'--pool-type=fork-aware',
'-laura=debug',
],
},
for name in ['alice', 'bob', 'charlie']
Expand Down
6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ MAINNET_BRANCH=release-v10030070
MAINNET_HASH=387b0373b6f516481e7df757c7d436465b67ae2c

# Unique
POLKADOT_MAINNET_BRANCH=v1.7.2
POLKADOT_MAINNET_BRANCH=v1.16.2
STATEMINT_BUILD_BRANCH=1.14.0
ACALA_BUILD_BRANCH=2.25.0
MOONBEAM_BUILD_BRANCH=runtime-2901
Expand All @@ -18,15 +18,15 @@ POLKADEX_BUILD_BRANCH=v1.0.0
UNIQUE_REPLICA_FROM=wss://ws.unique.network:443

# Quartz
KUSAMA_MAINNET_BRANCH=v1.7.2
KUSAMA_MAINNET_BRANCH=v1.16.2
STATEMINE_BUILD_BRANCH=1.14.0
KARURA_BUILD_BRANCH=2.25.0
MOONRIVER_BUILD_BRANCH=runtime-2901
SHIDEN_BUILD_BRANCH=v5.39.1
QUARTZ_REPLICA_FROM=wss://ws-quartz.unique.network:443

# Opal
UNIQUEWEST_MAINNET_BRANCH=v1.7.2
UNIQUEWEST_MAINNET_BRANCH=v1.16.2
WESTMINT_BUILD_BRANCH=1.14.0
OPAL_REPLICA_FROM=wss://ws-opal.unique.network:443

14 changes: 12 additions & 2 deletions .github/workflows/main-process-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ jobs:
container: uniquenetwork/ci-main-process
tag: ${{ matrix.network }}-${{ env.MAINNET_BRANCH }}-${{ env.MAINNET_HASH}}
context: .docker
# TODO: return to Dockerfile-unique-release after release v10140080
dockerfile: Dockerfile-unique-release-old
args: |
--build-arg FEATURES=${{ matrix.network }}-runtime
Expand Down Expand Up @@ -189,7 +190,7 @@ jobs:
env:
RPC_URL: ${{ env.RELAY_UNIQUE_HTTP_URL }}

- name: "Reconcile: 1 node updating"
- name: "Reconcile: update all nodes except one"
if: ${{ !cancelled() && steps.alive1.outcome == 'success' }}
id: reconcile0
uses: UniqueNetwork/baedeker-action/[email protected]
Expand All @@ -211,7 +212,7 @@ jobs:
env:
RPC_URL: ${{ env.RELAY_UNIQUE_HTTP_URL }}

- name: "Reconcile: nodes updating"
- name: "Reconcile: update the remaining node"
if: ${{ !cancelled() && steps.alive1_1.outcome == 'success' }}
id: reconcile1
uses: UniqueNetwork/baedeker-action/[email protected]
Expand Down Expand Up @@ -242,6 +243,15 @@ jobs:
env:
RPC_URL: ${{ env.RELAY_UNIQUE_HTTP_URL }}

### temporary solution!!!!!!! ###
### TODO: delete this step after release v10140080 or put it into a nicer script
- name: wait 100 blocks for runtime and restart all parachain nodes
if: ${{ !cancelled() && steps.reconcile2.outcome == 'success' }}
run: |
sleep 660
echo "Restarting parachain nodes"
for i in `docker ps -f name=relay-unique-node -q`; do docker restart $i; done
- name: Ensure network is alive
working-directory: js-packages/tests
id: alive3
Expand Down

0 comments on commit f57e39d

Please sign in to comment.