GeezerVison is showing github.com — feat(github-backup): deduplicated GitHub alerts for the hosted freshness report (#15001 slice 2) by dezren39 · Pull Request #15159 · developing-today/code
Conversation
dezren39
commented
Nov 25, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
Slice 2 of #15001 (the alerting half Felix's slice-1 note queued next; slice 1's hosted comparison engine landed in PR #15130).
- New
infra/github-backup/bin/hosted_alerts.py: consumes the slice-1 hosted_freshness.py report and plans GitHub issue actions per (leg, repo) — create when an unhealthy pair has no open alert, update in place when evidence changes, noop when re-planning the same run, resolve (comment + close) when a later run verifies the pair fresh again.
- Dedup key is a machine-readable body marker (
<!-- hosted-freshness-alert: leg=… repo=… -->), never title text, so exactly one open alert exists per unhealthy pair.
- stale / missing / partial / failed stay distinct in title and body; every alert carries status, detail, SLO, and the report's run identity + generation time as evidence. The inventory-global
d1_export leg alerts under repo -; the source leg is not alerted on its own (a failed source check already fails every copy leg).
- Dry-run by default (prints the plan as JSON);
--apply executes via gh api with an injectable executor. Strict argument parsing before any file/network access (Design: unknown means stop — one strict argument contract for the repo's operator scripts #3352 contract). No schedule is added and no live alerting is wired yet — that lands with the missed-run watchdog slice, per the design.
Evidence
- Before: on origin/main the report filed nothing (slice-1 module docstring: 'this module files nothing'); no alert planner existed.
- After: remote verification via the fleet-command workflow fallback (queue dispatch blocked by TLS defect fleet: repo-queue dispatch fails with TLS UnknownIssuer behind the egress proxy (Rust TLS ignores SSL_CERT_FILE) #13185), run 45648754646 on developing-today/fleet, conclusion success:
test_hosted_alerts.py (10 tests: create per status, dedup update, same-run noop, resolve on re-verification, d1 global leg, apply dispatch) and test_hosted_freshness.py both pass against head 54a4bdc. Conclusions read as metadata only; no CI logs read.
- The new test file is auto-discovered by
github-backup-tests.yml's tests/test_*.py glob, so it runs in the existing suite with no registry change.
Merge Danger
- Low: two new files only, no existing file touched. The module is not invoked by any workflow yet, so merging changes no live behaviour;
--apply is opt-in per invocation.
Refs #15001 — remaining on the issue: external missed-run watchdog + tested signal, cron schedule + registry entry, hosted-workflow credential provisioning.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…report (#15001 slice 2)
hosted_alerts.py plans create/update/resolve/noop actions per
(leg, repo) from the slice-1 hosted_freshness report, keyed by a
body marker so exactly one open alert exists per unhealthy pair.
Successful re-verification resolves the alert; stale/missing/
partial/failed stay distinct and every alert carries run identity.
Dry-run by default; --apply executes via gh api with an injectable
executor. Hermetic planner tests cover create/dedup/noop/resolve.
This was referenced Nov 25, 2026
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 26, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|