Skip to content

feat: open an issue when scheduled integration validation fails - #18

Merged
emkraan-deploy-bot[bot] merged 1 commit into
mainfrom
feat/scheduled-validation-alert
Oct 3, 2026
Merged

emkraan-deploy-bot[bot] merged 1 commit into
mainfrom
feat/scheduled-validation-alert

Conversation

@cmarko89

@cmarko89 cmarko89 commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Why

A new hassfest rule (exact pins on packages Home Assistant depends on are rejected) broke homeassistant-playstationnetwork on an unchanged main. Scheduled runs exist to catch exactly this, but a failed scheduled run notifies nobody, so it only surfaced when an unrelated PR failed.

What

  • New alert job: runs only when github.event_name == 'schedule'.
    • When hassfest or HACS fails, it opens a Scheduled validation failing issue (label bug), or comments on the open one.
    • When both pass again, it closes that issue.
    • Push and PR runs never touch the issue.
  • The header's caller example now shows a daily schedule and the issues: write grant.

Merge order

This is a draft until all five callers grant issues: write. Without the grant, GitHub rejects the whole called workflow. The caller PRs are:

Verification

  • Branch logic stub-tested: failure with no open issue creates one, failure with an open issue comments, green with an open issue closes it, and green with none does nothing (including a skipped job).
  • The issue lookup query was run against the real API.

Add an alert job that runs only on scheduled runs: it opens one
"Scheduled validation failing" issue when hassfest or HACS fails, comments on
it while still failing, and closes it on the next green scheduled run.
Document daily scheduling and the issues: write grant in the caller example.
@cmarko89
cmarko89 marked this pull request as ready for review October 3, 2026 14:24
@emkraan-deploy-bot
emkraan-deploy-bot Bot added this pull request to the merge queue Oct 3, 2026
Merged via the queue into main with commit 620679b Oct 3, 2026
3 checks passed
@emkraan-deploy-bot
emkraan-deploy-bot Bot deleted the feat/scheduled-validation-alert branch October 3, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant