Skip to content

fix(ci): ignore generated docs in the stale-base overlap check - #4550

Merged
kyle-sexton merged 3 commits into
mainfrom
fix/stale-base-overlap-generated-docs
Sep 27, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
fix/stale-base-overlap-generated-docs

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: Day 0 CI triage, stale-base-overlap trips on generated docs

Summary

scripts/check-stale-base-overlap.sh fails a PR when a path it changed also changed on the base since the merge-base. docs/catalog.md and docs/skill-cheat-sheet.md are regenerated by nearly every plugin PR, so parallel lanes kept failing each other on those two files even when their real changes were disjoint.

Fix

Drop docs/catalog.md and docs/skill-cheat-sheet.md from head_paths before the comm intersection. The exclusion is safe because scripts/validate-plugins.sh (CI step "Validate plugin and catalog manifests") runs node scripts/generate-catalog.mjs --check and node scripts/generate-cheatsheet.mjs --check, which fail unless each file's generated marker block matches what its sources produce. The sources (manifests, SKILL.md metadata) stay in the overlap comparison. That step runs whenever these files change: scripts/check-docs-only.test.sh asserts neither file counts as docs-only.

The list is two hardcoded paths with a comment naming validate-plugins.sh. Deriving it from that script would mean parsing each generator for its output path, which is more code than two paths are worth.

Known gap: only the text between each file's <!-- ...:start/end --> markers is regenerated. The few hand-written preamble lines above the markers are no longer overlap-checked.

Verification

  • bash scripts/check-stale-base-overlap.test.sh: PASS=8 FAIL=0. There are two new cases. In the first, both sides edit only the generated docs, and the script exits 0. In the second, a real overlap on shared.txt sits beside them, and the script exits 1 listing shared.txt but not catalog.md. The existing overlap and rename cases still fail as before.
  • With the script change reverted, both new cases fail (PASS=6 FAIL=2), so the test catches a regression.
  • shellcheck is clean on both files.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01LExzoQ5XQRKgsFv6c99Wrb

kyle-sexton and others added 2 commits September 26, 2026 17:37
docs/catalog.md and docs/skill-cheat-sheet.md are regenerated by nearly
every plugin PR, so parallel PRs tripped the stale-base overlap gate on
them. Their generated blocks are drift-checked by scripts/validate-plugins.sh
(generate-catalog.mjs --check, generate-cheatsheet.mjs --check) and their
sources stay in the overlap comparison, so drop them from head_paths.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LExzoQ5XQRKgsFv6c99Wrb
@kyle-sexton
kyle-sexton marked this pull request as ready for review September 26, 2026 23:27
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-26T23:30:27.734163Z 854db45 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@claude

claude Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

@claude

claude Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

@claude

claude Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

@claude

claude Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

@kyle-sexton
kyle-sexton merged commit 91697b0 into main Sep 27, 2026
3 checks passed
@kyle-sexton
kyle-sexton deleted the fix/stale-base-overlap-generated-docs branch September 27, 2026 02:06
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