From c28bfead40c268c52e6148de7028d76e0fc686db Mon Sep 17 00:00:00 2001 From: Marcin Date: Wed, 11 Oct 2023 12:57:35 +0200 Subject: [PATCH] Moved cliqye network tests to nightly. --- .../_unit-tests-and-static-checks.yml | 3 +- ... => nightly-check-runtime-determinism.yml} | 6 +++- .github/workflows/nightly-e2e-logic-tests.yml | 2 +- .../workflows/nightly-integration-tests.yml | 30 ++++++++++++++++--- 4 files changed, 34 insertions(+), 7 deletions(-) rename .github/workflows/{nightly-checkruntime-determinism.yml => nightly-check-runtime-determinism.yml} (90%) diff --git a/.github/workflows/_unit-tests-and-static-checks.yml b/.github/workflows/_unit-tests-and-static-checks.yml index 6cdfba4f4d..b5cfdcbd8c 100644 --- a/.github/workflows/_unit-tests-and-static-checks.yml +++ b/.github/workflows/_unit-tests-and-static-checks.yml @@ -45,4 +45,5 @@ jobs: uses: actions-rs/cargo@v1 with: command: test - args: --features "liminal-try-runtime liminal-runtime-benchmarks" + # yamllint disable-line rule:line-length + args: --features "liminal-try-runtime liminal-runtime-benchmarks" -- --skip clique_network diff --git a/.github/workflows/nightly-checkruntime-determinism.yml b/.github/workflows/nightly-check-runtime-determinism.yml similarity index 90% rename from .github/workflows/nightly-checkruntime-determinism.yml rename to .github/workflows/nightly-check-runtime-determinism.yml index eab539b304..41b9b7f1d7 100644 --- a/.github/workflows/nightly-checkruntime-determinism.yml +++ b/.github/workflows/nightly-check-runtime-determinism.yml @@ -4,6 +4,10 @@ on: workflow_dispatch: schedule: - cron: '00 00 * * *' + # testing, remove before merge + push: + branches: + - A0-3298 concurrency: group: "${{ github.ref }}-${{ github.workflow }}" @@ -27,7 +31,7 @@ jobs: slack-notification: name: Slack notification runs-on: ubuntu-20.04 - needs: [runs-e2e-test-on-fe] + needs: [check-runtime-determinism] if: ${{ !cancelled() }} steps: - name: Checkout repository diff --git a/.github/workflows/nightly-e2e-logic-tests.yml b/.github/workflows/nightly-e2e-logic-tests.yml index a7b68d7ea5..1b27bdc2de 100644 --- a/.github/workflows/nightly-e2e-logic-tests.yml +++ b/.github/workflows/nightly-e2e-logic-tests.yml @@ -50,6 +50,6 @@ jobs: - name: Send Slack message uses: ./.github/actions/slack-notification with: - notify-on: "always" + notify-on: "failure" env: SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_DEV_ONDUTY }} diff --git a/.github/workflows/nightly-integration-tests.yml b/.github/workflows/nightly-integration-tests.yml index daa6ac3ad3..e97a54dcbc 100644 --- a/.github/workflows/nightly-integration-tests.yml +++ b/.github/workflows/nightly-integration-tests.yml @@ -4,6 +4,10 @@ on: workflow_dispatch: schedule: - cron: '01 00 * * *' + # testing, remove before merge + push: + branches: + - A0-3298 concurrency: group: "${{ github.ref }}-${{ github.workflow }}" @@ -15,8 +19,8 @@ jobs: uses: ./.github/workflows/_check-vars-and-secrets.yml secrets: inherit - build-tests: - name: Run unit tests + run-tests: + name: Run all unit and integration workspace tests runs-on: [self-hosted, Linux, X64, large] env: CARGO_INCREMENTAL: 0 @@ -28,7 +32,25 @@ jobs: - name: Install Rust Toolchain uses: Cardinal-Cryptography/github-actions/install-rust-toolchain@v2 - - name: Run Unit Test Suite + - name: Run Test Suite + uses: actions-rs/cargo@v1 + with: + command: test + + run-tests-liminal: + name: Run all unit and integration workspace tests (including liminal features) + runs-on: [self-hosted, Linux, X64, large] + env: + CARGO_INCREMENTAL: 0 + RUSTC_WRAPPER: sccache + steps: + - name: Checkout Source code + uses: actions/checkout@v4 + + - name: Install Rust Toolchain + uses: Cardinal-Cryptography/github-actions/install-rust-toolchain@v2 + + - name: Run Test Suite uses: actions-rs/cargo@v1 with: command: test @@ -37,7 +59,7 @@ jobs: slack-notification: name: Slack notification runs-on: ubuntu-20.04 - needs: [runs-e2e-test-on-fe] + needs: [run-tests, run-tests-liminal] if: ${{ !cancelled() }} steps: - name: Checkout repository