Skip to content

Commit 22434aa

Browse files
authored
chore: schedule daily qns job (#2636)
1 parent a5921e5 commit 22434aa

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/qns.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
branches:
77
- main
8+
schedule:
9+
# Run daily job at 8:00 PM PT
10+
- cron: '0 3 * * *'
811

912
name: qns
1013

@@ -548,3 +551,20 @@ jobs:
548551
set -e
549552
# `timeout` exits with `124` if the time limit was reached
550553
[[ "$EXIT_CODE" == "124" ]] || exit $EXIT_CODE
554+
555+
scheduled-qns-status-report:
556+
runs-on: ubuntu-latest
557+
if: ${{ always() }}
558+
needs: [env, s2n-quic-qns, interop, interop-report, h3spec, perf, perf-report, attack]
559+
steps:
560+
- uses: aws-actions/[email protected]
561+
if: github.event_name == 'schedule'
562+
with:
563+
role-to-assume: arn:aws:iam::003495580562:role/GitHubOIDCRole
564+
role-session-name: S2nQuicGHASession
565+
aws-region: us-west-2
566+
- name: Report daily qns run to CloudWatch
567+
if: github.event_name == 'schedule'
568+
run: |
569+
METRIC_VALUE=${{ contains(needs.*.result, 'failure') && '1' || '0' }}
570+
aws cloudwatch put-metric-data --namespace "Github" --metric-name "ActionCIFaliure" --value $METRIC_VALUE --dimensions Initiator=scheduled --timestamp $(date +%s)

0 commit comments

Comments
 (0)