From 3a5bdf215491b583155343f9592596a7eb704331 Mon Sep 17 00:00:00 2001 From: Tim Morgan Date: Sun, 1 Nov 2026 22:38:36 -0800 Subject: [PATCH 1/3] Poll for new DOF releases weekly The DOF is released every 56 days, two days after its currency date, so a daily poll found nothing new on most runs. A Sunday poll finds a release within a week, and the overdue alert (a week past the scheduled release) still gets a poll in time: the first Sunday after release is at most 5 days past it and the next is 12. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/dof-cycle-watch.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dof-cycle-watch.yml b/.github/workflows/dof-cycle-watch.yml index 6586a2d..c44e3c2 100644 --- a/.github/workflows/dof-cycle-watch.yml +++ b/.github/workflows/dof-cycle-watch.yml @@ -8,7 +8,9 @@ name: DOF Cycle Watch on: schedule: - - cron: "0 16 * * *" + # Sundays. Each 56-day cycle is released two days after its currency date, so a weekly poll finds + # it within a week, before the seven-day overdue alert can fire. + - cron: "0 16 * * 0" workflow_dispatch: inputs: cycle: From 73c61f133acbc8c00ecd7073eb8ed965a268e4c1 Mon Sep 17 00:00:00 2001 From: Tim Morgan Date: Sun, 1 Nov 2026 22:40:32 -0800 Subject: [PATCH 2/3] Describe the polling cadence in remaining comments Comments still described the old daily polling ("every day", "daily", "quiet day"). They now say "poll", which holds for the new schedule. Report artifacts keep 90 days, longer than any gap between runs, so retention is unchanged. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/dof-cycle-watch.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dof-cycle-watch.yml b/.github/workflows/dof-cycle-watch.yml index c44e3c2..3742c8f 100644 --- a/.github/workflows/dof-cycle-watch.yml +++ b/.github/workflows/dof-cycle-watch.yml @@ -104,7 +104,7 @@ jobs: days_since=$(( ( $(date -u +%s) - $(date -u -d "$RELEASED" +%s) ) / 86400 )) # A week of silence past the scheduled release means the FAA slipped or the URL shape - # changed, either of which looks like an ordinary quiet day. + # changed, either of which looks like an ordinary quiet poll. if [ "$available" != "true" ] && [ "$days_since" -ge 7 ]; then overdue=true else @@ -294,7 +294,7 @@ jobs: - name: Upload the report # Uploaded before anything reads it, and on failure too: this artifact is also the record - # that the cycle was checked, so a broken cycle is reported once rather than every day. + # that the cycle was checked, so a broken cycle is reported once rather than on every poll. if: always() uses: actions/upload-artifact@v7.0.2 with: From 448f59903f336fbe5cc9549cae15904915c4bea4 Mon Sep 17 00:00:00 2001 From: Tim Morgan Date: Sun, 1 Nov 2026 22:43:43 -0800 Subject: [PATCH 3/3] Tolerate a missing Last-Modified header on an unreleased cycle An unreleased DOF answers the HEAD request with 404 and no Last-Modified header. grep then exits 1, and under set -eo pipefail that aborted the availability step before available=false or the overdue check could be set. Guarding the grep, as SwiftCIFP does, leaves modified empty and lets the step fall through. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/dof-cycle-watch.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dof-cycle-watch.yml b/.github/workflows/dof-cycle-watch.yml index 3742c8f..23303c8 100644 --- a/.github/workflows/dof-cycle-watch.yml +++ b/.github/workflows/dof-cycle-watch.yml @@ -99,7 +99,7 @@ jobs: # Last-Modified is the mirror's re-sync time, not the release date: the file released on # 2026-08-04 reported a Last-Modified of 2026-09-14. It is recorded, never relied on. - modified=$(grep -i '^last-modified:' headers.txt | tail -n 1 | cut -d' ' -f2- | tr -d '\r') + modified=$({ grep -i '^last-modified:' headers.txt || true; } | tail -n 1 | cut -d' ' -f2- | tr -d '\r') size=$(grep -i '^content-length:' headers.txt | tail -n 1 | cut -d' ' -f2- | tr -d '\r') days_since=$(( ( $(date -u +%s) - $(date -u -d "$RELEASED" +%s) ) / 86400 ))