Repository navigation
Reject incomplete sitemap generation and recover after source failures - #1267
tannerlinsley wants to merge 2 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
tanstack-com | 2a8a2b2 | Oct 15 2026, 08:44 AM |
|
|
Updated this branch with the current docs-freshness parent and resolved the local-docs fallback conflict. The integration test caught two cases worth keeping covered: an existing empty local docs directory must stay empty instead of falling back to remote docs, and malformed YAML must fail manifest generation instead of silently dropping metadata. Reference freshness handling also preserves that parse failure. Verification on 2a8a2b2:
This still depends on #1264 and the required maintainer review. It only addresses part of #1153, which should stay open for the remaining canonical URL and deployed-page checks. |
A failed or empty documentation manifest could produce a 200 sitemap with an entire library missing. Sitemap generation now fails explicitly with 503, no-store headers, and Retry-After instead of publishing that reduced result. Logs identify the failed library or catalog and record successful generation after recovery.
GitHub directory fallback now visits all depths and rejects a listed child directory that disappears. Cached trees with unvisited directories are rejected, and the manifest cache key changes so old depth-limited manifests are rebuilt. Local directory reads use the same complete traversal. Local-only one-millisecond file/tree caching was removed after the HTTP recovery test demonstrated that it kept serving an empty tree after the fixture was restored. Production GitHub cache behavior remains in place.
Stacked on #1264, which supplies the freshness metadata already used by sitemap entries.
Validation:
pnpm testpassed: 525 tests passed, 4 opt-in skips, TypeScript and lint clean. The commit hook repeated the final checks successfully.sitemap-testing.mdandscripts/prepare-sitemap-test.tsmake the HTTP check reproducible.