Commit 99d5a36
authored
fix(track-performance): stale cron expression in daily bench (#1667)
## Why this should be merged
Today's scheduled daily benchmark run
[failed](https://github.com/ava-labs/firewood/actions/runs/21894045008)
because `github.event.schedule` returned `0 5 * * *` a cron expression
that was updated to `0 5 * * 1-5`:
#1659
https://github.com/ava-labs/firewood/actions/runs/21894045008/job/63219300944#step:2:121
Opened bug report actions/runner#4241
## How this works
- Matches the stale `0 5 * * *` cron alongside `0 5 * * 1-5` in the case
statement so the run doesn't hard-fail
- Adds a weekend guard if the stale cron fires on Saturday or Sunday,
the run exits early since those days aren't meant for the daily
benchmark
## How this was tested
Hard to test cron scheduling without trial and error approach
unfortunately.1 parent 49b6ae6 commit 99d5a36
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
71 | 81 | | |
72 | 82 | | |
73 | 83 | | |
| |||
0 commit comments