Nightly Tests #39
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nightly Tests | |
on: | |
schedule: | |
- cron: '23 10 * * *' # random time in the middle of the night PT | |
workflow_dispatch: | |
inputs: | |
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" | |
repo=microsoft/triton-shared #"${{ github.repository }}" | |
if [ -z "$issues" ]; then | |
gh --repo $repo 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 $repo issue comment $issue_number \ | |
--body "cc $notificiation_list | |
The nightly build has failed again. See: $build_url" | |
fi | |
env: | |
GH_TOKEN: ${{ github.token }} |