From 9c560dcae2944cd8fb3b506b46c543e3bbb0f443 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 13 Sep 2021 11:36:36 +0200 Subject: [PATCH] GH CI actions: schedule 1h17 after the docker action, highlight someone in case of error, always notify mattermost --- .github/workflows/ci-batsim.yml | 2 +- .github/workflows/ci-bigdft.yml | 6 +++--- .github/workflows/ci-starpu.yml | 6 +++--- .github/workflows/ci-wrench.yml | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci-batsim.yml b/.github/workflows/ci-batsim.yml index f850fa14bd..78ac34738d 100644 --- a/.github/workflows/ci-batsim.yml +++ b/.github/workflows/ci-batsim.yml @@ -3,7 +3,7 @@ name: CI BatSim on: workflow_dispatch: schedule: - - cron: '43 18 * * 0' + - cron: '0 20 * * 0' jobs: build: diff --git a/.github/workflows/ci-bigdft.yml b/.github/workflows/ci-bigdft.yml index 76a8bc6292..3b6c0f0365 100644 --- a/.github/workflows/ci-bigdft.yml +++ b/.github/workflows/ci-bigdft.yml @@ -3,7 +3,7 @@ name: CI BigDFT on: workflow_dispatch: schedule: - - cron: '43 18 * * 0' + - cron: '0 20 * * 0' jobs: build: @@ -21,13 +21,13 @@ jobs: - name: Create the failure Message if: ${{ failure() }} run: | - echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"BigDFT failed to build on simgrid/unstable docker image! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json + echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"@adegomme: BigDFT failed to build on simgrid/unstable docker image! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json - name: Create the success Message if: ${{ success() }} run: | echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"BigDFT successfully built on simgrid/unstable docker image. ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json - uses: mattermost/action-mattermost-notify@master - if: ${{ failure() }} + if: ${{ always() }} env: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}} diff --git a/.github/workflows/ci-starpu.yml b/.github/workflows/ci-starpu.yml index 8ef81566c7..6b6323837b 100644 --- a/.github/workflows/ci-starpu.yml +++ b/.github/workflows/ci-starpu.yml @@ -3,7 +3,7 @@ name: CI StarPU on: workflow_dispatch: schedule: - - cron: '43 18 * * 0' + - cron: '0 20 * * 0' jobs: build: @@ -21,11 +21,11 @@ jobs: - name: Create the failure Message if: ${{ failure() }} run: | - echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"@sthibaul: StarPu failed to build on simgrid/unstable docker image! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json + echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"@sthibaul: StarPU failed to build on simgrid/unstable docker image! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json - name: Create the success Message if: ${{ success() }} run: | - echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"@sthibaul: StarPu successfully built on simgrid/unstable docker image. ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json + echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"StarPU successfully built on simgrid/unstable docker image. ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json - uses: mattermost/action-mattermost-notify@master if: ${{ always() }} env: diff --git a/.github/workflows/ci-wrench.yml b/.github/workflows/ci-wrench.yml index 3668f1346f..224b03e4a9 100644 --- a/.github/workflows/ci-wrench.yml +++ b/.github/workflows/ci-wrench.yml @@ -3,7 +3,7 @@ name: CI Wrench on: workflow_dispatch: schedule: - - cron: '43 18 * * 0' + - cron: '0 20 * * 0' jobs: build: @@ -21,13 +21,13 @@ jobs: - name: Create the failure Message if: ${{ failure() }} run: | - echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"Wrench's git failed to build on simgrid/unstable docker image! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json + echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"@henricasanova: Wrench's git failed to build on simgrid/unstable docker image! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json - name: Create the success Message if: ${{ success() }} run: | echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"Wrench's git successfully built on simgrid/unstable docker image. ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json - uses: mattermost/action-mattermost-notify@master - if: ${{ failure() }} + if: ${{ always() }} env: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} MATTERMOST_CHANNEL: ${{ secrets.MATTERMOST_CHANNEL}} -- 2.20.1