Skip to content

ci: rebuild a missed day from its cached data - #16

Closed
alviss7 wants to merge 1 commit into
mainfrom
ci/backfill-from-cache
Closed

alviss7 wants to merge 1 commit into
mainfrom
ci/backfill-from-cache

Conversation

@alviss7

@alviss7 alviss7 commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Problem

The October 16 build failed, and the cause has since been fixed. The workflow can only fetch the sources live and publish under the current date, so a missed day cannot be rebuilt. The failed run did save its data in the Actions cache (data-38858414824), though.

Change

New backfill input on workflow_dispatch, taking the ID of an earlier run. In backfill mode, the workflow:

  • restores exactly the data-<run> cache, fails if it no longer exists, skips Fetch and saves no cache;
  • uses that run's date for the tag and the accuracy history;
  • publishes the release with --latest=false, and only pushes the dated image tag, not latest;
  • leaves the README.md of the accuracy branch alone, since it describes the latest day.

accuracy.csv is now sorted by date so a backfilled day lands in place. Otherwise the next day would be compared against it.

Without backfill, the workflow behaves as before.

Usage

gh workflow run databases.yml -f backfill=38858414824

The cache expires 7 days after it was last accessed.

Add a backfill input to workflow_dispatch taking the ID of an earlier
run. It restores that run's data cache, skips fetching, tags the release
with the run's date, keeps Latest and the latest image tags on the
current release, and leaves the accuracy README alone. The accuracy
history is now sorted by date so a backfilled day lands in place.
@alviss7 alviss7 closed this Oct 20, 2026
@alviss7
alviss7 deleted the ci/backfill-from-cache branch October 20, 2026 04:28
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