Skip to content

fix: make content refresh checkpoint self-healing - #163

Merged
hanihusam merged 2 commits into
mainfrom
fix/content-refresh-checkpoint
Aug 26, 2026
Merged

fix: make content refresh checkpoint self-healing#163
hanihusam merged 2 commits into
mainfrom
fix/content-refresh-checkpoint

Conversation

@hanihusam

Copy link
Copy Markdown
Owner

Summary

  • refresh every tracked content file when the deployed refresh checkpoint is missing
  • advance the checkpoint after every successful deploy, including deploys with no content changes
  • fail the workflow on git, HTTP, or timeout errors instead of reporting a false success
  • target the actual staging Fly app when refreshing dev

Why

After PR #162 deployed, the refresh job read the new build SHA as its comparison SHA. It therefore compared the deployment with itself, found no changed content, and left the projects directory cache stale. The new case study returned 404 even though its commit was running in production.

The first deployment of this fix will bootstrap the missing checkpoint by refreshing all tracked MDX files. Later deployments will use incremental diffs from the stored checkpoint.

Verification

  • focused Node harness covering missing-checkpoint bootstrap, incremental content changes, and unchanged deployments
  • staging hostname assertion
  • npm run validate

@sonarqubecloud

Copy link
Copy Markdown

@hanihusam
hanihusam merged commit c99b669 into main Aug 26, 2026
3 checks passed
@hanihusam
hanihusam deleted the fix/content-refresh-checkpoint branch August 26, 2026 10:23
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