From d23897ab51d774684f24edddccd79c3798aa466f Mon Sep 17 00:00:00 2001 From: Kailai Wang Date: Thu, 30 Nov 2023 00:12:31 +0000 Subject: [PATCH 1/2] Hotfix of tee-test dependency in CI --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 14b3f13920..502e38907c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -599,9 +599,12 @@ jobs: tee-test: runs-on: ubuntu-latest + # we could use this if-condition on job level because `run_tee_test == false` implies + # rebuild_parachain == false AND rebuild_tee == false, so we've got nothing to push if: needs.set-condition.outputs.run_tee_test == 'true' needs: - set-condition + - parachain-build-dev - tee-build strategy: fail-fast: false From 1bb86f1e130880346be1c7b6617be518a787a0b1 Mon Sep 17 00:00:00 2001 From: Kailai Wang Date: Thu, 30 Nov 2023 00:24:11 +0000 Subject: [PATCH 2/2] we cannot use it in job level --- .github/workflows/ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 502e38907c..5d929ed374 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -599,9 +599,6 @@ jobs: tee-test: runs-on: ubuntu-latest - # we could use this if-condition on job level because `run_tee_test == false` implies - # rebuild_parachain == false AND rebuild_tee == false, so we've got nothing to push - if: needs.set-condition.outputs.run_tee_test == 'true' needs: - set-condition - parachain-build-dev @@ -660,12 +657,14 @@ jobs: docker compose -f litentry-parachain.build.yml build - name: Integration Test ${{ matrix.test_name }} + if: needs.set-condition.outputs.run_tee_test == 'true' timeout-minutes: 40 run: | cd tee-worker/docker docker compose -f docker-compose.yml -f ${{ matrix.test_name }}.yml up --no-build --exit-code-from ${{ matrix.test_name }} ${{ matrix.test_name }} - name: Stop docker containers + if: needs.set-condition.outputs.run_tee_test == 'true' run: | cd tee-worker/docker docker compose -f docker-compose.yml -f ${{ matrix.test_name }}.yml stop