difftreelog
delete unsed vars from CI matrix
in: master
26 files changed
.docker/Dockerfile-chain-devdiffbeforeafterboth--- a/.docker/Dockerfile-chain-dev
+++ b/.docker/Dockerfile-chain-dev
@@ -1,15 +1,15 @@
FROM ubuntu:20.04
-ARG RUST_TOOLCHAIN=
-ARG FEATURE=
+ARG RUST_TOOLCHAIN
+ARG NETWORK
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC
-ENV FEATURE=$FEATURE
+ENV NETWORK=$NETWORK
ENV CARGO_HOME="/cargo-home"
ENV PATH="/cargo-home/bin:$PATH"
-RUN echo "$FEATURE\n" && echo "$RUST_TOOLCHAIN\n"
+RUN echo "$NETWORK\n" && echo "$RUST_TOOLCHAIN\n"
RUN apt-get update && apt-get install -y git curl libssl-dev llvm pkg-config libclang-dev clang git make cmake protobuf-compiler
@@ -26,6 +26,6 @@
WORKDIR /dev_chain
RUN cargo build --release
-RUN echo "$FEATURE"
+RUN echo "$NETWORK"
-CMD cargo run --release --features=$FEATURE -- --dev -linfo --unsafe-ws-external --rpc-cors=all --unsafe-rpc-external
+CMD cargo run --release --features=${NETWORK}-runtime -- --dev -linfo --unsafe-ws-external --rpc-cors=all --unsafe-rpc-external
.docker/Dockerfile-chain-dev-unitdiffbeforeafterboth--- a/.docker/Dockerfile-chain-dev-unit
+++ b/.docker/Dockerfile-chain-dev-unit
@@ -10,8 +10,8 @@
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain none
-ARG RUST_TOOLCHAIN=
-ARG FEATURE=
+ARG RUST_TOOLCHAIN
+ARG NETWORK
RUN rustup toolchain uninstall $(rustup toolchain list) && \
rustup toolchain install $RUST_TOOLCHAIN && \
.docker/Dockerfile-parachaindiffbeforeafterboth--- a/.docker/Dockerfile-parachain
+++ b/.docker/Dockerfile-parachain
@@ -35,14 +35,14 @@
FROM rust-builder as builder-unique
ARG PROFILE=release
-ARG FEATURE=
-ARG REPO_URL=
-ARG BRANCH=
+ARG NETWORK
+ARG REPO_URL
+ARG BRANCH
WORKDIR /unique_parachain
RUN git clone $REPO_URL -b $BRANCH . && \
- cargo build --features=$FEATURE --$PROFILE
+ cargo build --features=${NETWORK}-runtime --$PROFILE
# ===== RUN ======
.docker/Dockerfile-parachain-node-onlydiffbeforeafterboth--- a/.docker/Dockerfile-parachain-node-only
+++ b/.docker/Dockerfile-parachain-node-only
@@ -35,31 +35,30 @@
FROM rust-builder as builder-unique-current
ARG PROFILE=release
-ARG FEATURE=
-ARG MAINNET_BRANCH=
-ARG REPO_URL=
+ARG NETWORK
+ARG MAINNET_BRANCH
WORKDIR /unique_parachain
RUN git clone $REPO_URL -b $MAINNET_BRANCH . && \
- cargo build --features=$FEATURE --$PROFILE
+ cargo build --features=${NETWORK}-runtime --$PROFILE
# ===== BUILD target version ======
FROM rust-builder as builder-unique-target
ARG PROFILE=release
-ARG FEATURE=
+ARG NETWORK
COPY . /unique_parachain
WORKDIR /unique_parachain
-RUN cargo build --features=$FEATURE --$PROFILE
+RUN cargo build --features=${NETWORK}-runtime --$PROFILE
# ===== RUN ======
FROM ubuntu:20.04
-ARG RUNTIME
+ARG NETWORK
ARG POLKADOT_LAUNCH_BRANCH
RUN apt-get -y update && \
@@ -78,11 +77,11 @@
npm install --global yarn && \
yarn install
-RUN echo "$RUNTIME"
+RUN echo "$NETWORK"
COPY --from=builder-unique-current /unique_parachain/target/release/unique-collator /unique-chain/current/release/
COPY --from=builder-unique-target /unique_parachain/target/release/unique-collator /unique-chain/target/release/
-COPY --from=builder-unique-target /unique_parachain/target/release/wbuild/"$RUNTIME"-runtime/"$RUNTIME"_runtime.compact.compressed.wasm /unique-chain/target/release/wbuild/"$RUNTIME"-runtime/"$RUNTIME"_runtime.compact.compressed.wasm
+COPY --from=builder-unique-target /unique_parachain/target/release/wbuild/"$NETWORK"-runtime/"$NETWORK"_runtime.compact.compressed.wasm /unique-chain/target/release/wbuild/"$NETWORK"-runtime/"$NETWORK"_runtime.compact.compressed.wasm
COPY --from=polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/
COPY --from=polkadot /unique_parachain/polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm /polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm
.docker/Dockerfile-parachain-upgradediffbeforeafterboth--- a/.docker/Dockerfile-parachain-upgrade
+++ b/.docker/Dockerfile-parachain-upgrade
@@ -34,33 +34,30 @@
FROM rust-builder as builder-unique-current
ARG PROFILE=release
-ARG FEATURE=
-ARG MAINNET_BRANCH=
-ARG REPO_URL=
+ARG NETWORK
+ARG MAINNET_BRANCH
+ARG REPO_URL
WORKDIR /unique_parachain
RUN git clone $REPO_URL -b $MAINNET_BRANCH . && \
- cargo build --features=$FEATURE --$PROFILE
+ cargo build --features=${NETWORK}-runtime --$PROFILE
# ===== BUILD target version ======
FROM rust-builder as builder-unique-target
ARG PROFILE=release
-ARG FEATURE=
-ARG BRANCH=
-ARG REPO_URL=
+ARG NETWORK
COPY . /unique_parachain
WORKDIR /unique_parachain
-RUN cargo build --features=$FEATURE --$PROFILE
+RUN cargo build --features=${NETWORK}-runtime --$PROFILE
# ===== RUN ======
-
FROM ubuntu:20.04
-ARG RUNTIME
+ARG NETWORK
ARG POLKADOT_LAUNCH_BRANCH
RUN apt-get -y update && \
@@ -79,11 +76,11 @@
npm install --global yarn && \
yarn install
-RUN echo "$RUNTIME"
+RUN echo "$NETWORK"
COPY --from=builder-unique-current /unique_parachain/target/release/unique-collator /unique-chain/current/release/
COPY --from=builder-unique-target /unique_parachain/target/release/unique-collator /unique-chain/target/release/
-COPY --from=builder-unique-target /unique_parachain/target/release/wbuild/"$RUNTIME"-runtime/"$RUNTIME"_runtime.compact.compressed.wasm /unique-chain/target/release/wbuild/"$RUNTIME"-runtime/"$RUNTIME"_runtime.compact.compressed.wasm
+COPY --from=builder-unique-target /unique_parachain/target/release/wbuild/"$NETWORK"-runtime/"$NETWORK"_runtime.compact.compressed.wasm /unique-chain/target/release/wbuild/"$NETWORK"-runtime/"$NETWORK"_runtime.compact.compressed.wasm
COPY --from=polkadot /unique_parachain/polkadot/target/release/polkadot /polkadot/target/release/
COPY --from=polkadot /unique_parachain/polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm /polkadot/target/release/wbuild/westend-runtime/westend_runtime.compact.compressed.wasm
.docker/Dockerfile-parachain-upgrade-datadiffbeforeafterboth--- a/.docker/Dockerfile-parachain-upgrade-data
+++ b/.docker/Dockerfile-parachain-upgrade-data
@@ -34,33 +34,32 @@
FROM rust-builder as builder-unique-current
ARG PROFILE=release
-ARG FEATURE=
-ARG MAINNET_BRANCH=
-ARG REPO_URL=
+ARG NETWORK
+ARG MAINNET_BRANCH
+ARG REPO_URL
WORKDIR /unique_parachain
RUN git clone $REPO_URL -b $MAINNET_BRANCH . && \
- cargo build --features=$FEATURE --$PROFILE
+ cargo build --features=${NETWORK}-runtime --$PROFILE
# ===== BUILD target version ======
FROM rust-builder as builder-unique-target
ARG PROFILE=release
-ARG FEATURE=
-ARG BRANCH=
-ARG REPO_URL=
+ARG NETWORK
+ARG BRANCH
+ARG REPO_URL
COPY . /unique_parachain
WORKDIR /unique_parachain
-RUN cargo build --features=$FEATURE --$PROFILE
+RUN cargo build --features=${NETWORK}-runtime --$PROFILE
# ===== RUN ======
-
FROM ubuntu:20.04
-ARG RUNTIME
+ARG NETWORK
ARG REPLICA_FROM
ENV REPLICA_FROM=${REPLICA_FROM}
ARG POLKADOT_LAUNCH_BRANCH
@@ -81,12 +80,12 @@
npm install --global yarn && \
yarn install
-RUN echo "$RUNTIME"
+RUN echo "$NETWORK"
RUN echo "$REPLICA_FROM"
COPY --from=builder-unique-current /unique_parachain/target/release/unique-collator /unique-chain/current/release/
COPY --from=builder-unique-target /unique_parachain/target/release/unique-collator /unique-chain/target/release/
-COPY --from=builder-unique-target /unique_parachain/target/release/wbuild/"$RUNTIME"-runtime/"$RUNTIME"_runtime.compact.compressed.wasm /unique-chain/target/release/wbuild/"$RUNTIME"-runtime/"$RUNTIME"_runtime.compact.compressed.wasm
+COPY --from=builder-unique-target /unique_parachain/target/release/wbuild/"$NETWORK"-runtime/"$NETWORK"_runtime.compact.compressed.wasm /unique-chain/target/release/wbuild/"$NETWORK"-runtime/"$NETWORK"_runtime.compact.compressed.wasm
COPY --from=uniquenetwork/builder-chainql:latest /chainql/target/release/chainql /chainql/target/release/
.docker/Dockerfile-testnet.j2diffbeforeafterboth--- a/.docker/Dockerfile-testnet.j2
+++ b/.docker/Dockerfile-testnet.j2
@@ -33,7 +33,7 @@
RUN git clone -b {{ BRANCH }} https://github.com/UniqueNetwork/unique-chain.git && \
cd unique-chain && \
- cargo build --features={{ FEATURE }} --$PROFILE
+ cargo build --features={{ NETWORK }}-runtime --$PROFILE
# ===== RUN ======
.docker/Dockerfile-try-runtimediffbeforeafterboth--- a/.docker/Dockerfile-try-runtime
+++ b/.docker/Dockerfile-try-runtime
@@ -33,17 +33,17 @@
FROM rust-builder as builder-unique
ARG PROFILE=release
-ARG FEATURE=
+ARG NETWORK
ARG REPLICA_FROM=
-ENV FEATURE $FEATURE
+ENV NETWORK $NETWORK
ENV REPLICA_FROM $REPLICA_FROM
COPY . /unique_parachain
WORKDIR /unique_parachain
-RUN echo "Requested features: $FEATURE\n" && \
+RUN echo "Requested features: ${NETWORK}-runtime\n" && \
echo "Fork from: $REPLICA_FROM\n" && \
- cargo build --features=$FEATURE --release
+ cargo build --features=${NETWORK}-runtime --release
-CMD cargo run --features=try-runtime,$FEATURE --release -- try-runtime --no-spec-check-panic on-runtime-upgrade live --uri $REPLICA_FROM
+CMD cargo run --features=try-runtime,${NETWORK}-runtime --release -- try-runtime --no-spec-check-panic on-runtime-upgrade live --uri $REPLICA_FROM
.docker/docker-compose.tmp-dev.j2diffbeforeafterboth--- a/.docker/docker-compose.tmp-dev.j2
+++ b/.docker/docker-compose.tmp-dev.j2
@@ -5,7 +5,7 @@
build:
args:
- "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
- - "FEATURE={{ FEATURE }}"
+ - "NETWORK={{ NETWORK }}"
context: ../
dockerfile: .docker/Dockerfile-chain-dev
expose:
@@ -18,4 +18,4 @@
options:
max-size: "1m"
max-file: "3"
- command: cargo run --release --features={{ FEATURE }} -- --dev -linfo --unsafe-ws-external --rpc-cors=all --unsafe-rpc-external
+ command: cargo run --release --features={{ NETWORK }}-runtime -- --dev -linfo --unsafe-ws-external --rpc-cors=all --unsafe-rpc-external
.docker/docker-compose.tmp-forkless-data.j2diffbeforeafterboth--- a/.docker/docker-compose.tmp-forkless-data.j2
+++ b/.docker/docker-compose.tmp-forkless-data.j2
@@ -7,8 +7,7 @@
- "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
- "BRANCH={{ BRANCH }}"
- "REPO_URL={{ REPO_URL }}"
- - "FEATURE={{ FEATURE }}"
- - "RUNTIME={{ RUNTIME }}"
+ - "NETWORK"={{ NETWORK }}"
- "POLKADOT_BUILD_BRANCH={{ POLKADOT_BUILD_BRANCH }}"
- "POLKADOT_LAUNCH_BRANCH={{ POLKADOT_LAUNCH_BRANCH }}"
- "MAINNET_TAG={{ MAINNET_TAG }}"
.docker/docker-compose.tmp-forkless-nodata.j2diffbeforeafterboth--- a/.docker/docker-compose.tmp-forkless-nodata.j2
+++ b/.docker/docker-compose.tmp-forkless-nodata.j2
@@ -7,8 +7,7 @@
- "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
- "BRANCH={{ BRANCH }}"
- "REPO_URL={{ REPO_URL }}"
- - "FEATURE={{ FEATURE }}"
- - "RUNTIME={{ RUNTIME }}"
+ - "NETWORK"={{ NETWORK }}"
- "POLKADOT_BUILD_BRANCH={{ POLKADOT_BUILD_BRANCH }}"
- "POLKADOT_LAUNCH_BRANCH={{ POLKADOT_LAUNCH_BRANCH }}"
- "MAINNET_TAG={{ MAINNET_TAG }}"
.docker/docker-compose.tmp-master.j2diffbeforeafterboth--- a/.docker/docker-compose.tmp-master.j2
+++ b/.docker/docker-compose.tmp-master.j2
@@ -7,5 +7,5 @@
- "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
- "BRANCH={{ BRANCH }}"
- "REPO_URL={{ REPO_URL }}"
- - "FEATURE={{ FEATURE }}"
+ - "NETWORK={{ NETWORK }}"
- "POLKADOT_BUILD_BRANCH={{ POLKADOT_BUILD_BRANCH }}"
.docker/docker-compose.tmp-node.j2diffbeforeafterboth--- a/.docker/docker-compose.tmp-node.j2
+++ b/.docker/docker-compose.tmp-node.j2
@@ -7,8 +7,7 @@
- "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
- "BRANCH={{ BRANCH }}"
- "REPO_URL={{ REPO_URL }}"
- - "FEATURE={{ FEATURE }}"
- - "RUNTIME={{ RUNTIME }}"
+ - "NETWORK"={{ NETWORK }}"
- "POLKADOT_BUILD_BRANCH={{ POLKADOT_BUILD_BRANCH }}"
- "POLKADOT_LAUNCH_BRANCH={{ POLKADOT_LAUNCH_BRANCH }}"
- "MAINNET_TAG={{ MAINNET_TAG }}"
.docker/docker-compose.tmp-unit.j2diffbeforeafterboth--- a/.docker/docker-compose.tmp-unit.j2
+++ b/.docker/docker-compose.tmp-unit.j2
@@ -7,7 +7,7 @@
dockerfile: .docker/Dockerfile-chain-dev-unit
args:
- "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
- - "FEATURE={{ FEATURE }}"
+ - "NETWORK={{ NETWORK }}"
logging:
options:
max-size: "1m"
.docker/docker-compose.try-runtime.j2diffbeforeafterboth--- a/.docker/docker-compose.try-runtime.j2
+++ b/.docker/docker-compose.try-runtime.j2
@@ -5,6 +5,6 @@
build:
args:
- "RUST_TOOLCHAIN={{ RUST_TOOLCHAIN }}"
- - "FEATURE={{ FEATURE }}"
+ - "NETWORK={{ NETWORK }}"
- "REPLICA_FROM={{ REPLICA_FROM }}"
.docker/forkless-config/launch-config-forkless-data.j2diffbeforeafterboth--- a/.docker/forkless-config/launch-config-forkless-data.j2
+++ b/.docker/forkless-config/launch-config-forkless-data.j2
@@ -88,7 +88,7 @@
{
"bin": "/unique-chain/current/release/unique-collator",
"upgradeBin": "/unique-chain/target/release/unique-collator",
- "upgradeWasm": "/unique-chain/target/release/wbuild/{{ FEATURE }}/{{ RUNTIME }}_runtime.compact.compressed.wasm",
+ "upgradeWasm": "/unique-chain/target/release/wbuild/{{ NETWORK }}-runtime/{{ NETWORK }}_runtime.compact.compressed.wasm",
"id": "1000",
"balance": "1000000000000000000000000",
"chainRawInitializer": [
.docker/forkless-config/launch-config-forkless-nodata.j2diffbeforeafterboth--- a/.docker/forkless-config/launch-config-forkless-nodata.j2
+++ b/.docker/forkless-config/launch-config-forkless-nodata.j2
@@ -88,7 +88,7 @@
{
"bin": "/unique-chain/current/release/unique-collator",
"upgradeBin": "/unique-chain/target/release/unique-collator",
- "upgradeWasm": "/unique-chain/target/release/wbuild/{{ FEATURE }}/{{ RUNTIME }}_runtime.compact.compressed.wasm",
+ "upgradeWasm": "/unique-chain/target/release/wbuild/{{ NETWORK }}-runtime/{{ NETWORK }}_runtime.compact.compressed.wasm",
"id": "1000",
"balance": "1000000000000000000000000",
"nodes": [
.docker/forkless-config/launch-config-node-update-only-v3.j2diffbeforeafterboth--- a/.docker/forkless-config/launch-config-node-update-only-v3.j2
+++ b/.docker/forkless-config/launch-config-node-update-only-v3.j2
@@ -88,7 +88,7 @@
{
"bin": "/unique-chain/current/release/unique-collator",
"upgradeBin": "/unique-chain/target/release/unique-collator",
- "upgradeWasm": "/unique-chain/target/release/wbuild/{{ FEATURE }}/{{ RUNTIME }}_runtime.compact.compressed.wasm",
+ "upgradeWasm": "/unique-chain/target/release/wbuild/{{ NETWORK }}-runtime/{{ NETWORK }}_runtime.compact.compressed.wasm",
"id": "1000",
"balance": "1000000000000000000000000",
"nodes": [
.github/workflows/forkless-update-data.ymldiffbeforeafterboth--- a/.github/workflows/forkless-update-data.yml
+++ b/.github/workflows/forkless-update-data.yml
@@ -35,9 +35,9 @@
id: create_matrix
with:
matrix: |
- network {opal}, runtime {opal}, features {opal-runtime}, mainnet_branch {${{ env.OPAL_MAINNET_TAG }}}, replica_from_address {${{ env.OPAL_REPLICA_FROM }}}
- network {quartz}, runtime {quartz}, features {quartz-runtime}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}, replica_from_address {${{ env.QUARTZ_REPLICA_FROM }}}
- network {unique}, runtime {unique}, features {unique-runtime}, mainnet_branch {${{ env.UNIQUE_MAINNET_TAG }}}, replica_from_address {${{ env.UNIQUE_REPLICA_FROM }}}
+ network {opal}, mainnet_branch {${{ env.OPAL_MAINNET_TAG }}}, replica_from_address {${{ env.OPAL_REPLICA_FROM }}}
+ network {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}, replica_from_address {${{ env.QUARTZ_REPLICA_FROM }}}
+ network {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_TAG }}}, replica_from_address {${{ env.UNIQUE_REPLICA_FROM }}}
forkless-update-data:
needs: execution-marix
@@ -78,8 +78,7 @@
POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}
MAINNET_TAG=${{ matrix.mainnet_tag }}
MAINNET_BRANCH=${{ matrix.mainnet_branch }}
- FEATURE=${{ matrix.features }}
- RUNTIME=${{ matrix.runtime }}
+ NETWORK=${{ matrix.network }}
BRANCH=${{ github.head_ref }}
REPLICA_FROM=${{ matrix.replica_from_address }}
@@ -92,8 +91,7 @@
template: .docker/forkless-config/launch-config-forkless-data.j2
output_file: .docker/launch-config-forkless-data.json
variables: |
- FEATURE=${{ matrix.features }}
- RUNTIME=${{ matrix.runtime }}
+ NETWORK=${{ matrix.network }}
REPLICA_FROM=${{ matrix.replica_from_address }}
- name: Show launch-config-forkless configuration
.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth--- a/.github/workflows/forkless-update-nodata.yml
+++ b/.github/workflows/forkless-update-nodata.yml
@@ -34,9 +34,9 @@
id: create_matrix
with:
matrix: |
- network {opal}, runtime {opal}, features {opal-runtime}, mainnet_branch {${{ env.OPAL_MAINNET_TAG }}}
- network {quartz}, runtime {quartz}, features {quartz-runtime}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}
- network {unique}, runtime {unique}, features {unique-runtime}, mainnet_branch {${{ env.UNIQUE_MAINNET_TAG }}}
+ network {opal}, mainnet_branch {${{ env.OPAL_MAINNET_TAG }}}
+ network {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}
+ network {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_TAG }}}
forkless-update-nodata:
@@ -79,8 +79,7 @@
POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}
MAINNET_TAG=${{ matrix.mainnet_tag }}
MAINNET_BRANCH=${{ matrix.mainnet_branch }}
- FEATURE=${{ matrix.features }}
- RUNTIME=${{ matrix.runtime }}
+ NETWORK=${{ matrix.network }}
BRANCH=${{ github.head_ref }}
- name: Show build configuration
@@ -92,8 +91,7 @@
template: .docker/forkless-config/launch-config-forkless-nodata.j2
output_file: .docker/launch-config-forkless-nodata.json
variables: |
- FEATURE=${{ matrix.features }}
- RUNTIME=${{ matrix.runtime }}
+ NETWORK=${{ matrix.network }}
- name: Show launch-config-forkless configuration
run: cat .docker/launch-config-forkless-nodata.json
.github/workflows/integration-tests.ymldiffbeforeafterboth1# Test workflow for debug parallel and sequental tests in scope of execution time reducing.2name: Integration tests34# Triger: only call from main workflow(re-usable workflows)5on:6 workflow_call:7#Define Workflow variables89# A workflow run is made up of one or more jobs that can run sequentially or in parallel10jobs:1112 nodes-execution-matrix:1314 name: execution matrix1516 runs-on: self-hosted-ci17 outputs:18 matrix: ${{ steps.create_matrix.outputs.matrix }}1920 steps:2122 - name: Clean Workspace23 uses: AutoModality/action-clean@v1.1.02425 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it26 - uses: actions/checkout@v327 with:28 ref: ${{ github.head_ref }} #Checking out head commit2930 - name: Read .env file31 uses: xom9ikk/dotenv@v1.0.23233 - name: Create Execution matrix34 uses: fabiocaccamo/create-matrix-action@v235 id: create_matrix36 with:37 matrix: |38 network {opal}, runtime {opal}, features {opal-runtime}, mainnet_branch {${{ env.OPAL_MAINNET_TAG }}}39 network {quartz}, runtime {quartz}, features {quartz-runtime}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}40 network {unique}, runtime {unique}, features {unique-runtime}, mainnet_branch {${{ env.UNIQUE_MAINNET_TAG }}}41 42 parallel-test:43 needs: nodes-execution-matrix44 # The type of runner that the job will run on45 runs-on: [self-hosted-ci,large]46474849 timeout-minutes: 13805051 name: ${{ matrix.network }} - parallel5253 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.5455 strategy:56 matrix:57 include: ${{fromJson(needs.nodes-execution-matrix.outputs.matrix)}}5859 steps:6061 - name: Clean Workspace62 uses: AutoModality/action-clean@v1.1.06364 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it65 - uses: actions/checkout@v366 with:67 ref: ${{ github.head_ref }} #Checking out head commit6869 - name: Read .env file70 uses: xom9ikk/dotenv@v1.0.27172 - name: Generate ENV related extend file for docker-compose73 uses: cuchi/jinja2-action@v1.2.074 with:75 template: .docker/docker-compose.tmp-node.j276 output_file: .docker/docker-compose.node.${{ matrix.network }}.yml77 variables: |78 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git79 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}80 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}81 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }} 82 POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}83 MAINNET_TAG=${{ matrix.mainnet_tag }}84 MAINNET_BRANCH=${{ matrix.mainnet_branch }}85 FEATURE=${{ matrix.features }}86 RUNTIME=${{ matrix.runtime }}87 BRANCH=${{ github.head_ref }}88 89 - name: Show build configuration90 run: cat .docker/docker-compose.node.${{ matrix.network }}.yml9192 - name: Generate launch-config-forkless-nodata.json93 uses: cuchi/jinja2-action@v1.2.094 with:95 template: .docker/forkless-config/launch-config-node-update-only-v3.j296 output_file: .docker/launch-config-forkless-nodata.json97 variables: |98 FEATURE=${{ matrix.features }}99 RUNTIME=${{ matrix.runtime }}100 101 - name: Show launch-config-forkless configuration102 run: cat .docker/launch-config-forkless-nodata.json103104 - uses: actions/setup-node@v3105 with:106 node-version: 16107108 - name: Build the stack109 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" up -d --build --remove-orphans --force-recreate --timeout 300110111 # 🚀 POLKADOT LAUNCH COMPLETE 🚀112 - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.113 if: success()114 run: |115 counter=160116 function check_container_status {117 docker inspect -f {{.State.Running}} node-parachain118 }119 function do_docker_logs {120 docker logs --details node-parachain 2>&1121 }122 function is_started {123 if [ "$(check_container_status)" == "true" ]; then124 echo "Container: node-parachain RUNNING";125 echo "Check Docker logs"126 DOCKER_LOGS=$(do_docker_logs)127 if [[ ${DOCKER_LOGS} = *"POLKADOT LAUNCH COMPLETE"* ]];then128 echo "🚀 POLKADOT LAUNCH COMPLETE 🚀"129 return 0130 else131 echo "Message not found in logs output, repeating..."132 return 1133 fi134 else135 echo "Container node-parachain NOT RUNNING"136 echo "Halting all future checks"137 exit 1138 fi139 echo "something goes wrong"140 exit 1141 }142 while ! is_started; do143 echo "Waiting for special message in log files "144 sleep 30s145 counter=$(( $counter - 1 ))146 echo "Counter: $counter"147 if [ "$counter" -gt "0" ]; then148 continue149 else150 break151 fi152 done153 echo "Halting script"154 exit 0155 shell: bash156157 - name: Run Parallel tests on Node Parachain158 working-directory: tests159 run: |160 yarn install161 yarn add mochawesome162 echo "Ready to start tests"163 yarn polkadot-types164 NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}165 env:166 RPC_URL: http://127.0.0.1:9933/167168 - name: Parallel Tests report169 uses: phoenix-actions/test-reporting@v8170 id: test-report-parallel171 if: success() || failure() # run this step even if previous step failed172 with:173 name: Parallel Tests report - ${{ matrix.network }} # Name of the check run which will be created174 path: tests/mochawesome-report/test-parallel-*.json # Path to test results175 reporter: mochawesome-json176 fail-on-error: 'false'177 178 179 - name: Stop running containers180 if: always() # run this step always181 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" down --volumes182183 - name: Remove builder cache184 if: always() # run this step always185 run: |186 docker builder prune -f -a187 docker system prune -f188 docker image prune -f -a189 190 - name: List files in Workspace191 if: always()192 run: ls -la ./193194 sequential-test:195 needs: nodes-execution-matrix196 # The type of runner that the job will run on197 runs-on: [self-hosted-ci,large]198199 timeout-minutes: 1380200201 name: ${{ matrix.network }} - sequential202203 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.204205 strategy:206 matrix:207 include: ${{fromJson(needs.nodes-execution-matrix.outputs.matrix)}}208209 steps:210211 - name: Clean Workspace212 uses: AutoModality/action-clean@v1.1.0213214 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it215 - uses: actions/checkout@v3216 with:217 ref: ${{ github.head_ref }} #Checking out head commit218219 - name: Read .env file220 uses: xom9ikk/dotenv@v1.0.2221222 - name: Generate ENV related extend file for docker-compose223 uses: cuchi/jinja2-action@v1.2.0224 with:225 template: .docker/docker-compose.tmp-node.j2226 output_file: .docker/docker-compose.node.${{ matrix.network }}.yml227 variables: |228 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git229 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}230 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}231 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }} 232 POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}233 MAINNET_TAG=${{ matrix.mainnet_tag }}234 MAINNET_BRANCH=${{ matrix.mainnet_branch }}235 FEATURE=${{ matrix.features }}236 RUNTIME=${{ matrix.runtime }}237 BRANCH=${{ github.head_ref }}238 239 - name: Show build configuration240 run: cat .docker/docker-compose.node.${{ matrix.network }}.yml241242 - name: Generate launch-config-forkless-nodata.json243 uses: cuchi/jinja2-action@v1.2.0244 with:245 template: .docker/forkless-config/launch-config-node-update-only-v3.j2246 output_file: .docker/launch-config-forkless-nodata.json247 variables: |248 FEATURE=${{ matrix.features }}249 RUNTIME=${{ matrix.runtime }}250 251 - name: Show launch-config-forkless configuration252 run: cat .docker/launch-config-forkless-nodata.json253254 - uses: actions/setup-node@v3255 with:256 node-version: 16257258 - name: Build the stack259 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" up -d --build --remove-orphans --force-recreate --timeout 300260261 # 🚀 POLKADOT LAUNCH COMPLETE 🚀262 - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.263 if: success()264 run: |265 counter=160266 function check_container_status {267 docker inspect -f {{.State.Running}} node-parachain268 }269 function do_docker_logs {270 docker logs --details node-parachain 2>&1271 }272 function is_started {273 if [ "$(check_container_status)" == "true" ]; then274 echo "Container: node-parachain RUNNING";275 echo "Check Docker logs"276 DOCKER_LOGS=$(do_docker_logs)277 if [[ ${DOCKER_LOGS} = *"POLKADOT LAUNCH COMPLETE"* ]];then278 echo "🚀 POLKADOT LAUNCH COMPLETE 🚀"279 return 0280 else281 echo "Message not found in logs output, repeating..."282 return 1283 fi284 else285 echo "Container node-parachain NOT RUNNING"286 echo "Halting all future checks"287 exit 1288 fi289 echo "something goes wrong"290 exit 1291 }292 while ! is_started; do293 echo "Waiting for special message in log files "294 sleep 30s295 counter=$(( $counter - 1 ))296 echo "Counter: $counter"297 if [ "$counter" -gt "0" ]; then298 continue299 else300 break301 fi302 done303 echo "Halting script"304 exit 0305 shell: bash306307 - name: Run Sequential tests on Node Parachain308 working-directory: tests309 run: |310 yarn install311 yarn add mochawesome312 echo "Ready to start tests"313 yarn polkadot-types314 NOW=$(date +%s) && yarn testSequential --reporter mochawesome --reporter-options reportFilename=test-sequential-${NOW}315 env:316 RPC_URL: http://127.0.0.1:9933/317318 - name: Sequential Tests report319 uses: phoenix-actions/test-reporting@v8320 id: test-report-sequential321 if: success() || failure() # run this step even if previous step failed322 with:323 name: Parallel Tests report - ${{ matrix.network }} # Name of the check run which will be created324 path: tests/mochawesome-report/test-sequential-*.json # Path to test results325 reporter: mochawesome-json326 fail-on-error: 'false'327 328 - name: Stop running containers329 if: always() # run this step always330 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" down --volumes331332 - name: Remove builder cache333 if: always() # run this step always334 run: |335 docker builder prune -f -a336 docker system prune -f337 docker image prune -f -a338 339 - name: List files in Workspace340 if: always()341 run: ls -la ./1# Test workflow for debug parallel and sequental tests in scope of execution time reducing.2name: Integration tests34# Triger: only call from main workflow(re-usable workflows)5on:6 workflow_call:7#Define Workflow variables89# A workflow run is made up of one or more jobs that can run sequentially or in parallel10jobs:1112 nodes-execution-matrix:1314 name: execution matrix1516 runs-on: self-hosted-ci17 outputs:18 matrix: ${{ steps.create_matrix.outputs.matrix }}1920 steps:2122 - name: Clean Workspace23 uses: AutoModality/action-clean@v1.1.02425 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it26 - uses: actions/checkout@v327 with:28 ref: ${{ github.head_ref }} #Checking out head commit2930 - name: Read .env file31 uses: xom9ikk/dotenv@v1.0.23233 - name: Create Execution matrix34 uses: fabiocaccamo/create-matrix-action@v235 id: create_matrix36 with:37 matrix: |38 network {opal}, mainnet_branch {${{ env.OPAL_MAINNET_TAG }}}39 network {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}40 network {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_TAG }}}41 42 parallel-test:43 needs: nodes-execution-matrix44 # The type of runner that the job will run on45 runs-on: [self-hosted-ci,large]46474849 timeout-minutes: 13805051 name: ${{ matrix.network }} - parallel5253 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.5455 strategy:56 matrix:57 include: ${{fromJson(needs.nodes-execution-matrix.outputs.matrix)}}5859 steps:6061 - name: Clean Workspace62 uses: AutoModality/action-clean@v1.1.06364 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it65 - uses: actions/checkout@v366 with:67 ref: ${{ github.head_ref }} #Checking out head commit6869 - name: Read .env file70 uses: xom9ikk/dotenv@v1.0.27172 - name: Generate ENV related extend file for docker-compose73 uses: cuchi/jinja2-action@v1.2.074 with:75 template: .docker/docker-compose.tmp-node.j276 output_file: .docker/docker-compose.node.${{ matrix.network }}.yml77 variables: |78 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git79 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}80 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}81 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }} 82 POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}83 MAINNET_TAG=${{ matrix.mainnet_tag }}84 MAINNET_BRANCH=${{ matrix.mainnet_branch }}85 NETWORK=${{ matrix.network }}86 BRANCH=${{ github.head_ref }}87 88 - name: Show build configuration89 run: cat .docker/docker-compose.node.${{ matrix.network }}.yml9091 - name: Generate launch-config-forkless-nodata.json92 uses: cuchi/jinja2-action@v1.2.093 with:94 template: .docker/forkless-config/launch-config-node-update-only-v3.j295 output_file: .docker/launch-config-forkless-nodata.json96 variables: |97 NETWORK=${{ matrix.network }}98 99 - name: Show launch-config-forkless configuration100 run: cat .docker/launch-config-forkless-nodata.json101102 - uses: actions/setup-node@v3103 with:104 node-version: 16105106 - name: Build the stack107 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" up -d --build --remove-orphans --force-recreate --timeout 300108109 # 🚀 POLKADOT LAUNCH COMPLETE 🚀110 - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.111 if: success()112 run: |113 counter=160114 function check_container_status {115 docker inspect -f {{.State.Running}} node-parachain116 }117 function do_docker_logs {118 docker logs --details node-parachain 2>&1119 }120 function is_started {121 if [ "$(check_container_status)" == "true" ]; then122 echo "Container: node-parachain RUNNING";123 echo "Check Docker logs"124 DOCKER_LOGS=$(do_docker_logs)125 if [[ ${DOCKER_LOGS} = *"POLKADOT LAUNCH COMPLETE"* ]];then126 echo "🚀 POLKADOT LAUNCH COMPLETE 🚀"127 return 0128 else129 echo "Message not found in logs output, repeating..."130 return 1131 fi132 else133 echo "Container node-parachain NOT RUNNING"134 echo "Halting all future checks"135 exit 1136 fi137 echo "something goes wrong"138 exit 1139 }140 while ! is_started; do141 echo "Waiting for special message in log files "142 sleep 30s143 counter=$(( $counter - 1 ))144 echo "Counter: $counter"145 if [ "$counter" -gt "0" ]; then146 continue147 else148 break149 fi150 done151 echo "Halting script"152 exit 0153 shell: bash154155 - name: Run Parallel tests on Node Parachain156 working-directory: tests157 run: |158 yarn install159 yarn add mochawesome160 echo "Ready to start tests"161 yarn polkadot-types162 NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}163 env:164 RPC_URL: http://127.0.0.1:9933/165166 - name: Parallel Tests report167 uses: phoenix-actions/test-reporting@v8168 id: test-report-parallel169 if: success() || failure() # run this step even if previous step failed170 with:171 name: Parallel Tests report - ${{ matrix.network }} # Name of the check run which will be created172 path: tests/mochawesome-report/test-parallel-*.json # Path to test results173 reporter: mochawesome-json174 fail-on-error: 'false'175 176 177 - name: Stop running containers178 if: always() # run this step always179 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" down --volumes180181 - name: Remove builder cache182 if: always() # run this step always183 run: |184 docker builder prune -f -a185 docker system prune -f186 docker image prune -f -a187 188 - name: List files in Workspace189 if: always()190 run: ls -la ./191192 sequential-test:193 needs: nodes-execution-matrix194 # The type of runner that the job will run on195 runs-on: [self-hosted-ci,large]196197 timeout-minutes: 1380198199 name: ${{ matrix.network }} - sequential200201 continue-on-error: true #Do not stop testing of matrix runs failed. As it decided during PR review - it required 50/50& Let's check it with false.202203 strategy:204 matrix:205 include: ${{fromJson(needs.nodes-execution-matrix.outputs.matrix)}}206207 steps:208209 - name: Clean Workspace210 uses: AutoModality/action-clean@v1.1.0211212 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it213 - uses: actions/checkout@v3214 with:215 ref: ${{ github.head_ref }} #Checking out head commit216217 - name: Read .env file218 uses: xom9ikk/dotenv@v1.0.2219220 - name: Generate ENV related extend file for docker-compose221 uses: cuchi/jinja2-action@v1.2.0222 with:223 template: .docker/docker-compose.tmp-node.j2224 output_file: .docker/docker-compose.node.${{ matrix.network }}.yml225 variables: |226 REPO_URL=${{ github.server_url }}/${{ github.repository }}.git227 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}228 POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}229 POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }} 230 POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}231 MAINNET_TAG=${{ matrix.mainnet_tag }}232 MAINNET_BRANCH=${{ matrix.mainnet_branch }}233 NETWORK=${{ matrix.network }}234 BRANCH=${{ github.head_ref }}235 236 - name: Show build configuration237 run: cat .docker/docker-compose.node.${{ matrix.network }}.yml238239 - name: Generate launch-config-forkless-nodata.json240 uses: cuchi/jinja2-action@v1.2.0241 with:242 template: .docker/forkless-config/launch-config-node-update-only-v3.j2243 output_file: .docker/launch-config-forkless-nodata.json244 variables: |245 NETWORK=${{ matrix.network }}246 247 - name: Show launch-config-forkless configuration248 run: cat .docker/launch-config-forkless-nodata.json249250 - uses: actions/setup-node@v3251 with:252 node-version: 16253254 - name: Build the stack255 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" up -d --build --remove-orphans --force-recreate --timeout 300256257 # 🚀 POLKADOT LAUNCH COMPLETE 🚀258 - name: Check if docker logs consist messages related to testing of Node Parachain Upgrade.259 if: success()260 run: |261 counter=160262 function check_container_status {263 docker inspect -f {{.State.Running}} node-parachain264 }265 function do_docker_logs {266 docker logs --details node-parachain 2>&1267 }268 function is_started {269 if [ "$(check_container_status)" == "true" ]; then270 echo "Container: node-parachain RUNNING";271 echo "Check Docker logs"272 DOCKER_LOGS=$(do_docker_logs)273 if [[ ${DOCKER_LOGS} = *"POLKADOT LAUNCH COMPLETE"* ]];then274 echo "🚀 POLKADOT LAUNCH COMPLETE 🚀"275 return 0276 else277 echo "Message not found in logs output, repeating..."278 return 1279 fi280 else281 echo "Container node-parachain NOT RUNNING"282 echo "Halting all future checks"283 exit 1284 fi285 echo "something goes wrong"286 exit 1287 }288 while ! is_started; do289 echo "Waiting for special message in log files "290 sleep 30s291 counter=$(( $counter - 1 ))292 echo "Counter: $counter"293 if [ "$counter" -gt "0" ]; then294 continue295 else296 break297 fi298 done299 echo "Halting script"300 exit 0301 shell: bash302303 - name: Run Sequential tests on Node Parachain304 working-directory: tests305 run: |306 yarn install307 yarn add mochawesome308 echo "Ready to start tests"309 yarn polkadot-types310 NOW=$(date +%s) && yarn testSequential --reporter mochawesome --reporter-options reportFilename=test-sequential-${NOW}311 env:312 RPC_URL: http://127.0.0.1:9933/313314 - name: Sequential Tests report315 uses: phoenix-actions/test-reporting@v8316 id: test-report-sequential317 if: success() || failure() # run this step even if previous step failed318 with:319 name: Parallel Tests report - ${{ matrix.network }} # Name of the check run which will be created320 path: tests/mochawesome-report/test-sequential-*.json # Path to test results321 reporter: mochawesome-json322 fail-on-error: 'false'323 324 - name: Stop running containers325 if: always() # run this step always326 run: docker-compose -f ".docker/docker-compose-forkless.yml" -f ".docker/docker-compose.node.${{ matrix.network }}.yml" down --volumes327328 - name: Remove builder cache329 if: always() # run this step always330 run: |331 docker builder prune -f -a332 docker system prune -f333 docker image prune -f -a334 335 - name: List files in Workspace336 if: always()337 run: ls -la ./.github/workflows/market-test.ymldiffbeforeafterboth--- a/.github/workflows/market-test.yml
+++ b/.github/workflows/market-test.yml
@@ -24,7 +24,6 @@
matrix:
include:
- network: "opal"
- features: "opal-runtime"
steps:
- name: Clean Workspace
@@ -61,7 +60,7 @@
RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}
POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}
- FEATURE=${{ matrix.features }}
+ NETWORK=${{ matrix.network }}
BRANCH=${{ github.head_ref }}
.github/workflows/node-only-update.ymldiffbeforeafterboth--- a/.github/workflows/node-only-update.yml
+++ b/.github/workflows/node-only-update.yml
@@ -37,9 +37,9 @@
id: create_matrix
with:
matrix: |
- network {opal}, runtime {opal}, features {opal-runtime}, mainnet_branch {${{ env.OPAL_MAINNET_TAG }}}
- network {quartz}, runtime {quartz}, features {quartz-runtime}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}
- network {unique}, runtime {unique}, features {unique-runtime}, mainnet_branch {${{ env.UNIQUE_MAINNET_TAG }}}
+ network {opal}, mainnet_branch {${{ env.OPAL_MAINNET_TAG }}}
+ network {quartz}, mainnet_branch {${{ env.QUARTZ_MAINNET_TAG }}}
+ network {unique}, mainnet_branch {${{ env.UNIQUE_MAINNET_TAG }}}
@@ -84,8 +84,7 @@
POLKADOT_MAINNET_BRANCH=${{ env.POLKADOT_MAINNET_BRANCH }}
MAINNET_TAG=${{ matrix.mainnet_tag }}
MAINNET_BRANCH=${{ matrix.mainnet_branch }}
- FEATURE=${{ matrix.features }}
- RUNTIME=${{ matrix.runtime }}
+ NETWORK=${{ matrix.network }}
BRANCH=${{ github.head_ref }}
- name: Show build configuration
@@ -97,8 +96,7 @@
template: .docker/forkless-config/launch-config-forkless-nodata.j2
output_file: .docker/launch-config-forkless-nodata.json
variables: |
- FEATURE=${{ matrix.features }}
- RUNTIME=${{ matrix.runtime }}
+ NETWORK=${{ matrix.network }}
- name: Show launch-config-forkless configuration
run: cat .docker/launch-config-forkless-nodata.json
.github/workflows/testnet-build.ymldiffbeforeafterboth--- a/.github/workflows/testnet-build.yml
+++ b/.github/workflows/testnet-build.yml
@@ -40,9 +40,9 @@
id: create_matrix
with:
matrix: |
- network {opal}, runtime {opal}, features {opal-runtime}
- network {quartz}, runtime {quartz}, features {quartz-runtime}
- network {unique}, runtime {unique}, features {unique-runtime}
+ network {opal}
+ network {quartz}
+ network {unique}
testnet-build:
needs: prepare-execution-marix
@@ -85,8 +85,7 @@
NETWORK=${{ matrix.network }}
POLKADOT_BUILD_BRANCH=${{ env.POLKADOT_BUILD_BRANCH }}
POLKADOT_LAUNCH_BRANCH=${{ env.POLKADOT_LAUNCH_BRANCH }}
- FEATURE=${{ matrix.features }}
- RUNTIME=${{ matrix.runtime }}
+ NETWORK=${{ matrix.network }}
BRANCH=${{ github.head_ref }}
- name: Show build configuration
.github/workflows/try-runtime.ymldiffbeforeafterboth--- a/.github/workflows/try-runtime.yml
+++ b/.github/workflows/try-runtime.yml
@@ -19,13 +19,10 @@
matrix:
include:
- network: opal
- features: opal-runtime
replica_from_address: wss://eu-ws-opal.unique.network:443
- network: quartz
- features: quartz-runtime
replica_from_address: wss://eu-ws-quartz.unique.network:443
- network: unique
- features: unique-runtime
replica_from_address: wss://eu-ws.unique.network:443
steps:
@@ -48,7 +45,7 @@
output_file: .docker/docker-compose.try-runtime.${{ matrix.network }}.yml
variables: |
RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
- FEATURE=${{ matrix.features }}
+ NETWORK=${{ matrix.network }}
REPLICA_FROM=${{ matrix.replica_from_address }}
- name: Show build configuration
.github/workflows/yarn-dev.ymldiffbeforeafterboth--- a/.github/workflows/yarn-dev.yml
+++ b/.github/workflows/yarn-dev.yml
@@ -24,11 +24,8 @@
matrix:
include:
- network: "opal"
- features: "opal-runtime"
- network: "quartz"
- features: "quartz-runtime"
- network: "unique"
- features: "unique-runtime"
steps:
@@ -50,7 +47,7 @@
output_file: .docker/docker-compose.${{ matrix.network }}.yml
variables: |
RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}
- FEATURE=${{ matrix.features }}
+ NETWORK=${{ matrix.network }}
- name: Show build configuration