Skip to content

ci(smoke): assert newly added docs routes after each R2 upload - #139

Merged
steipete merged 1 commit into
mainfrom
claude/loving-cannon-2fb753
Aug 27, 2026
Merged

ci(smoke): assert newly added docs routes after each R2 upload#139
steipete merged 1 commit into
mainfrom
claude/loving-cannon-2fb753

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Extends docs-live-smoke so each post-upload dispatch also asserts routes newly added by the commits covered by that r2-pages run, derived from the commit-range diff of added files under docs/ mapped to routes via a new scripts/docs-site/added-routes.mjs helper (mirrors build.mjs page-collection rules; deterministic 100-route sampling cap with logged truncation). A malformed range or failed fetch fails the run instead of silently skipping. r2-pages passes event.before..sha on push runs, forwards continuity through the head-drift successor dispatch via a new smoke_commit_range input, and the smoke workflow gains a daily scheduled sampler probing 25 deterministic docs_map.md routes against the live site. Fixed probes unchanged.

Motivation: 2026-08-27 incident where docs/start/why-openclaw.md was dropped from an upload and 404'd silently; the fixed-probe smoke structurally could not detect it.

Validation: 48/48 node tests, actionlint clean, and two manual dispatches on this branch: run 33076424857 (commit_range covering the incident sync commit) derived and asserted /start/why-openclaw live; run 33076645608 (no input) confirmed the legacy fixed-probe path unchanged.

Derive routes added in the dispatching run's commit range and probe them
live alongside the fixed pages, so a dropped upload of a new page fails
the smoke instead of 404ing silently (2026-08-27 why-openclaw incident).
Adds a daily scheduled sampler that checks docs_map.md routes against
the live site, and forwards range continuity through the head-drift
successor dispatch.
@steipete
steipete requested a review from a team as a code owner August 27, 2026 16:46
@steipete
steipete merged commit ca48392 into main Aug 27, 2026
10 checks passed
@steipete
steipete deleted the claude/loving-cannon-2fb753 branch August 27, 2026 16:54
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