From a7a60f42eab08210d59fe9ecfecb16b228d87ad2 Mon Sep 17 00:00:00 2001 From: dmoka Date: Mon, 19 Aug 2024 14:08:32 +0200 Subject: [PATCH 01/10] add ecosystem tests build job --- .github/workflows/tests.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index df6ce26e0..b41919653 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -85,3 +85,30 @@ jobs: - name: Evaluate result if: contains(env.VERSION_UPDATE, 'have not been updated') || contains(env.VERSION_UPDATE, 'versions don''t match') || contains(env.VERSION_UPDATE, 'downgraded') run: exit 1 + + ecosystem-tests: + needs: build # Make sure this runs after your build job + runs-on: ubuntu-latest + steps: + - name: Checkout polkadot-ecosystem-tests + uses: actions/checkout@v2 + with: + repository: galacticcouncil/polkadot-ecosystem-tests + ref: test/add-hydration-tests-ci + + - name: Download WASM artifact + uses: actions/download-artifact@v2 + with: + name: hydradx_runtime.compact.compressed.wasm + + - name: Run ecosystem tests + run: | + # Set the path to the downloaded WASM file + export HYDRADX_RUNTIME_WASM_PATH="$PWD/hydradx_runtime.compact.compressed.wasm" + + # Run your tests here, for example: + yarn install + yarn test upgrade.test.ts + env: + # You can pass any necessary environment variables here + HYDRADX_RUNTIME_WASM_PATH: ${{ env.HYDRADX_RUNTIME_WASM_PATH }} \ No newline at end of file From 672b2c965b4739a4813f5d4f06ca15b9370038b1 Mon Sep 17 00:00:00 2001 From: dmoka Date: Mon, 19 Aug 2024 14:10:45 +0200 Subject: [PATCH 02/10] make eco tests run in PRs --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b41919653..323f4f9d6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -89,6 +89,7 @@ jobs: ecosystem-tests: needs: build # Make sure this runs after your build job runs-on: ubuntu-latest + if: github.event_name == 'pull_request' steps: - name: Checkout polkadot-ecosystem-tests uses: actions/checkout@v2 From 9b6d0e34bcb5374d32ae9c129e339ab52cbc6dc4 Mon Sep 17 00:00:00 2001 From: dmoka Date: Mon, 19 Aug 2024 14:15:12 +0200 Subject: [PATCH 03/10] disable job dependency tmeporarly --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 323f4f9d6..27c5c009b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -87,7 +87,7 @@ jobs: run: exit 1 ecosystem-tests: - needs: build # Make sure this runs after your build job + #needs: build # Make sure this runs after your build job runs-on: ubuntu-latest if: github.event_name == 'pull_request' steps: From 8f9aecdb038e5b74cfae7b5b956d515aa8ca9c02 Mon Sep 17 00:00:00 2001 From: dmoka Date: Mon, 19 Aug 2024 14:17:33 +0200 Subject: [PATCH 04/10] commment out download artifact for testing purposes --- .github/workflows/tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 27c5c009b..7a26ef2cb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -97,10 +97,10 @@ jobs: repository: galacticcouncil/polkadot-ecosystem-tests ref: test/add-hydration-tests-ci - - name: Download WASM artifact - uses: actions/download-artifact@v2 - with: - name: hydradx_runtime.compact.compressed.wasm + #- name: Download WASM artifact + # uses: actions/download-artifact@v2 + # with: + # name: hydradx_runtime.compact.compressed.wasm - name: Run ecosystem tests run: | From f5045ca85dfeb2cba1cc4e041fbced547f615b1f Mon Sep 17 00:00:00 2001 From: dmoka Date: Mon, 19 Aug 2024 14:20:06 +0200 Subject: [PATCH 05/10] test commit --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7a26ef2cb..b02dd8f4a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -97,6 +97,7 @@ jobs: repository: galacticcouncil/polkadot-ecosystem-tests ref: test/add-hydration-tests-ci + #- name: Download WASM artifact # uses: actions/download-artifact@v2 # with: From 3e346be99e1312cee2d2e6bd35d26c96ac0b0d96 Mon Sep 17 00:00:00 2001 From: dmoka Date: Mon, 19 Aug 2024 14:24:27 +0200 Subject: [PATCH 06/10] get build artifact from build job --- .github/workflows/tests.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b02dd8f4a..808fe047d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -87,7 +87,7 @@ jobs: run: exit 1 ecosystem-tests: - #needs: build # Make sure this runs after your build job + needs: build # Make sure this runs after your build job runs-on: ubuntu-latest if: github.event_name == 'pull_request' steps: @@ -98,10 +98,10 @@ jobs: ref: test/add-hydration-tests-ci - #- name: Download WASM artifact - # uses: actions/download-artifact@v2 - # with: - # name: hydradx_runtime.compact.compressed.wasm + - name: Download WASM artifact + uses: actions/download-artifact@v2 + with: + name: hydradx_runtime.compact.compressed.wasm - name: Run ecosystem tests run: | From 153fc498c806fa5b4b377b910097452f59ec46ba Mon Sep 17 00:00:00 2001 From: dmoka Date: Tue, 20 Aug 2024 16:32:23 +0200 Subject: [PATCH 07/10] disable tests for just CI testing purposes --- .github/workflows/tests.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 808fe047d..2a46dab7d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,8 +26,8 @@ jobs: uses: codota/toolchain@00a8bf2bdcfe93aefd70422d3dec07337959d3a4 with: profile: minimal - - name: Run tests - run: make test-release + #- name: Run tests + # run: make test-release - name: Build release run: time make build-release - name: Version info @@ -44,8 +44,8 @@ jobs: path: target/release/wbuild/hydradx-runtime/hydradx_runtime.compact.compressed.wasm - name: Clippy run: make clippy-all - - name: Test benchmarks - run: make test-benchmarks + # - name: Test benchmarks + # run: make test-benchmarks version-check: runs-on: ubuntu-latest From 1abfab76c8c47e66111323e3c4187661002df4d2 Mon Sep 17 00:00:00 2001 From: dmoka Date: Tue, 20 Aug 2024 17:28:21 +0200 Subject: [PATCH 08/10] test commit to trigger ecosystem test run --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2a46dab7d..907f36b8f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -45,7 +45,7 @@ jobs: - name: Clippy run: make clippy-all # - name: Test benchmarks - # run: make test-benchmarks + # run: make test-benchmarks version-check: runs-on: ubuntu-latest From 9f92ae4ef37e68d97041de0c3812f6d884f0c3e7 Mon Sep 17 00:00:00 2001 From: dmoka Date: Tue, 20 Aug 2024 18:06:28 +0200 Subject: [PATCH 09/10] putting back running tests jobs --- .github/workflows/tests.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 907f36b8f..323f4f9d6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,8 +26,8 @@ jobs: uses: codota/toolchain@00a8bf2bdcfe93aefd70422d3dec07337959d3a4 with: profile: minimal - #- name: Run tests - # run: make test-release + - name: Run tests + run: make test-release - name: Build release run: time make build-release - name: Version info @@ -44,8 +44,8 @@ jobs: path: target/release/wbuild/hydradx-runtime/hydradx_runtime.compact.compressed.wasm - name: Clippy run: make clippy-all - # - name: Test benchmarks - # run: make test-benchmarks + - name: Test benchmarks + run: make test-benchmarks version-check: runs-on: ubuntu-latest @@ -97,7 +97,6 @@ jobs: repository: galacticcouncil/polkadot-ecosystem-tests ref: test/add-hydration-tests-ci - - name: Download WASM artifact uses: actions/download-artifact@v2 with: From ba16fbe1a20a73873cd60b0aa740c2511b4d30df Mon Sep 17 00:00:00 2001 From: dmoka Date: Wed, 21 Aug 2024 09:42:53 +0200 Subject: [PATCH 10/10] clean up yaml file --- .github/workflows/tests.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 323f4f9d6..dfeb42df6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -87,7 +87,7 @@ jobs: run: exit 1 ecosystem-tests: - needs: build # Make sure this runs after your build job + needs: build # Make sure this runs after build job to have the wasm artifact runs-on: ubuntu-latest if: github.event_name == 'pull_request' steps: @@ -107,9 +107,8 @@ jobs: # Set the path to the downloaded WASM file export HYDRADX_RUNTIME_WASM_PATH="$PWD/hydradx_runtime.compact.compressed.wasm" - # Run your tests here, for example: + # Run specific tests doing XCM between hydradx and other parachains yarn install yarn test upgrade.test.ts env: - # You can pass any necessary environment variables here HYDRADX_RUNTIME_WASM_PATH: ${{ env.HYDRADX_RUNTIME_WASM_PATH }} \ No newline at end of file