ci: allow testing the Slack alert via a manual test_alert input - #46
Conversation
The notify job only fires on the nightly schedule, so there was no way to verify it short of waiting for cron (a manual workflow_dispatch correctly skipped it). Add a boolean test_alert dispatch input that, when true, also fires the alert on a manual failing run — nightly behavior is unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Code Review by Qodo
1. Misleading Slack message
|
PR Summary by QodoCI: add manual Description
Diagram
High-Level Assessment
Files changed (1)
|
Why
The
notifyjob from #44 only fires on the nightlyschedule, so a manualworkflow_dispatchrun correctly skips it — there was no way to verify the alert without waiting for the cron (see run 27609273988, wherenotify-slack-on-failurewasskipped).Change
Add a boolean
test_alertdispatch input. When a manual run is started withtest_alert=trueand e2e fails, the alert also fires. Nightly behavior is unchanged:On a
scheduleeventinputs.test_alertis undefined/falsy, so the schedule path is unaffected.How to test
Run the E2E workflow manually (Actions → E2E → Run workflow) with test_alert = true. While e2e is red (until #45 lands) the alert will fire; once green it won't (as intended).
🤖 Generated with Claude Code