Skip to content

Commit 0e099a7

Browse files
authored
ci(notifications): alert on scheduled pipeline failures (#6503)
Signed-off-by: oliver könig <okoenig@nvidia.com>
1 parent a95c3c8 commit 0e099a7

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

‎.github/workflows/cicd-main.yml‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,3 +1384,44 @@ jobs:
13841384
path: |
13851385
.coverage
13861386
include-hidden-files: true
1387+
1388+
notify-nightly-failure:
1389+
name: Notify scheduled CI failure
1390+
runs-on: ubuntu-latest
1391+
environment: main
1392+
needs:
1393+
- ephemeral-runner-routing
1394+
- pre-flight
1395+
- configure
1396+
- lint-check
1397+
- cicd-wait-in-queue
1398+
- cicd-compute-build-matrix
1399+
- cicd-container-build
1400+
- cicd-import-check
1401+
- cicd-unit-tests-core
1402+
- cicd-unit-tests-diffusion
1403+
- generate-test-matrix
1404+
- cicd-functional-tests-l0
1405+
- cicd-functional-tests-l1
1406+
- cicd-functional-tests-l2
1407+
- cicd-functional-tests-flaky
1408+
- generate-gb200-test-matrix
1409+
- cicd-functional-tests-gb200-l0
1410+
- cicd-functional-tests-gb200-l1
1411+
- cicd-functional-tests-gb200-l2
1412+
- cicd-functional-tests-gb200-flaky
1413+
- Nemo_CICD_Test
1414+
- Coverage
1415+
permissions: {}
1416+
# Keep setup failures visible even when downstream jobs are skipped.
1417+
if: >-
1418+
${{ always() && !cancelled() && failure() &&
1419+
github.repository == 'NVIDIA-NeMo/Megatron-Bridge' &&
1420+
github.event_name == 'schedule' &&
1421+
github.ref_name == github.event.repository.default_branch }}
1422+
steps:
1423+
- name: Notify CI alerts channel
1424+
uses: NVIDIA-NeMo/FW-CI-templates/.github/actions/notify-ci-failure@631c404d00a9e60afc591cd071d35d2e18f82fc6
1425+
with:
1426+
needs-json: ${{ toJSON(needs) }}
1427+
webhook: ${{ secrets.SLACK_WEBHOOK }}

0 commit comments

Comments
 (0)