Skip to content

PowerShell(ci): Compare once docs has the rules - #88

Merged
tony merged 1 commit into
masterfrom
fix/shared-examples-path
Nov 13, 2026
Merged

tony merged 1 commit into
masterfrom
fix/shared-examples-path

Conversation

@tony

@tony tony commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Summary

The weekly shared examples job 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) ... 404 fetching scripts/check_example_width.py from 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 the example-style branch of libtmux/docs#101, a draft with merge conflicts, and docs WRITING.md has no shared:examples section on main. All five runs of the job have failed the same way.

Pinning a docs commit does not fix it:

  • The only docs commits whose checker and shared section match this repository's copies are superseded versions of that branch, reachable from no ref (72d3bc6ca, 79a0405d0).
  • The head of Raise each review dimension to 9.5/10 #101, df0d2ff04, has a different checker and shared section, so a pin there turns the 404 into a digest mismatch.
  • A pin would freeze a job whose purpose is to notice drift against docs' current rules.

Notes for review

Test plan

  • The workflow's own steps, run against a local server in place of raw.githubusercontent.com: docs main today gave exit 22 before and a notice with exit 0 after. A clean control exited 0. A WRITING.md with 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.yml
  • Dispatch shared examples on this branch

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
@tony
tony deployed to docs-preview November 13, 2026 00:53 — with GitHub Actions Active
@tony
tony merged commit 9f986eb into master Nov 13, 2026
23 checks passed
@tony
tony deployed to docs-preview-cleanup November 13, 2026 01:50 — with GitHub Actions Active

This branch was successfully deployed

2 active deployments
docs-preview-cleanup — 64f191d9 Deployed Nov 13, 2026 by tony via cleanup #55
docs-preview — 64f191d9 Deployed Nov 13, 2026 by tony via publish (pr-88, pr, false, true, powershell) / publish #197
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant