Skip to content

Nightly Tests

Nightly Tests #38

Workflow file for this run

name: Nightly Tests
on:
schedule:
- cron: '23 10 * * *' # random time in the middle of the night PT
workflow_dispatch:
inputs:
notify-on-failure:
default: false
type: boolean
force-failure:
default: false
type: boolean
jobs:
call-workflow:
runs-on: ubuntu-latest
steps:
- name: Force Failure
if: ${{ github.event.inputs.force-failure }}
run: exit 1
- name: Run Triton-Shared Testing
uses: ./.github/workflows/test-plugin.yml
with:
triton-ref: 'main'
triton-shared-ref: 'main'
- name: Report Failure
if: ${{ failure() }}
run: |
issues=$(gh --repo microsoft/triton-shared issue list --label nightly-build-failure --state open)
build_url="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
notificiation_list="@microsoft/aifx-compilers"
if [ -z "$issues" ]; then
gh --repo ${{ github.repository }} issue create \
--title "Nightly Build Failure $(date +'%Y-%m-%d')" \
--label "nightly-build-failure" \
--body "cc $notificiation_list
The nightly build has failed. See: $build_url"
else
issue_number=$(echo "$issues" | head -n 1 | awk '{print $1}')
gh --repo microsoft/triton-shared issue comment $issue_number \
--body "cc $notificiation_list
The nightly build has failed again. See: $build_url"
fi
env:
GH_TOKEN: ${{ github.token }}