From bfe18326856846bb219c18f5cabda1aa04e5f40f Mon Sep 17 00:00:00 2001 From: Ignazio Bovo Date: Thu, 30 May 2024 17:39:32 +0200 Subject: [PATCH] ci: :green_heart: remove runtime ugrade test --- .github/workflows/run-network-tests.yml | 75 ------------------------- 1 file changed, 75 deletions(-) diff --git a/.github/workflows/run-network-tests.yml b/.github/workflows/run-network-tests.yml index 2209ee339a..fef9b8be46 100644 --- a/.github/workflows/run-network-tests.yml +++ b/.github/workflows/run-network-tests.yml @@ -183,78 +183,3 @@ jobs: export RUNTIME=${{ needs.build_images.outputs.runtime }} export NO_STORAGE=${{ matrix.no_storage }} tests/network-tests/run-tests.sh ${{ matrix.scenario }} - - runtime_upgrade: - name: Runtime Upgrade from production runtime - needs: build_images - runs-on: ubuntu-latest - # Disabling until we find a workaround - # as it is no longer practical to start the node - # while importing huge state from production network in genesis block. - # if: github.ref != 'refs/heads/master' - if: false - steps: - # Checkout master branch - - name: check out master repo - uses: actions/checkout@v4 - with: - repository: Joystream/joystream - ref: master - - - name: pull base runtime image - id: pull_base_image - env: - RUNTIME_PROFILE: 'TESTING' - run: | - export RUNTIME=`scripts/runtime-code-shasum.sh` - echo "::set-output name=shasum::${RUNTIME}" - docker pull joystream/node:$RUNTIME - docker images - - # Get new runtime built for this workflow (target runtime) - # tagged in local repo as joystream/node:latest - - name: Get artifacts - uses: actions/download-artifact@v3 - with: - name: ${{ needs.build_images.outputs.use_artifact }} - - name: Install artifacts - run: | - docker load --input joystream-node-docker-image.tar.gz - docker images - - # Checkout workflow's branch/tag/commit - - name: checkout workflow branch - uses: actions/checkout@v4 - - # Look only for changes that would indicate possible change in runtime version - # This is not the best way to check. Ideally the script "run-runtime-upgrade-tests.sh" should - # look for the change of `spec_version`, and exit gracefully. - - name: Check for runtime version change - uses: technote-space/get-diff-action@v3 - with: - PREFIX_FILTER: | - runtime - runtime-modules - SUFFIX_FILTER: | - .rs - - name: setup node - uses: actions/setup-node@v4 - with: - node-version: '18.x' - - name: Install packages and dependencies - if: env.GIT_DIFF - run: | - yarn build - - name: Ensure tests are runnable - if: env.GIT_DIFF - run: yarn workspace network-tests build - - name: Execute network tests - if: env.GIT_DIFF - env: - TARGET_RUNTIME: ${{ needs.build_images.outputs.runtime }} - RUNTIME: ${{ steps.pull_base_image.outputs.shasum }} - run: | - export HOME=${PWD} - mkdir -p ${HOME}/.local/share/joystream-cli - yarn joystream-cli api:setUri ws://localhost:9944 - tests/network-tests/run-runtime-upgrade-tests.sh