Skip to content

Commit

Permalink
Fix ci node launch parameters (#2889)
Browse files Browse the repository at this point in the history
* Fix node command

* fix launch parameters for typescript api job

* require the runtime-XYZW docker image to be built
  • Loading branch information
noandrea authored Aug 12, 2024
1 parent 41ebb79 commit 3ac2151
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/subxt-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
--no-prometheus \
--unsafe-rpc-external \
--alice \
--unsafe-force-node-key-generation \
--rpc-port=9911 \
--tmp
Expand All @@ -79,6 +80,7 @@ jobs:
--unsafe-rpc-external \
--alice \
--rpc-port=9977 \
--unsafe-force-node-key-generation \
--tmp & sleep 2' &
- name: Run Diffs
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/upgrade-typescript-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ jobs:
ref: runtime-${{ github.event.inputs.spec_version }}
- name: Retrieve moonbeam binary
run: |
COMMIT_SHA8=$(git log -1 --format="%H" | cut -c1-8)
DOCKER_TAG="moonbeamfoundation/moonbeam:sha-$COMMIT_SHA8"
DOCKER_TAG="moonbeamfoundation/moonbeam:runtime-${{ github.event.inputs.spec_version }}"
# Clear the dummy container if it wasn't properly cleaned up
docker rm -f dummy 2> /dev/null
docker create -ti --name dummy $DOCKER_TAG bash
Expand Down Expand Up @@ -54,5 +53,5 @@ jobs:
commit-message: typescript API v0.${{ github.event.inputs.spec_version }}.0
draft: true
title: "Upgrade typescript API for runtime-${{ github.event.inputs.spec_version }}"
reviewers: "librelois,noandrea,timbrinded"
reviewers: "moonsong-coredev"
labels: "B0-silent,D2-notlive"
8 changes: 7 additions & 1 deletion typescript-api/scripts/runtime-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ npm install
# Get runtimes metadata
for CHAIN in ${CHAINS[@]}; do
echo "Starting $CHAIN node"
../build/moonbeam --no-hardware-benchmarks --no-telemetry --no-prometheus --alice --tmp --chain=$CHAIN-dev --wasm-execution=interpreted-i-know-what-i-do --rpc-port=9933 &> /tmp/node-$CHAIN-start.log &
../build/moonbeam \
--no-hardware-benchmarks \
--unsafe-force-node-key-generation \
--no-telemetry --no-prometheus --alice \
--tmp --chain=$CHAIN-dev \
--wasm-execution=interpreted-i-know-what-i-do \
--rpc-port=9933 &> /tmp/node-$CHAIN-start.log &
PID=$!
echo "Waiting node..."
( tail -f -n0 /tmp/node-$CHAIN-start.log & ) | grep -q 'Running JSON-RPC server'
Expand Down

0 comments on commit 3ac2151

Please sign in to comment.