Skip to content

Check Alerts

Check Alerts #133516

Workflow file for this run

name: Check Alerts
on:
pull_request:
paths:
- .github/workflows/check-alerts.yml
- tools/torchci/check_alerts.py
- tools/torchci/queue_alert.py
schedule:
# Every 5 minutes
- cron: "*/5 * * * *"
# Have the ability to trigger this job manually through the API
workflow_dispatch:
jobs:
update-alerts:
strategy:
matrix:
include:
- repo: pytorch/pytorch
branch: main
with_flaky_test_alerting: YES
job_filter_regex: ""
- repo: pytorch/pytorch
branch: nightly
with_flaky_test_alerting: NO
job_filter_regex: ""
- repo: pytorch/builder
branch: main
with_flaky_test_alerting: NO
job_filter_regex: ".*nightly.pypi.binary.size.validation|cron / release /"
env:
REPO_TO_CHECK: ${{ matrix.repo }}
BRANCH_TO_CHECK: ${{ matrix.branch }}
WITH_FLAKY_TEST_ALERT: ${{ matrix.with_flaky_test_alerting }}
JOB_NAME_REGEX: ${{ matrix.job_filter_regex }}
# Don't do actual work on pull request
DRY_RUN: ${{ github.event_name == 'pull_request'}}
runs-on: ubuntu-22.04
permissions:
issues: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Dependencies
run: pip3 install requests setuptools==61.2.0
- name: Check for alerts and creates issue
run: |
cd tools
python3 -m torchci.check_alerts
env:
# NOTE: Should be a blank string for pull requests
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
update-queue-alert:
env:
DRY_RUN: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-22.04
permissions:
issues: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Dependencies
run: pip3 install requests setuptools==61.2.0
- name: Check for alerts and creates issue
run: |
cd tools
python3 -m torchci.queue_alert
env:
# NOTE: Should be a blank string for pull requests
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}