From 43baf7912bc77429552fa1b872f928018c201515 Mon Sep 17 00:00:00 2001 From: David Dias Date: Thu, 21 May 2026 09:46:11 +0100 Subject: [PATCH 1/5] Install tests: Bring back nightly msg --- .../workflows/qa-install-tests-workflow.yml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.github/workflows/qa-install-tests-workflow.yml b/.github/workflows/qa-install-tests-workflow.yml index a511c1eb..02e6cf45 100644 --- a/.github/workflows/qa-install-tests-workflow.yml +++ b/.github/workflows/qa-install-tests-workflow.yml @@ -9,6 +9,14 @@ on: required: false type: boolean default: false + nightly: + required: false + type: boolean + default: false + slack_channel_nightly_msg: + required: false + type: string + default: 'C02PB9A9F45' secrets: jira_username: required: true @@ -160,3 +168,34 @@ jobs: shell: bash run: | movai remove --all + + Slack-Message-On-Failure: + runs-on: ubuntu-22.04 + needs: [Validate-features, Run-Tests] + if: always() + steps: + - name: Prepare slack variables + id: pre_slack + run: | + MESSAGE=":white_check_mark: CI: ${GITHUB_REPOSITORY} (${GITHUB_REF#refs/heads/}), stable :sunny: Details: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" + MESSAGE_ERR=":x: CI: ${GITHUB_REPOSITORY}, (${GITHUB_REF#refs/heads/}), unstable :rain_cloud: Details: https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" + echo "msg=$MESSAGE" >> $GITHUB_OUTPUT + echo "msg_error=$MESSAGE_ERR" >> $GITHUB_OUTPUT + + - name: Slack message success + if: ${{ inputs.nightly && ( needs.Validate-features.result == 'success' && needs.Run-Tests.result == 'success' ) }} + uses: slackapi/slack-github-action@v1.23.0 + with: + channel-id: ${{ inputs.slack_channel_nightly_msg }} + slack-message: ${{ steps.pre_slack.outputs.msg }} + env: + SLACK_BOT_TOKEN: ${{ secrets.slack_token_id }} + + - name: Slack message failure + if: ${{ inputs.nightly && ( needs.Validate-features.result == 'failure' || needs.Run-Tests.result == 'failure' ) }} + uses: slackapi/slack-github-action@v1.23.0 + with: + channel-id: 'C02PB9A9F45' + slack-message: ${{ steps.pre_slack.outputs.msg_error }} + env: + SLACK_BOT_TOKEN: ${{ secrets.slack_token_id }} From d7ed53e9e9f8126957249c1e0044fdca4fdca7a9 Mon Sep 17 00:00:00 2001 From: David Dias Date: Thu, 21 May 2026 10:02:41 +0100 Subject: [PATCH 2/5] Fix needs --- .github/actionlint.yaml | 2 ++ .github/workflows/qa-install-tests-workflow.yml | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml index bccc0044..ad16a83b 100644 --- a/.github/actionlint.yaml +++ b/.github/actionlint.yaml @@ -13,3 +13,5 @@ self-hosted-runner: - simul-bb-8-queuer - simul-bb-9-queuer - oracle + - qa-runner + - infra-runner diff --git a/.github/workflows/qa-install-tests-workflow.yml b/.github/workflows/qa-install-tests-workflow.yml index 02e6cf45..d1cf217a 100644 --- a/.github/workflows/qa-install-tests-workflow.yml +++ b/.github/workflows/qa-install-tests-workflow.yml @@ -171,7 +171,7 @@ jobs: Slack-Message-On-Failure: runs-on: ubuntu-22.04 - needs: [Validate-features, Run-Tests] + needs: [Validate-features, Install-Tests] if: always() steps: - name: Prepare slack variables @@ -183,7 +183,7 @@ jobs: echo "msg_error=$MESSAGE_ERR" >> $GITHUB_OUTPUT - name: Slack message success - if: ${{ inputs.nightly && ( needs.Validate-features.result == 'success' && needs.Run-Tests.result == 'success' ) }} + if: ${{ inputs.nightly && ( needs.Validate-features.result == 'success' && needs.Install-Tests.result == 'success' ) }} uses: slackapi/slack-github-action@v1.23.0 with: channel-id: ${{ inputs.slack_channel_nightly_msg }} @@ -192,10 +192,10 @@ jobs: SLACK_BOT_TOKEN: ${{ secrets.slack_token_id }} - name: Slack message failure - if: ${{ inputs.nightly && ( needs.Validate-features.result == 'failure' || needs.Run-Tests.result == 'failure' ) }} + if: ${{ inputs.nightly && ( needs.Validate-features.result == 'failure' || needs.Install-Tests.result == 'failure' ) }} uses: slackapi/slack-github-action@v1.23.0 with: - channel-id: 'C02PB9A9F45' + channel-id: ${{ inputs.slack_channel_nightly_msg }} slack-message: ${{ steps.pre_slack.outputs.msg_error }} env: SLACK_BOT_TOKEN: ${{ secrets.slack_token_id }} From 72c141dd40b7538303bd23f621abeebc9d487068 Mon Sep 17 00:00:00 2001 From: David Dias Date: Mon, 15 Jun 2026 09:19:34 +0100 Subject: [PATCH 3/5] Declare slack secret --- .github/workflows/qa-install-tests-workflow.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/qa-install-tests-workflow.yml b/.github/workflows/qa-install-tests-workflow.yml index d1cf217a..ef4a3afe 100644 --- a/.github/workflows/qa-install-tests-workflow.yml +++ b/.github/workflows/qa-install-tests-workflow.yml @@ -44,6 +44,8 @@ on: required: true sonar_token: required: true + slack_token_id: + required: true jobs: Validate-features: From b3d8bebfd47245425c1e75929a8872b0cbaa6514 Mon Sep 17 00:00:00 2001 From: David Dias <32164122+diasdm@users.noreply.github.com> Date: Fri, 19 Jun 2026 10:01:57 +0100 Subject: [PATCH 4/5] Apply suggestions from code review Co-authored-by: Alex Fernandes <84147256+AlexFernandes-MOVAI@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .github/workflows/qa-install-tests-workflow.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/qa-install-tests-workflow.yml b/.github/workflows/qa-install-tests-workflow.yml index ef4a3afe..a2ae7a51 100644 --- a/.github/workflows/qa-install-tests-workflow.yml +++ b/.github/workflows/qa-install-tests-workflow.yml @@ -171,10 +171,10 @@ jobs: run: | movai remove --all - Slack-Message-On-Failure: + Slack-Message-Result: runs-on: ubuntu-22.04 needs: [Validate-features, Install-Tests] - if: always() + if: ${{ always() && inputs.nightly }} steps: - name: Prepare slack variables id: pre_slack @@ -186,7 +186,7 @@ jobs: - name: Slack message success if: ${{ inputs.nightly && ( needs.Validate-features.result == 'success' && needs.Install-Tests.result == 'success' ) }} - uses: slackapi/slack-github-action@v1.23.0 + uses: slackapi/slack-github-action@v3 with: channel-id: ${{ inputs.slack_channel_nightly_msg }} slack-message: ${{ steps.pre_slack.outputs.msg }} From 345c8fe78bc9aba03ef25598f413f0fafda934b8 Mon Sep 17 00:00:00 2001 From: David Dias Date: Mon, 22 Jun 2026 10:38:39 +0100 Subject: [PATCH 5/5] Fix slack@v3 syntax --- .../workflows/qa-install-tests-workflow.yml | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/qa-install-tests-workflow.yml b/.github/workflows/qa-install-tests-workflow.yml index a2ae7a51..1cca2a9f 100644 --- a/.github/workflows/qa-install-tests-workflow.yml +++ b/.github/workflows/qa-install-tests-workflow.yml @@ -188,16 +188,22 @@ jobs: if: ${{ inputs.nightly && ( needs.Validate-features.result == 'success' && needs.Install-Tests.result == 'success' ) }} uses: slackapi/slack-github-action@v3 with: - channel-id: ${{ inputs.slack_channel_nightly_msg }} - slack-message: ${{ steps.pre_slack.outputs.msg }} - env: - SLACK_BOT_TOKEN: ${{ secrets.slack_token_id }} + method: chat.postMessage + payload: | + { + "channel": "${{ inputs.slack_channel_nightly_msg }}", + "text": "${{ steps.pre_slack.outputs.msg }}" + } + token: ${{ secrets.slack_token_id }} - name: Slack message failure if: ${{ inputs.nightly && ( needs.Validate-features.result == 'failure' || needs.Install-Tests.result == 'failure' ) }} - uses: slackapi/slack-github-action@v1.23.0 + uses: slackapi/slack-github-action@v3 with: - channel-id: ${{ inputs.slack_channel_nightly_msg }} - slack-message: ${{ steps.pre_slack.outputs.msg_error }} - env: - SLACK_BOT_TOKEN: ${{ secrets.slack_token_id }} + method: chat.postMessage + payload: | + { + "channel": "${{ inputs.slack_channel_nightly_msg }}", + "text": "${{ steps.pre_slack.outputs.msg_error }}" + } + token: ${{ secrets.slack_token_id }}