difftreelog
ci do not regenerate types on every run
in: master
6 files changed
.github/workflows/collator-selection.ymldiffbeforeafterboth--- a/.github/workflows/collator-selection.yml
+++ b/.github/workflows/collator-selection.yml
@@ -237,7 +237,6 @@
yarn add mochawesome
node scripts/readyness.js
echo "Ready to start tests"
- yarn polkadot-types
NOW=$(date +%s) && yarn testCollators --reporter mochawesome --reporter-options reportFilename=test-collators-${NOW}
env:
RPC_URL: http://127.0.0.1:9944/
.github/workflows/forkless-update-nodata.ymldiffbeforeafterboth--- a/.github/workflows/forkless-update-nodata.yml
+++ b/.github/workflows/forkless-update-nodata.yml
@@ -268,7 +268,6 @@
yarn add mochawesome
./scripts/wait_for_first_block.sh
echo "Ready to start tests"
- yarn polkadot-types
NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}
env:
RPC_URL: http://127.0.0.1:9944/
@@ -291,7 +290,6 @@
yarn add mochawesome
./scripts/wait_for_first_block.sh
echo "Ready to start tests"
- yarn polkadot-types
NOW=$(date +%s) && yarn testSequential --reporter mochawesome --reporter-options reportFilename=test-sequential-${NOW}
env:
RPC_URL: http://127.0.0.1:9944/
.github/workflows/gov.ymldiffbeforeafterboth--- a/.github/workflows/gov.yml
+++ b/.github/workflows/gov.yml
@@ -87,7 +87,6 @@
yarn add mochawesome
./scripts/wait_for_first_block.sh
echo "Ready to start tests"
- yarn polkadot-types
NOW=$(date +%s) && yarn testGovernance --reporter mochawesome --reporter-options reportFilename=test-${NOW}
env:
RPC_URL: http://127.0.0.1:9944/
.github/workflows/node-only-update.ymldiffbeforeafterboth--- a/.github/workflows/node-only-update.yml
+++ b/.github/workflows/node-only-update.yml
@@ -273,7 +273,6 @@
yarn add mochawesome
./scripts/wait_for_first_block.sh
echo "Ready to start tests"
- yarn polkadot-types
NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}
env:
RPC_URL: http://127.0.0.1:9944/
@@ -376,7 +375,6 @@
yarn add mochawesome
./scripts/wait_for_first_block.sh
echo "Ready to start tests"
- yarn polkadot-types
NOW=$(date +%s) && yarn testParallel --reporter mochawesome --reporter-options reportFilename=test-parallel-${NOW}
env:
RPC_URL: http://127.0.0.1:9944/
.github/workflows/xcm.ymldiffbeforeafterboth--- a/.github/workflows/xcm.yml
+++ b/.github/workflows/xcm.yml
@@ -307,11 +307,10 @@
run: |
yarn install
yarn add mochawesome
- # Wanted by both wait_for_first_block and yarn polkadot-types
+ # Wanted by both wait_for_first_block
export RPC_URL="${RELAY_OPAL_HTTP_URL:-${RELAY_QUARTZ_HTTP_URL:-${RELAY_UNIQUE_HTTP_URL:-}}}"
./scripts/wait_for_first_block.sh
echo "Ready to start tests"
- yarn polkadot-types
NOW=$(date +%s) && yarn ${{ matrix.runtest }} --reporter mochawesome --reporter-options reportFilename=test-${NOW}
- name: XCM Test Report
.github/workflows/yarn-dev.ymldiffbeforeafterboth1# Integration test in --dev mode2# https://cryptousetech.atlassian.net/wiki/spaces/CI/pages/2586411104/Integration+tests3name: yarn dev45# Triger: only call from main workflow(re-usable workflows)6on:7 workflow_call:891011# A workflow run is made up of one or more jobs that can run sequentially or in parallel12jobs:13 14 dev_build_int_tests:15 # The type of runner that the job will run on16 runs-on: [self-hosted-ci,medium]17 timeout-minutes: 13801819 name: ${{ matrix.network }}2021 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.2223 strategy:24 matrix:25 include:26 - network: "opal"27 - network: "sapphire"28 - network: "quartz"29 - network: "unique"3031 steps:3233 - name: Clean Workspace34 uses: AutoModality/action-clean@v1.1.03536 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it37 - uses: actions/checkout@v3.1.038 with:39 ref: ${{ github.head_ref }} #Checking out head commit4041 - name: Read .env file42 uses: xom9ikk/dotenv@v24344 - name: Generate ENV related extend file for docker-compose45 uses: cuchi/jinja2-action@v1.2.046 with:47 template: .docker/docker-compose.tmp-dev.j248 output_file: .docker/docker-compose.${{ matrix.network }}.yml49 variables: |50 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}51 NETWORK=${{ matrix.network }}52 5354 - name: Show build configuration55 run: cat .docker/docker-compose.${{ matrix.network }}.yml5657 - name: Build the stack58 run: docker-compose -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --remove-orphans5960 - uses: actions/setup-node@v3.5.161 with:62 node-version: 166364 - name: Run tests65 working-directory: tests66 run: |67 yarn install68 yarn add mochawesome69 ./scripts/wait_for_first_block.sh70 echo "Ready to start tests"71 yarn polkadot-types72 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}73 env:74 RPC_URL: http://127.0.0.1:9944/7576 - name: Test Report77 uses: phoenix-actions/test-reporting@v1078 id: test-report79 if: success() || failure() # run this step even if previous step failed80 with:81 name: int test results - ${{ matrix.network }} # Name of the check run which will be created82 path: tests/mochawesome-report/test-*.json # Path to test results83 reporter: mochawesome-json84 fail-on-error: 'false'8586 - name: Read output variables87 run: |88 echo "url is ${{ steps.test-report.outputs.runHtmlUrl }}"8990 - name: Run benchmark mintFee tests91 working-directory: tests92 run: |93 yarn install94 npx ts-node --esm ./src/benchmarks/mintFee/index.ts9596 - name: Run benchmark opsFee tests97 working-directory: tests98 run: |99 yarn install100 npx ts-node --esm ./src/benchmarks/opsFee/index.ts101102 - name: Stop running containers103 if: always() # run this step always104 run: docker-compose -f ".docker/docker-compose.${{ matrix.network }}.yml" down105106 - name: Remove builder cache107 if: always() # run this step always108 run: |109 docker builder prune -f -a110 docker system prune -f111 docker image prune -f -a112113 # check:114 # if: always()115 # runs-on: [self-hosted-ci]116 # needs:117 # - dev_build_int_tests118119 # steps:120 # - name: Install python3121 # uses: actions/setup-python@v4122 # with:123 # python-version: '3.10'124125 # - name: Decide whether the needed jobs succeeded or failed126 # uses: re-actors/alls-green@v1.2.2127 # with:128 # jobs: ${{ toJSON(needs) }}1# Integration test in --dev mode2# https://cryptousetech.atlassian.net/wiki/spaces/CI/pages/2586411104/Integration+tests3name: yarn dev45# Triger: only call from main workflow(re-usable workflows)6on:7 workflow_call:891011# A workflow run is made up of one or more jobs that can run sequentially or in parallel12jobs:13 14 dev_build_int_tests:15 # The type of runner that the job will run on16 runs-on: [self-hosted-ci,medium]17 timeout-minutes: 13801819 name: ${{ matrix.network }}2021 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.2223 strategy:24 matrix:25 include:26 - network: "opal"27 - network: "sapphire"28 - network: "quartz"29 - network: "unique"3031 steps:3233 - name: Clean Workspace34 uses: AutoModality/action-clean@v1.1.03536 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it37 - uses: actions/checkout@v3.1.038 with:39 ref: ${{ github.head_ref }} #Checking out head commit4041 - name: Read .env file42 uses: xom9ikk/dotenv@v24344 - name: Generate ENV related extend file for docker-compose45 uses: cuchi/jinja2-action@v1.2.046 with:47 template: .docker/docker-compose.tmp-dev.j248 output_file: .docker/docker-compose.${{ matrix.network }}.yml49 variables: |50 RUST_TOOLCHAIN=${{ env.RUST_TOOLCHAIN }}51 NETWORK=${{ matrix.network }}52 5354 - name: Show build configuration55 run: cat .docker/docker-compose.${{ matrix.network }}.yml5657 - name: Build the stack58 run: docker-compose -f ".docker/docker-compose.${{ matrix.network }}.yml" up -d --build --remove-orphans5960 - uses: actions/setup-node@v3.5.161 with:62 node-version: 166364 - name: Run tests65 working-directory: tests66 run: |67 yarn install68 yarn add mochawesome69 ./scripts/wait_for_first_block.sh70 echo "Ready to start tests"71 NOW=$(date +%s) && yarn test --reporter mochawesome --reporter-options reportFilename=test-${NOW}72 env:73 RPC_URL: http://127.0.0.1:9944/7475 - name: Test Report76 uses: phoenix-actions/test-reporting@v1077 id: test-report78 if: success() || failure() # run this step even if previous step failed79 with:80 name: int test results - ${{ matrix.network }} # Name of the check run which will be created81 path: tests/mochawesome-report/test-*.json # Path to test results82 reporter: mochawesome-json83 fail-on-error: 'false'8485 - name: Read output variables86 run: |87 echo "url is ${{ steps.test-report.outputs.runHtmlUrl }}"8889 - name: Run benchmark mintFee tests90 working-directory: tests91 run: |92 yarn install93 npx ts-node --esm ./src/benchmarks/mintFee/index.ts9495 - name: Run benchmark opsFee tests96 working-directory: tests97 run: |98 yarn install99 npx ts-node --esm ./src/benchmarks/opsFee/index.ts100101 - name: Stop running containers102 if: always() # run this step always103 run: docker-compose -f ".docker/docker-compose.${{ matrix.network }}.yml" down104105 - name: Remove builder cache106 if: always() # run this step always107 run: |108 docker builder prune -f -a109 docker system prune -f110 docker image prune -f -a111112 # check:113 # if: always()114 # runs-on: [self-hosted-ci]115 # needs:116 # - dev_build_int_tests117118 # steps:119 # - name: Install python3120 # uses: actions/setup-python@v4121 # with:122 # python-version: '3.10'123124 # - name: Decide whether the needed jobs succeeded or failed125 # uses: re-actors/alls-green@v1.2.2126 # with:127 # jobs: ${{ toJSON(needs) }}