You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6bda0b9
Browse filesBrowse the repository at this point in the historyBrowse files
feat(pipeline): warn a week before a feed source goes stale
Imports are manual and the liveness run is weekly, so a source only
showed up once it was past stale_after_days: FTC's newest record lapsed
2026-10-07 and nothing would have said so before the 2026-10-12 run.
warn_source_staleness reports a regular-cadence source within seven days
of its limit (newest record date for FCC and FTC, last import
otherwise). main() exits 3 for warnings only, and the workflow opens or
updates the pipeline-stalled issue with a warning title without failing
the job. A stale source still fails. Tests cover 6, 7, 13, 14 and 15 days,
a 30-day source and the exit code; a mutant window of 6 days fails them.
body="$(printf 'The weekly pipeline check passed on %s, with a warning: a source goes stale within a week.\n\n```\n%s\n```\n' "$(date -u +%Y-%m-%d)" "$(cat liveness.txt)")"
63
+
number="$(gh issue list --state open --label pipeline-stalled --json number --jq '.[0].number // empty')"
64
+
if [ -n "$number" ]; then
65
+
gh issue comment "$number" --body "$body"
66
+
else
67
+
gh label create pipeline-stalled --color B60205 --description "The weekly pipeline check is failing" 2>/dev/null || true
68
+
gh issue create --title "Report pipeline warning: a source goes stale within a week" --label pipeline-stalled --body "$body"
0 commit comments