From fc11728061493a07f99ea028bef69e519eaf8e52 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Wed, 31 Jul 2024 08:21:35 -0500 Subject: [PATCH 1/3] Add Slack alerts for CI test failure --- .gitea/workflows/test-fixturenet-eth.yml | 17 +++++++++++++++++ .gitea/workflows/test-fixturenet-plugeth.yml | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/.gitea/workflows/test-fixturenet-eth.yml b/.gitea/workflows/test-fixturenet-eth.yml index 195a683..89f0acc 100644 --- a/.gitea/workflows/test-fixturenet-eth.yml +++ b/.gitea/workflows/test-fixturenet-eth.yml @@ -33,3 +33,20 @@ jobs: run: | PATH=$PATH:~/bin ./tests/fixturenet-eth-stack/run-test.sh + + - name: Notify Vulcanize Slack on CI failure + if: ${{ always() && github.ref_name == 'main' }} + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure + if: ${{ always() && github.ref_name == 'main' }} + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }} diff --git a/.gitea/workflows/test-fixturenet-plugeth.yml b/.gitea/workflows/test-fixturenet-plugeth.yml index 462b8e8..59e0472 100644 --- a/.gitea/workflows/test-fixturenet-plugeth.yml +++ b/.gitea/workflows/test-fixturenet-plugeth.yml @@ -33,3 +33,20 @@ jobs: run: | PATH=$PATH:~/bin ./tests/fixturenet-plugeth-stack/run-test.sh + + - name: Notify Vulcanize Slack on CI failure + if: ${{ always() && github.ref_name == 'main' }} + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure + if: ${{ always() && github.ref_name == 'main' }} + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }} -- 2.45.2 From 25ff2497ad8f7505841cc0eb293c5f447f4d831a Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Wed, 31 Jul 2024 08:41:58 -0500 Subject: [PATCH 2/3] run plugeth test on arm too --- .gitea/workflows/test-fixturenet-plugeth.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/test-fixturenet-plugeth.yml b/.gitea/workflows/test-fixturenet-plugeth.yml index 59e0472..345067d 100644 --- a/.gitea/workflows/test-fixturenet-plugeth.yml +++ b/.gitea/workflows/test-fixturenet-plugeth.yml @@ -9,7 +9,10 @@ on: jobs: test: name: "Test fixturenet-plugeth stack" - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, ubuntu-latest-arm] + runs-on: ${{ matrix.os }} steps: - name: "Clone project repository" uses: actions/checkout@v3 @@ -19,12 +22,12 @@ jobs: if: ${{ runner.arch == 'arm64' && runner.os == 'Linux' }} uses: deadsnakes/action@v3.0.1 with: - python-version: '3.11' + python-version: 3.11 - name: "Install Python cases other than ARM on Linux" if: ${{ ! (runner.arch == 'arm64' && runner.os == 'Linux') }} uses: actions/setup-python@v4 with: - python-version: '3.11' + python-version: 3.11 - name: "Print Python version" run: python3 --version - name: "Install stack orchestrator" -- 2.45.2 From 62c3ed67e38d25507eea1257c39fc60e74ef49b2 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Wed, 31 Jul 2024 09:22:06 -0500 Subject: [PATCH 3/3] run tests on PR --- .gitea/workflows/test-fixturenet-eth.yml | 1 + .gitea/workflows/test-fixturenet-plugeth.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitea/workflows/test-fixturenet-eth.yml b/.gitea/workflows/test-fixturenet-eth.yml index 89f0acc..f4d6d9f 100644 --- a/.gitea/workflows/test-fixturenet-eth.yml +++ b/.gitea/workflows/test-fixturenet-eth.yml @@ -3,6 +3,7 @@ name: Test Ethereum Fixturenet Stack on: push: branches: '*' + pull_request: schedule: # Note: coordinate with other tests to not overload runners at the same time of day - cron: '12 01 * * *' diff --git a/.gitea/workflows/test-fixturenet-plugeth.yml b/.gitea/workflows/test-fixturenet-plugeth.yml index 345067d..4973c2f 100644 --- a/.gitea/workflows/test-fixturenet-plugeth.yml +++ b/.gitea/workflows/test-fixturenet-plugeth.yml @@ -3,6 +3,7 @@ name: Test Ethereum Plugeth Fixturenet Stack on: push: branches: '*' + pull_request: schedule: # Note: coordinate with other tests to not overload runners at the same time of day - cron: '14 01 * * *' -- 2.45.2