ci(docs): Validate static-sites links against route changes - #18896
Draft
sentry-junior[bot] wants to merge 4 commits into
Draft
ci(docs): Validate static-sites links against route changes#18896sentry-junior[bot] wants to merge 4 commits into
sentry-junior[bot] wants to merge 4 commits into
Conversation
Co-Authored-By: Shannon Anahata <shannon.anahata@sentry.io>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
CI runs vitest, not node:test. Match the existing .mjs vitest pattern so the suite is discovered. Co-Authored-By: Shannon Anahata <shannon.anahata@sentry.io>
Default GITHUB_TOKEN cannot read getsentry/static-sites (private), so the cross-repo check failed at checkout with repository not found. Mint a scoped Sentry internal app token for the consumer checkout only.
SENTRY_INTERNAL_APP is not installed on private static-sites, so docs CI cannot checkout the consumer repo. Commit the www-astro docs.sentry.io path inventory and resolve against that instead. Keep live consumer extraction on the static-sites side.
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.
Summary
Adds a cross-repo docs link contract check so docs route/redirect changes cannot silently 404
static-sitesconsumer links (the agents dashboard singular/plural failure mode).Design
sentry-docs(scripts/lib/doc-link-contract.mjs+scripts/check-doc-link-contract.mjs).static-siteswww-astrodocs.sentry.iolinks against the candidate docs route graph. No private checkout required (static-sitesis private and SENTRY_INTERNAL_APP is not installed there).Inventory
scripts/data/static-sites-www-astro-docs-paths.json(543 paths today)node scripts/check-doc-link-contract.mjs --consumer-root <static-sites>/packages/www-astro --write-links-file scripts/data/static-sites-www-astro-docs-paths.jsonTest plan
master