Repository navigation
Make the case studies inputs of cigen's own test job (false skip from #40) - #53
Open
ndbroadbent wants to merge 1 commit into
Open
ndbroadbent wants to merge 1 commit into
ndbroadbent wants to merge 1 commit into
Conversation
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
force-pushed
the
fix/case-studies-test-input
branch
from
December 4, 2026 03:34
a473392 to
3d9d61d
Compare
This branch has not been 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.
A false skip in cigen's own CI, which I introduced in #40. #40 made
tests/docs_examples.rsread the case studies (docs/src/content/case-studies/), but cigen's owntestjob 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/**/*.mdis added to thedocs_examplesinput 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.rsloads.cigen/, expands thetestjob's inputs (groups included) withpathspec::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, namingdocs/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
teston #51 was legitimate. It was: the first push's run had tested the same tree and passed, and the rebased commit differed only ininternal_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 cipasses with no warnings.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.