Repository navigation
Stop committing generated guide pages so they cannot drift - #1256
Merged
Merged
Conversation
sync-docs generates the Share a Bot and Update DeepSeekBot guide pages from docs/*.md, but unlike every other generated guide they were committed. #1224 changed the Share a Bot sources without regenerating them, so the committed pair went stale, and the in-place astro build in changelog-public-surfaces.test.ts rewrote them on every full test run. Untrack and ignore the four outputs, and fail a test whenever any sync-docs page output is tracked. Issue: #1255 Agent-Task: claude/local/docs-generated-drift Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 51 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (6)
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Generated guide pages were committed, so they drifted from their sources and every full
pnpm testleft them modified.Closes #1255 · Claim: #1255 (comment) · Agent-Task:
claude/local/docs-generated-driftChange outline
scripts/sync-docs.mjswritesshare-bot.mdxandupdate-deepseekbot.mdx(English and Chinese) fromdocs/*.md. Every other generated guide is in.gitignore; these four were committed. Give every Bot a Profile banner #1224 changed the Share a Bot sources without regenerating them, so the committed pair went stale. They are now removed from Git and ignored like the rest.changelog-public-surfaces.test.tsrunsastro buildin place, andastro.config.tscallssyncDocs(), so each full test run rewrote the stale pair.apps/docs/test/generated-pages-untracked.test.tsfails if anysync-docspage output is tracked. I checked that it fails on the old index, listing the four files, and passes after the change.Special things to note
docs/*.md) are unaffected, because both read the sources, not these outputs. Review focus: whether any tool expects these four files in a fresh checkout before sync. I found none:deepseekbot-guides-moved.test.tstakes slugs fromPAGES.No UI change. Verified locally:
apps/docstests (14 files, 90 tests) pass and leave the tree clean; lint, format and typecheck pass.🤖 Generated with Claude Code