Repository navigation
ci: check the docs skill pages on docs-only changes - #1727
Merged
Merged
Conversation
Docs-only, UI-only and release-metadata changes skip Static checks, and with them check-docs-skill, so a website docs edit could leave the skill pages generated from it stale until a later code change failed on main. A new Docs skill pages job runs the check whenever Static checks are not selected. It needs only the standard library, so it adds no install or build to those changes. Verify requires it to pass then, and accepts it skipped only when Static checks run, which already include the check.
Contributor
Author
|
Before and after on a docs-only change (draft #1728, based on this branch, now closed):
|
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.
Why
Main failed Static checks at 67e7304 because
make check-docs-skillfoundCONTENTS.mdandindex.mdstale; #1725 regenerates them. A website docs edit (#1722) changed the docs index description that those pages copy, and nothing caught it: verify.yml classifies website-only and skill-page-only changes as docs-only, which skips Static checks, andcheck-docs-skillonly runs insidemake check-cithere. The stale pages then failed the next code change's merge group and blocked the queue.Changes
Docs skill pagesjob in verify.yml runspython3 -m scripts.check_docs_skill --investigation-guide ''whenever Static checks are not selected (docs-only, UI-only and release-metadata changes). The scripts use only the standard library, so the job needs no install or native build and takes seconds.sqlbuild-python; only a code change can move that, and code changes run Static checks, wherecheck-cistill runs the full check.Verifyjob needs it: it must pass when Static checks are not selected, and may be skipped only when they are.Verification
CONTENTS.mdandindex.md. With docs: regenerate the bundled docs skill for the new home page description #1725's two pages: exit 0.