Skip to content

ci: Hard require that generated code is updated in CI#2183

Merged
cgwalters merged 1 commit intobootc-dev:mainfrom
cgwalters:require-generation
May 3, 2026
Merged

ci: Hard require that generated code is updated in CI#2183
cgwalters merged 1 commit intobootc-dev:mainfrom
cgwalters:require-generation

Conversation

@cgwalters
Copy link
Copy Markdown
Collaborator

just validate now verifies that generated code is updated. We got burned badly by someone editing the generated code, and not noticing until the release PR which reverted the change.

While I was working on this, I wanted to preserve the property that e.g. ostree and other heavier dependencies aren't required on the host system - they're only part of the container build.

So using podman build --output, we can build generated docs etc as part of the container build, and copy them out to the host in the Justfile.

Assisted-by: OpenCode (Claude Sonnet 4.6)

@github-actions github-actions Bot added the area/documentation Updates to the documentation label May 1, 2026
@bootc-bot bootc-bot Bot requested a review from ckyrouac May 1, 2026 15:04
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the generation and validation of project artifacts, including man pages, JSON schemas, and TMT integration plans. It introduces a containerized workflow for binary-derived files to ensure consistency and adds a --check mode to the xtask CLI for CI integration. Review feedback suggests refactoring duplicated JSON schema processing logic into a helper function, correcting a doc comment regarding disk access in TMT generation, and adopting a recursive strategy for man page discovery to improve maintainability.

Comment thread crates/xtask/src/xtask.rs
Comment thread crates/xtask/src/tmt.rs Outdated
Comment thread crates/xtask/src/man.rs Outdated
@jeckersb jeckersb linked an issue May 1, 2026 that may be closed by this pull request
`just validate` now verifies that generated code is updated.
We got burned badly by someone editing the generated code,
and not noticing until the release PR which reverted the change.

While I was working on this, I wanted to preserve the property
that e.g. ostree and other heavier dependencies aren't required
on the host system - they're only part of the container build.

So using `podman build --output`, we can build generated docs etc
as part of the container build, and copy them out to the host
in the Justfile.

Assisted-by: OpenCode (Claude Sonnet 4.6)
Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters force-pushed the require-generation branch from 101fa54 to dc69b2c Compare May 1, 2026 20:13
@cgwalters cgwalters enabled auto-merge May 1, 2026 20:28
@cgwalters
Copy link
Copy Markdown
Collaborator Author

A good review from gemini there for sure.

@cgwalters cgwalters added this pull request to the merge queue May 1, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 2, 2026
@cgwalters cgwalters added this pull request to the merge queue May 3, 2026
Merged via the queue into bootc-dev:main with commit c12eca3 May 3, 2026
13 checks passed
@cgwalters cgwalters deleted the require-generation branch May 3, 2026 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation Updates to the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gate on update-generated

2 participants