Repository navigation
ci(docs): run the docs gate when the example checker's helpers change - #1230
Merged
okwasniewski merged 1 commit intoOct 19, 2026
Merged
Conversation
The `docs` filter lists the four `scripts/check-docs-*.ts` checkers but not the modules they import: `check-docs-examples.ts` reads the example list from `docs-examples.ts`, which takes the repository root from `public-packages.ts`. e2e-inc#931 wrote the filter when the checkers were self-contained; e2e-inc#1009 and e2e-inc#1017 later added those two modules without extending it. So a change to either module alone skips the docs suite, and nothing catches it afterwards: `docs.yml` runs on pull requests and merge queue entries only, and `spec.yml` never runs `docs:check`. Verified: both modules match the extended block and neither matched the old one (`node path.matchesGlob` over both lists); `check-docs-examples`, `check-docs-package-managers`, and `check-docs-logos` pass at this revision. `check-docs-anchors` cannot run in this checkout because `@sindresorhus/slugify` (root `package.json:51`) is missing from the local install.
Contributor
There was a problem hiding this comment.
No issues found across 1 file
Heads up: you’ve reached your flex budget. Increase your flex budget or wait for usage to reset.
View guided diff | Re-trigger cubic
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.
What and why
.github/filters.ymldecides which suites a pull request runs. Thedocsblock lists the four checker scripts asscripts/check-docs-*.ts, and two modules those checkers import fall outside that pattern, so a change to either one leaves the filter output false and thebuildjob in.github/workflows/docs.yml:38is skipped.scripts/check-docs-examples.ts:23imports./docs-examples.tsfor the example list, andscripts/docs-examples.ts:17takesREPO_ROOTfrom./public-packages.ts. Neither path matchesscripts/check-docs-*.ts,docs/**,skills/e2e/**, or any other entry in the block, and thecheckscript indocs/package.jsonis what runs them.Nothing reports the skip. A skipped job passes the required
docs gateon purpose (.github/workflows/docs.yml:58,needs: [changes, build],if: always()),docs.ymlruns on pull requests, merge queue entries, and manual dispatch only, with nopushtrigger, andspec.ymlruns its own steps one by one instead of the rootpnpm checkthat does includedocs:check. So the check that consumes those modules never runs, neither on the pull request nor onmainafterwards.The pattern was correct when it was written. PR #931 wrote the docs block for the four
check-docs-*.tscheckers. PR #1017 later moved the example list intodocs-examples.ts, which reads the repository root from the olderpublic-packages.ts, and the block was never extended.AGENTS.mdasks for the opposite ("A new build input or benchmark dependency goes intofilters.ymlin the same change"), and PR #886 is this same fix for themobileblock, wherepackages/github/**was missing.What the two modules do, so the stakes are concrete.
docs-examples.tsis what turns an example file that no docs page shows into a failure instead of an unchecked file, andpublic-packages.tsis where that walk gets the repository root. A regression in either one reads as a green docs gate.What changed
Two entries and a comment in the
docsblock:What each path does to the docs suite:
scripts/docs-examples.tsscripts/public-packages.tsscripts/check-docs-examples.tscheck-docs-*.tsdocs/**andskills/e2e/**packages/e2e/src/**public-packages.tsis in the block because the docs check reaches it throughdocs-examples.ts. Four other gates read it too (check-error-codes,check-peer-ranges,check-install-scripts,check-changeset-bumps), and all of them run in the unfilteredspec.yml, so their coverage does not depend on this block.CI only. No changeset, and nothing changes for anyone consuming the published packages.
Verified
Ran it locally: yes
node:path.matchesGlob). Onmainboth helper modules report no match, which is the skip; here both match, and the four checkers keep matching through the existingcheck-docs-*.tspattern.picomatch, the matcherdorny/paths-filteritself uses, is not installed in this checkout, and the change only adds positives to a block that carries no negatives.runner,web,mobile, anddocsare intact, and the*runneranchor still merges into thewebandmobileblocks.filters.yml, which every list includes on purpose so a change to the gate runs what it gates, so its own CI run exercises the docs workflow.Checklist
pnpm changeset) for any change to a published package, or the change is testbed, docs, or CI only.!, the changeset body names what breaks and what replaces it, and the deprecation warning landed a window earlier (stability policy in CONTRIBUTING.md).docs/**/*.mdxpage for the behavior, andskills/e2e/if the skill describes it..d.tsreviewed,tests/types/sdk-types.tsupdated; wire change edits the schema and both fixtures.e2e/engine): changesets fore2e,@e2e-dev/web, and@e2e-dev/mobile.