From 3e67a4cefdd8e84ca01c132e3e8d9491aab11242 Mon Sep 17 00:00:00 2001 From: pmikolajczyk Date: Fri, 31 Dec 2021 10:06:58 +0100 Subject: [PATCH 1/3] Add jobs --- .github/scripts/test_update.sh | 39 ++++ .github/workflows/e2e-tests-main-devnet.yml | 186 +++++++++++--------- local-tests/test_update.py | 12 +- 3 files changed, 148 insertions(+), 89 deletions(-) create mode 100755 .github/scripts/test_update.sh diff --git a/.github/scripts/test_update.sh b/.github/scripts/test_update.sh new file mode 100755 index 0000000000..06c4cf9ee3 --- /dev/null +++ b/.github/scripts/test_update.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +set -eu + +pushd local-tests/ + +if [ ! -f "$OLD_BINARY" ]; then + echo "$OLD_BINARY does not exist." + exit 1 +fi + +if [ ! -f "$NEW_BINARY" ]; then + echo "$NEW_BINARY does not exist." + exit 1 +fi + +if [ ! -f "$NEW_RUNTIME" ]; then + echo "$NEW_RUNTIME does not exist." + exit 1 +fi + +echo "Testing runtime update. + Old binary sha: $(sha256sum $OLD_BINARY) + New binary sha: $(sha256sum $NEW_BINARY) + New runtime: $NEW_RUNTIME" + +echo 'Preparing environment' +chmod +x $OLD_BINARY $NEW_BINARY + +pip install -r requirements.txt + +pushd send-runtime/ +cargo build --release +popd + +echo 'Running test' +./test_update.py + +popd diff --git a/.github/workflows/e2e-tests-main-devnet.yml b/.github/workflows/e2e-tests-main-devnet.yml index 1858f21eae..49f94da470 100644 --- a/.github/workflows/e2e-tests-main-devnet.yml +++ b/.github/workflows/e2e-tests-main-devnet.yml @@ -13,16 +13,17 @@ on: - main jobs: - build-node: - name: Build binary artifact and docker image of the node + build-new-node: + name: Build node and runtime artifacts (PR version) + uses: Cardinal-Cryptography/aleph-node/.github/workflows/build-node-and-runtime.yml@main + with: + rust-toolchain-version: 'nightly-2021-10-24' + + + build-docker: + needs: [build-new-node] + name: Build docker image of the node runs-on: ubuntu-latest - env: - RUST_TOOLCHAIN_VERSION: nightly-2021-10-24 - RUST_BACKTRACE: full - SCCACHE_VERSION: 0.2.13 - SCCACHE_CACHE_SIZE: 2G - SCCACHE_PATH: /home/runner/.cache/sccache - # SCCACHE_RECACHE: 1 # to clear cache uncomment this, let the workflow run once, then comment it out again steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.9.0 @@ -32,78 +33,22 @@ jobs: - name: Checkout Source code uses: actions/checkout@v2 - - name: Install sccache for ubuntu-latest - env: - LINK: https://github.com/mozilla/sccache/releases/download - run: | - SCCACHE_FILE=sccache-$SCCACHE_VERSION-x86_64-unknown-linux-musl - mkdir -p $HOME/.local/bin - curl -L "$LINK/$SCCACHE_VERSION/$SCCACHE_FILE.tar.gz" | tar xz - mv -f $SCCACHE_FILE/sccache $HOME/.local/bin/sccache - echo "$HOME/.local/bin" >> $GITHUB_PATH - - - name: Restore Cargo Cache - uses: actions/cache@v2 - with: - path: | - ~/.cargo/bin/ - ~/.cargo/registry/index/ - ~/.cargo/registry/cache/ - ~/.cargo/git/db/ - target/ - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - - name: Install Rust Toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} - override: true - - - name: Install WASM target - run: rustup target add wasm32-unknown-unknown --toolchain "$RUST_TOOLCHAIN_VERSION" - - - name: Restore sccache - uses: actions/cache@v2 - continue-on-error: false - with: - path: ${{ env.SCCACHE_PATH }} - key: ${{ runner.os }}-sccache-${{ hashFiles('**/Cargo.lock') }} - - - name: Start sccache server - run: sccache --start-server - - - name: Build Binary - run: | - export RUSTC_WRAPPER=$HOME/.local/bin/sccache - cargo build --release - - - name: Build runtime - run: | - export RUSTC_WRAPPER=$HOME/.local/bin/sccache - cargo build --release -p aleph-runtime - - - name: Print sccache stats - run: sccache --show-stats +# - name: Restore Cargo Cache +# uses: actions/cache@v2 +# with: +# path: | +# ~/.cargo/bin/ +# ~/.cargo/registry/index/ +# ~/.cargo/registry/cache/ +# ~/.cargo/git/db/ +# target/ +# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - name: Stop sccache server - run: sccache --stop-server || true - - - name: Upload binary - uses: actions/upload-artifact@v2 + - name: Download artifact + uses: actions/download-artifact@v2 with: name: aleph-node - path: target/release/aleph-node - if-no-files-found: error - retention-days: 7 - - - name: Upload runtime - uses: actions/upload-artifact@v2 - with: - name: aleph-runtime - path: target/release/wbuild/aleph-runtime/aleph_runtime.compact.wasm - if-no-files-found: error - retention-days: 7 + path: target/release/ - name: Build docker image id: build-image @@ -114,14 +59,14 @@ jobs: - name: Upload docker image uses: actions/upload-artifact@v2 with: - name: aleph-node + name: aleph-docker path: aleph-node.tar if-no-files-found: error retention-days: 7 check-determinism: - needs: [build-node] + needs: [build-new-node] name: Verify runtime build determinism runs-on: ubuntu-latest env: @@ -203,7 +148,7 @@ jobs: run-e2e-tests: - needs: [build-node, build-test-client] + needs: [build-docker, build-test-client] name: Run e2e tests suite runs-on: ubuntu-latest steps: @@ -218,7 +163,7 @@ jobs: - name: Download artifact with docker image uses: actions/download-artifact@v2 with: - name: aleph-node + name: aleph-docker - name: Load node docker image shell: bash @@ -264,7 +209,7 @@ jobs: if: github.event_name == 'push' uses: actions/download-artifact@v2 with: - name: aleph-node + name: aleph-docker - name: Load node docker image if: github.event_name == 'push' @@ -316,3 +261,78 @@ jobs: SLACK_USERNAME: GithubActions SLACK_TITLE: e2e tests job has finished MSG_MINIMAL: actions url + + + build-old-node: + name: Build node and runtime artifacts (main version) + uses: Cardinal-Cryptography/aleph-node/.github/workflows/build-node-and-runtime.yml@main + with: + rust-toolchain-version: 'nightly-2021-10-24' + ref: 'main' + artifact-prefix: 'old-' + + + test-runtime-update: + name: Test runtime update + runs-on: ubuntu-latest + needs: [build-old-node, build-new-node] + env: + RUST_TOOLCHAIN_VERSION: nightly-2021-10-24 + steps: + - name: Cancel previous runs + uses: styfle/cancel-workflow-action@0.9.0 + with: + access_token: ${{ github.token }} + + - name: Checkout source code + uses: actions/checkout@v2 + + - name: Install rust toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} + override: true + + - name: Restore Cargo Cache + uses: actions/cache@v2 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + + - name: Download all artifacts + uses: actions/download-artifact@v2 + with: + path: local-tests/ + + - name: Setup Python + uses: actions/setup-python@v2 + with: + python-version: '3.8' + + - name: Test update + env: + # Relative to local-tests/ directory + OLD_BINARY: aleph-node/aleph-node + NEW_BINARY: old-aleph-node/aleph-node + NEW_RUNTIME: aleph-runtime/aleph_runtime.compact.wasm + run: ./.github/scripts/test_update.sh + + + remove-old-artifacts: + name: Remove old node and runtime artifacts + runs-on: ubuntu-latest + needs: [test-runtime-update] + steps: + - name: Remove artifacts + uses: geekyeggo/delete-artifact@v1 + with: + failOnError: false + name: | + old-aleph-node + old-aleph-runtime diff --git a/local-tests/test_update.py b/local-tests/test_update.py index 9863382b83..d0ef3a1846 100755 --- a/local-tests/test_update.py +++ b/local-tests/test_update.py @@ -1,5 +1,5 @@ #!/bin/env python - +import os import subprocess from os.path import join from time import sleep @@ -7,13 +7,13 @@ from chainrunner import Chain, Seq, generate_keys # Path to working directory, where chainspec, logs and nodes' dbs are written: -WORKDIR = '/tmp/workdir' +workdir = os.getenv('WORKDIR', '/tmp/workdir') # Path to the pre-update aleph-node binary: -oldbin = join(WORKDIR, 'aleph-node-old') +oldbin = os.getenv('OLD_BINARY', join(workdir, 'aleph-node-old')) # Path to the post-update aleph-node binary: -newbin = join(WORKDIR, 'aleph-node-new') +newbin = os.getenv('NEW_BINARY', join(workdir, 'aleph-node-new')) # Path to the post-update compiled runtime: -runtime = join(WORKDIR, 'aleph_runtime.compact.wasm') +runtime = os.getenv('NEW_RUNTIME', join(workdir, 'aleph_runtime.compact.wasm')) # Path to the send-runtime binary (which lives in aleph-node/local-tests/send-runtime): SEND_RUNTIME = 'send-runtime/target/release/send_runtime' @@ -37,7 +37,7 @@ def check_highest(nodes): phrases = ['//Cartman', '//Stan', '//Kyle', '//Kenny'] keys = generate_keys(newbin, phrases) -chain = Chain(WORKDIR) +chain = Chain(workdir) print('Bootstraping the chain with old binary') chain.bootstrap(oldbin, keys.values(), From c858fa615ac7d490fdad3edde517a2eaafe7d985 Mon Sep 17 00:00:00 2001 From: pmikolajczyk Date: Mon, 3 Jan 2022 14:58:01 +0100 Subject: [PATCH 2/3] checkpoint --- .github/scripts/test_update.sh | 39 --- .github/workflows/build-excluded-packages.yml | 2 +- .github/workflows/e2e-tests-main-devnet.yml | 277 ++---------------- .github/workflows/post-dod-checklist.yml | 2 +- .github/workflows/unit_tests.yml | 2 +- local-tests/test_update.py | 12 +- 6 files changed, 30 insertions(+), 304 deletions(-) delete mode 100755 .github/scripts/test_update.sh diff --git a/.github/scripts/test_update.sh b/.github/scripts/test_update.sh deleted file mode 100755 index 06c4cf9ee3..0000000000 --- a/.github/scripts/test_update.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash - -set -eu - -pushd local-tests/ - -if [ ! -f "$OLD_BINARY" ]; then - echo "$OLD_BINARY does not exist." - exit 1 -fi - -if [ ! -f "$NEW_BINARY" ]; then - echo "$NEW_BINARY does not exist." - exit 1 -fi - -if [ ! -f "$NEW_RUNTIME" ]; then - echo "$NEW_RUNTIME does not exist." - exit 1 -fi - -echo "Testing runtime update. - Old binary sha: $(sha256sum $OLD_BINARY) - New binary sha: $(sha256sum $NEW_BINARY) - New runtime: $NEW_RUNTIME" - -echo 'Preparing environment' -chmod +x $OLD_BINARY $NEW_BINARY - -pip install -r requirements.txt - -pushd send-runtime/ -cargo build --release -popd - -echo 'Running test' -./test_update.py - -popd diff --git a/.github/workflows/build-excluded-packages.yml b/.github/workflows/build-excluded-packages.yml index f3461b629b..8a818ba74c 100644 --- a/.github/workflows/build-excluded-packages.yml +++ b/.github/workflows/build-excluded-packages.yml @@ -1,6 +1,6 @@ name: Check excluded packages -on: pull_request +on: workflow_call jobs: build: diff --git a/.github/workflows/e2e-tests-main-devnet.yml b/.github/workflows/e2e-tests-main-devnet.yml index 49f94da470..a39545a8bf 100644 --- a/.github/workflows/e2e-tests-main-devnet.yml +++ b/.github/workflows/e2e-tests-main-devnet.yml @@ -20,7 +20,7 @@ jobs: rust-toolchain-version: 'nightly-2021-10-24' - build-docker: + build-docker-not-cached: needs: [build-new-node] name: Build docker image of the node runs-on: ubuntu-latest @@ -33,17 +33,6 @@ jobs: - name: Checkout Source code uses: actions/checkout@v2 -# - name: Restore Cargo Cache -# uses: actions/cache@v2 -# with: -# path: | -# ~/.cargo/bin/ -# ~/.cargo/registry/index/ -# ~/.cargo/registry/cache/ -# ~/.cargo/git/db/ -# target/ -# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - name: Download artifact uses: actions/download-artifact@v2 with: @@ -53,8 +42,10 @@ jobs: - name: Build docker image id: build-image run: | + sha256sum target/release/aleph-node docker build --tag aleph-node:latest -f ./docker/Dockerfile . docker save -o aleph-node.tar aleph-node:latest + docker history --no-trunc aleph-node:latest - name: Upload docker image uses: actions/upload-artifact@v2 @@ -65,56 +56,10 @@ jobs: retention-days: 7 - check-determinism: + build-docker-cached: needs: [build-new-node] - name: Verify runtime build determinism - runs-on: ubuntu-latest - env: - RUST_TOOLCHAIN_VERSION: nightly-2021-10-24 - RUST_BACKTRACE: full - steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.0 - with: - access_token: ${{ github.token }} - - - name: Checkout Source code - uses: actions/checkout@v2 - - - name: Install Rust Toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} - override: true - - - name: Install WASM target - run: rustup target add wasm32-unknown-unknown --toolchain "$RUST_TOOLCHAIN_VERSION" - - - name: Download artifact - uses: actions/download-artifact@v2 - with: - name: aleph-runtime - - - name: Build runtime and compare checksum with artifact - env: - ARTIFACT: aleph_runtime.compact.wasm - TARGET_DIR: target/release/wbuild/aleph-runtime - run: | - mkdir -p "$TARGET_DIR" - mv "$ARTIFACT" "$TARGET_DIR" - sha256sum "$TARGET_DIR/$ARTIFACT" > checksum.sha256 - cargo clean - cargo build --release -p aleph-runtime - sha256sum -c checksum.sha256 - - - build-test-client: - name: Build e2e test client suite + name: Build docker image of the node runs-on: ubuntu-latest - env: - RUST_TOOLCHAIN_VERSION: nightly-2021-10-24 - RUST_BACKTRACE: full steps: - name: Cancel Previous Runs uses: styfle/cancel-workflow-action@0.9.0 @@ -124,176 +69,6 @@ jobs: - name: Checkout Source code uses: actions/checkout@v2 - - name: Install Rust Toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} - override: true - - - name: Build binary and docker image - run: | - cd e2e-tests/ - cargo build --release - docker build --tag aleph-e2e-client:latest -f Dockerfile . - docker save -o aleph-e2e-client.tar aleph-e2e-client:latest - - - name: Upload Artifact - uses: actions/upload-artifact@v2 - with: - name: aleph-e2e-client - path: e2e-tests/aleph-e2e-client.tar - if-no-files-found: error - retention-days: 7 - - - run-e2e-tests: - needs: [build-docker, build-test-client] - name: Run e2e tests suite - runs-on: ubuntu-latest - steps: - - name: GIT | Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.0 - with: - access_token: ${{ github.token }} - - - name: GIT | Checkout Source code - uses: actions/checkout@v2 - - - name: Download artifact with docker image - uses: actions/download-artifact@v2 - with: - name: aleph-docker - - - name: Load node docker image - shell: bash - run: docker load -i aleph-node.tar - - - name: Run consensus party - run: ./.github/scripts/run_consensus.sh - - - name: Display bootnode logs - run: docker logs damian --follow & - - - name: Download artifact with the test suite image - uses: actions/download-artifact@v2 - with: - name: aleph-e2e-client - - - name: Load test suite docker image - shell: bash - run: docker load -i aleph-e2e-client.tar - - - name: Run e2e test suite - shell: bash - timeout-minutes: 10 - run: | - ./.github/scripts/run_e2e_tests.sh - - - push-image: - needs: [run-e2e-tests] - name: Push node image to the ECR repository - runs-on: ubuntu-latest - steps: - - name: GIT | Cancel Previous Runs - uses: styfle/cancel-workflow-action@0.9.0 - with: - access_token: ${{ github.token }} - - - name: GIT | Checkout Source code - if: github.event_name == 'push' - uses: actions/checkout@v2 - - - name: Download artifact with docker image - if: github.event_name == 'push' - uses: actions/download-artifact@v2 - with: - name: aleph-docker - - - name: Load node docker image - if: github.event_name == 'push' - shell: bash - run: docker load -i aleph-node.tar - - - name: Configure AWS credentials - if: github.event_name == 'push' - uses: aws-actions/configure-aws-credentials@v1 - with: - aws-access-key-id: ${{ secrets.AWS_MAINNET_ACCESS_KEY_ID }} - aws-secret-access-key: ${{ secrets.AWS_MAINNET_SECRET_ACCESS_KEY }} - aws-region: eu-central-1 - - - name: Login to Public Amazon ECR - if: github.event_name == 'push' - id: login-public-ecr - uses: docker/login-action@v1 - with: - registry: public.ecr.aws - username: ${{ secrets.AWS_MAINNET_ACCESS_KEY_ID }} - password: ${{ secrets.AWS_MAINNET_SECRET_ACCESS_KEY }} - env: - AWS_REGION: us-east-1 - - - name: GIT | Get branch info & current commit sha. - id: vars - shell: bash - run: | - echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})" - echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" - - - name: Push aleph-node Current Image to Public ECR - if: github.event_name == 'push' - env: - CURRENT_IMAGE: aleph-node:latest - ECR_PUSH_IMAGE: public.ecr.aws/p6e8q1z1/aleph-node:${{ steps.vars.outputs.sha_short }} - run: | - docker tag ${{ env.CURRENT_IMAGE }} ${{ env.ECR_PUSH_IMAGE }} - docker push ${{ env.ECR_PUSH_IMAGE }} - - - name: Send Slack Notification - if: github.event_name == 'push' - uses: rtCamp/action-slack-notify@v2 - continue-on-error: true - env: - SLACK_COLOR: ${{ job.status }} - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - SLACK_USERNAME: GithubActions - SLACK_TITLE: e2e tests job has finished - MSG_MINIMAL: actions url - - - build-old-node: - name: Build node and runtime artifacts (main version) - uses: Cardinal-Cryptography/aleph-node/.github/workflows/build-node-and-runtime.yml@main - with: - rust-toolchain-version: 'nightly-2021-10-24' - ref: 'main' - artifact-prefix: 'old-' - - - test-runtime-update: - name: Test runtime update - runs-on: ubuntu-latest - needs: [build-old-node, build-new-node] - env: - RUST_TOOLCHAIN_VERSION: nightly-2021-10-24 - steps: - - name: Cancel previous runs - uses: styfle/cancel-workflow-action@0.9.0 - with: - access_token: ${{ github.token }} - - - name: Checkout source code - uses: actions/checkout@v2 - - - name: Install rust toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ env.RUST_TOOLCHAIN_VERSION }} - override: true - - name: Restore Cargo Cache uses: actions/cache@v2 with: @@ -305,34 +80,24 @@ jobs: target/ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - - name: Download all artifacts + - name: Download artifact uses: actions/download-artifact@v2 with: - path: local-tests/ - - - name: Setup Python - uses: actions/setup-python@v2 - with: - python-version: '3.8' - - - name: Test update - env: - # Relative to local-tests/ directory - OLD_BINARY: aleph-node/aleph-node - NEW_BINARY: old-aleph-node/aleph-node - NEW_RUNTIME: aleph-runtime/aleph_runtime.compact.wasm - run: ./.github/scripts/test_update.sh + name: aleph-node + path: target/release/ + - name: Build docker image + id: build-image + run: | + sha256sum target/release/aleph-node + docker build --tag aleph-node:latest -f ./docker/Dockerfile . + docker save -o aleph-node.tar aleph-node:latest + docker history --no-trunc aleph-node:latest - remove-old-artifacts: - name: Remove old node and runtime artifacts - runs-on: ubuntu-latest - needs: [test-runtime-update] - steps: - - name: Remove artifacts - uses: geekyeggo/delete-artifact@v1 + - name: Upload docker image + uses: actions/upload-artifact@v2 with: - failOnError: false - name: | - old-aleph-node - old-aleph-runtime + name: aleph-docker-cached + path: aleph-node.tar + if-no-files-found: error + retention-days: 7 diff --git a/.github/workflows/post-dod-checklist.yml b/.github/workflows/post-dod-checklist.yml index 2935f3d3db..667c3eb6a7 100644 --- a/.github/workflows/post-dod-checklist.yml +++ b/.github/workflows/post-dod-checklist.yml @@ -1,5 +1,5 @@ name: Post DoD checklist -on: [pull_request_target] +on: workflow_call jobs: run: runs-on: ubuntu-latest diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index f5b67797e9..df49ddc379 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -1,6 +1,6 @@ name: unit-tests -on: pull_request +on: workflow_call jobs: check-test-and-lint: diff --git a/local-tests/test_update.py b/local-tests/test_update.py index d0ef3a1846..9863382b83 100755 --- a/local-tests/test_update.py +++ b/local-tests/test_update.py @@ -1,5 +1,5 @@ #!/bin/env python -import os + import subprocess from os.path import join from time import sleep @@ -7,13 +7,13 @@ from chainrunner import Chain, Seq, generate_keys # Path to working directory, where chainspec, logs and nodes' dbs are written: -workdir = os.getenv('WORKDIR', '/tmp/workdir') +WORKDIR = '/tmp/workdir' # Path to the pre-update aleph-node binary: -oldbin = os.getenv('OLD_BINARY', join(workdir, 'aleph-node-old')) +oldbin = join(WORKDIR, 'aleph-node-old') # Path to the post-update aleph-node binary: -newbin = os.getenv('NEW_BINARY', join(workdir, 'aleph-node-new')) +newbin = join(WORKDIR, 'aleph-node-new') # Path to the post-update compiled runtime: -runtime = os.getenv('NEW_RUNTIME', join(workdir, 'aleph_runtime.compact.wasm')) +runtime = join(WORKDIR, 'aleph_runtime.compact.wasm') # Path to the send-runtime binary (which lives in aleph-node/local-tests/send-runtime): SEND_RUNTIME = 'send-runtime/target/release/send_runtime' @@ -37,7 +37,7 @@ def check_highest(nodes): phrases = ['//Cartman', '//Stan', '//Kyle', '//Kenny'] keys = generate_keys(newbin, phrases) -chain = Chain(workdir) +chain = Chain(WORKDIR) print('Bootstraping the chain with old binary') chain.bootstrap(oldbin, keys.values(), From 50d58e097198d4ae6a4d7461bd5bf04de5e25ac0 Mon Sep 17 00:00:00 2001 From: pmikolajczyk Date: Mon, 3 Jan 2022 15:11:26 +0100 Subject: [PATCH 3/3] chmod --- .github/workflows/e2e-tests-main-devnet.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/e2e-tests-main-devnet.yml b/.github/workflows/e2e-tests-main-devnet.yml index a39545a8bf..e4711c6b03 100644 --- a/.github/workflows/e2e-tests-main-devnet.yml +++ b/.github/workflows/e2e-tests-main-devnet.yml @@ -42,6 +42,8 @@ jobs: - name: Build docker image id: build-image run: | + ls -al target/release/aleph-node + chmod +x target/release/aleph-node sha256sum target/release/aleph-node docker build --tag aleph-node:latest -f ./docker/Dockerfile . docker save -o aleph-node.tar aleph-node:latest @@ -89,6 +91,7 @@ jobs: - name: Build docker image id: build-image run: | + ls -al target/release/aleph-node sha256sum target/release/aleph-node docker build --tag aleph-node:latest -f ./docker/Dockerfile . docker save -o aleph-node.tar aleph-node:latest