Skip to content

Make the case studies inputs of cigen's own test job (false skip from #40) - #53

Open
ndbroadbent wants to merge 1 commit into
mainfrom
fix/case-studies-test-input
Open

ndbroadbent wants to merge 1 commit into
mainfrom
fix/case-studies-test-input

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

A false skip in cigen's own CI, which I introduced in #40. #40 made tests/docs_examples.rs read the case studies (docs/src/content/case-studies/), but cigen's own test job didn't list them as inputs. A commit that broke only a case study's config would have skipped the test that checks it.

The fix: docs/src/content/case-studies/**/*.md is added to the docs_examples input group in .cigen/config.yml. The generated workflow doesn't change, because the hash step reads inputs from the config at run time.

The guard: a new test in tests/docs_examples.rs loads .cigen/, expands the test job's inputs (groups included) with pathspec::list_files, and requires every file the docs test reads to be among them. That covers the docs pages, the case studies, the README and the site's example configs. It fails on main, naming docs/src/content/case-studies/bootstrap.md, and passes with the fix. The next directory someone teaches the docs test to read fails it until it's an input.

Found while checking that a skipped test on #51 was legitimate. It was: the first push's run had tested the same tree and passed, and the rebased commit differed only in internal_docs/STATUS.md.

STATUS: a resolved known problem, numbered 23 here. #51 also claims 23, and prettier keeps ordered lists sequential, so whichever of the two merges second becomes 24 at rebase. The tests line is updated too.

task ci passes with no warnings.


Show it working
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

ndbroadbent added a commit that referenced this pull request Dec 4, 2026
… file the docs test reads is one

tests/docs_examples.rs reads the case studies since #40, but .cigen's test job didn't list them,
so a broken case study alone would have skipped the test that checks it. A new test expands the
job's inputs and requires every file the docs test reads to be among them.
@ndbroadbent
ndbroadbent force-pushed the fix/case-studies-test-input branch from a473392 to 3d9d61d Compare December 4, 2026 03:34

This branch has not been deployed

No deployments
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