Repository navigation
PowerShell(ci): Compare once docs has the rules - #88
Merged
Merged
Conversation
why: The weekly shared examples job has failed every run, most recently with curl "404" for scripts/check_example_width.py on libtmux/docs HEAD. The file did not move: libtmux/docs has never had it on its default branch. It exists only on the example-style branch of docs pull request 101, a draft with merge conflicts, and docs WRITING.md carries no shared:examples section either. Until that lands there is nothing to compare, and no docs commit on a reachable ref matches this repository's checker, so pinning one would turn the 404 into a digest mismatch. The job compares against docs' default branch so that drift shows up when the shared rules change. A pin would freeze that comparison on one docs revision, so the job stays on HEAD and decides from docs WRITING.md whether the rules exist yet. Evidence, from the workflow's own steps run against a local server in place of raw.githubusercontent.com: - docs main today: 404 and exit 22 before, notice and exit 0 after - clean control with this repository's files as the docs copy: exit 0 - WRITING.md with the markers but no checker at the path, as when docs renames it: exit 22 before and after - one word changed in the docs copy of the shared section: digest diff, exit 1 before and after what: - Fetch WRITING.md first and fetch the checker only when it holds the shared:examples marker - Print a notice and skip the digest comparison when it does not - Fail on a missing checker once the marker is there
This branch was successfully deployed
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
The weekly
shared examplesjob passes with a notice while libtmux/docs has no shared example rules, and fails on a missing checker or a digest mismatch once it does.Root cause
Run 42655187532 failed with
curl: (22) ... 404fetchingscripts/check_example_width.pyfrom libtmux/docs HEAD. The file did not move or get renamed: it has never been on the default branch of libtmux/docs. It exists only on theexample-stylebranch of libtmux/docs#101, a draft with merge conflicts, and docsWRITING.mdhas noshared:examplessection on main. All five runs of the job have failed the same way.Pinning a docs commit does not fix it:
72d3bc6ca,79a0405d0).df0d2ff04, has a different checker and shared section, so a pin there turns the 404 into a digest mismatch.Notes for review
check_shared_examples.pyin Raise each review dimension to 9.5/10 #101 could read it directly and make this job redundant. Left as is.Test plan
raw.githubusercontent.com: docs main today gave exit 22 before and a notice with exit 0 after. A clean control exited 0. AWRITING.mdwith the markers but no checker, and a one-word change in the docs copy of the shared section, each failed before and after.actionlint .github/workflows/shared-examples.ymlshared exampleson this branch