Skip to content

feat(alerts): warning and critical tiers, recovery values and N-of-M on one rule - #1509

Merged
Makisuo merged 32 commits into
mainfrom
worktree-alerting-severity-tiers
Oct 17, 2026
Merged

Makisuo merged 32 commits into
mainfrom
worktree-alerting-severity-tiers

fix(ci): upload the hidden .e2e results folder

243616c
Select commit
Loading
Failed to load commit list.
Maple Review Bot / Maple / review succeeded Oct 17, 2026 in 51s

Confidence 9/10 · No issues found

🟢 Confidence 9/10 · safe to merge
The only delta since the last review is a non-blocking e2e step whose env and artifact path I verified against the e2e suite and deploy-setup.
quality 100/100 · no findings · tests covered · risk low

Adds warning/critical tiers, recovery values and N-of-M to alert rules, with the v2 API, scheduler, delivery, migrations and a new browser e2e suite. The only change since the last review is the CI step that runs that suite against a PR preview; it is safe to merge.

  • Runs the browser e2e suite against each fresh PR preview after the smoke test
  • Non-blocking (continue-on-error), uploading apps/web/e2e/.e2e/ as the e2e-results artifact

Before merge

Production impact

Production traffic of the changed files (last 7 days)
File Calls/day Busiest operations
packages/backend/src/services/errors/issue-hub.ts 15 IssueHub.recordIssueEvent 15/day, 0.0% err
apps/web/src/lib/alerts/form-utils.ts 7 POST /v2/alerts/rules 7/day, 0.0% err
Telemetry this change adds and removes (2)
  • ➕ span name IssueHub.escalateAlertIssue · packages/backend/src/services/errors/issue-hub.ts:377
  • ➕ span name IssueHub.raiseDetectorSeverity · packages/backend/src/services/errors/issue-hub.ts:403
What was checked
  • PREVIEW_SIGNIN_KEY reaches the e2e step from Infisical: deploy-setup exports it via export-type: env (action.yml:47), the same way the smoke step gets CLERK_SECRET_KEY
  • include-hidden-files: true is needed and correct for a dot-directory path, matching backup-restore-test.yml:63
  • Artifact path/name has no collision and the upload is guarded so a teardown or skipped e2e writes nothing

243616c · Updated on every push. Reply "won't fix" to dismiss a finding, or mention @maple-review-bot to ask about one.