From 6a77c6b60bf2241acf007af6169eebf03d67a7d1 Mon Sep 17 00:00:00 2001 From: Cody Baker <51133164+CodyCBakerPhD@users.noreply.github.com> Date: Thu, 30 May 2024 12:14:56 -0400 Subject: [PATCH 1/4] add daily notification --- .github/workflows/daily_tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/daily_tests.yml b/.github/workflows/daily_tests.yml index 5fe653197..7b080c2c2 100644 --- a/.github/workflows/daily_tests.yml +++ b/.github/workflows/daily_tests.yml @@ -35,3 +35,28 @@ jobs: ExampleDataTests: needs: ExampleDataCache uses: ./.github/workflows/testing_pipelines.yml + + NotifyOnAnyFailure: + runs-on: ubuntu-latest + needs: [DevTests, LiveServices, BuildTests, ExampleDataCache, ExampleDataTests] + if: | + ${{ + always() && ( + needs.DevTests.result == 'failure' + || needs.LiveServices.result == 'failure' + || needs.BuildTests.result == 'failure' + || needs.ExampleDataCache.result == 'failure' + || needs.ExampleDataTests.result == 'failure' + ) + }} + steps: + - uses: dawidd6/action-send-mail@v3 + with: + server_address: smtp.gmail.com + server_port: 465 + username: ${{ secrets.MAIL_USERNAME }} + password: ${{ secrets.MAIL_PASSWORD }} + subject: NeuroConv Daily Test Failure + to: ${{ secrets.DAILY_FAILURE_EMAIL_LIST }} + from: NeuroConv + body: "The daily test workflow failed, please check status at https://github.com/catalystneuro/neuroconv/actions/workflows/dailies.yml" From ce91027342536b484b22d0eca85b3f57d6e30436 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 30 May 2024 16:16:17 +0000 Subject: [PATCH 2/4] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/daily_tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/daily_tests.yml b/.github/workflows/daily_tests.yml index 7b080c2c2..ee2b65048 100644 --- a/.github/workflows/daily_tests.yml +++ b/.github/workflows/daily_tests.yml @@ -40,14 +40,14 @@ jobs: runs-on: ubuntu-latest needs: [DevTests, LiveServices, BuildTests, ExampleDataCache, ExampleDataTests] if: | - ${{ + ${{ always() && ( needs.DevTests.result == 'failure' || needs.LiveServices.result == 'failure' || needs.BuildTests.result == 'failure' || needs.ExampleDataCache.result == 'failure' || needs.ExampleDataTests.result == 'failure' - ) + ) }} steps: - uses: dawidd6/action-send-mail@v3 From 97a7f42c7781bdc24a2f38636ea69e2022ba600d Mon Sep 17 00:00:00 2001 From: Cody Baker <51133164+CodyCBakerPhD@users.noreply.github.com> Date: Thu, 30 May 2024 13:00:17 -0400 Subject: [PATCH 3/4] fix title and body --- .github/workflows/daily_tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/daily_tests.yml b/.github/workflows/daily_tests.yml index ee2b65048..bbeaa41ee 100644 --- a/.github/workflows/daily_tests.yml +++ b/.github/workflows/daily_tests.yml @@ -58,5 +58,5 @@ jobs: password: ${{ secrets.MAIL_PASSWORD }} subject: NeuroConv Daily Test Failure to: ${{ secrets.DAILY_FAILURE_EMAIL_LIST }} - from: NeuroConv - body: "The daily test workflow failed, please check status at https://github.com/catalystneuro/neuroconv/actions/workflows/dailies.yml" + from: NWB Guide Daily Tests + body: "The daily tests workflow failed, please check status at https://github.com/NeurodataWithoutBorders/nwb-guide/actions/workflows/daily_tests.yml" From 97023770e7d0027480365d8cdb5ad97852fe20ea Mon Sep 17 00:00:00 2001 From: Cody Baker <51133164+CodyCBakerPhD@users.noreply.github.com> Date: Thu, 30 May 2024 13:00:28 -0400 Subject: [PATCH 4/4] Update daily_tests.yml --- .github/workflows/daily_tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/daily_tests.yml b/.github/workflows/daily_tests.yml index bbeaa41ee..7f84a0186 100644 --- a/.github/workflows/daily_tests.yml +++ b/.github/workflows/daily_tests.yml @@ -59,4 +59,4 @@ jobs: subject: NeuroConv Daily Test Failure to: ${{ secrets.DAILY_FAILURE_EMAIL_LIST }} from: NWB Guide Daily Tests - body: "The daily tests workflow failed, please check status at https://github.com/NeurodataWithoutBorders/nwb-guide/actions/workflows/daily_tests.yml" + body: "The daily tests workflow failed, please check the status at https://github.com/NeurodataWithoutBorders/nwb-guide/actions/workflows/daily_tests.yml"