Nightly Sanitized Run #379
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 Sanitized Run | |
on: | |
schedule: | |
# Runs every day at 03:00 UTC | |
- cron: '0 3 * * *' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
actions: read | |
jobs: | |
run-test: | |
uses: ./.github/workflows/test_workflow.yml | |
with: | |
configuration: '["asan"]' # Ignoring tsan for now '["asan", "tsan"]' | |
report-failures: | |
runs-on: ubuntu-latest | |
needs: run-test | |
if: failure() | |
steps: | |
- name: Download failed tests artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: failures | |
path: ./artifacts | |
- name: Report failures | |
run: | | |
find ./artifacts -name 'failures_*' -exec cat {} \; > ./artifacts/failures.txt | |
scenarios=$(cat ./artifacts/failures.txt | tr '\n' ',') | |
echo "Failed scenarios: $scenarios" | |
curl -X POST "${{ secrets.SLACK_WEBHOOK }}" \ | |
-H 'Content-Type: application/json' \ | |
-d "{'scenarios': '${scenarios}', 'failed_run_url': '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'}" |