Skip to content

Conversation

@cgwalters
Copy link
Collaborator

Follows the general pattern in bootc of ensuring that GHA flows
are delegating heavy lifting to targets easily executable locally
via just.

Add bootc/Justfile as a just submodule (invoked via just bootc/)
that handles cloning, patching, building, and testing bootc against the
local composefs-rs checkout.

Assisted-by: OpenCode (Claude Sonnet 4)

Add a toplevel Justfile with common development targets that wrap
cargo commands:
- build/build-release: Build workspace
- test: Run all tests
- clippy: Run clippy lints
- fmt/fmt-check: Format code
- check: Run all checks (clippy + fmt + test)
- clean: Clean build artifacts

Assisted-by: Claude Sonnet 4 (via OpenCode)
Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters changed the title ci: Add bootc/ submodule for reverse dependency testing ci: Add bootc/ dir for reverse dependency testing Jan 22, 2026
@cgwalters cgwalters force-pushed the ci-bootc-updates branch 2 times, most recently from 296fecf to 53a5467 Compare January 22, 2026 21:17
Add bootc/Justfile as a just submodule (invoked via just bootc/<target>)
that handles cloning, patching, building, and testing bootc against the
local composefs-rs checkout.

Targets:
- bootc/clone: Clone bootc repo (supports PR refs)
- bootc/patch: Patch bootc Cargo.toml to use local composefs-rs
- bootc/build: Build sealed bootc image
- bootc/test: Run composefs tests
- bootc/clean: Remove bootc checkout
- bootc/config: Show configuration

Security improvements (from review feedback):
- Export variables to avoid command injection via just's interpolation
- Use shell $VAR syntax instead of {{var}}
- Remove sudo requirement using sed/trap for Cargo.toml patching

The bootc ref is pinned to a specific commit SHA with a renovate comment
for automatic updates. The Justfile is the source of truth so local
`just bootc/test` uses the same pinned version as CI.

Update bootc-revdep.yml workflow to:
- Use shared bootc-dev/actions/bootc-ubuntu-setup action (includes just)
- Run `just bootc/test` for the full pipeline
- Support workflow_dispatch override of bootc_ref

Assisted-by: Claude Sonnet 4 (via OpenCode)
@cgwalters cgwalters marked this pull request as draft January 23, 2026 02:15
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