1
0
mirror of https://github.com/containers/bootc.git synced 2026-02-05 15:45:53 +01:00

21 Commits

Author SHA1 Message Date
Colin Walters
a6c87c6667 build-sys: Remove separate integration test image
The previous commit consolidated test content (nushell, cloud-init, etc.)
into the base image. This completes that work by removing the separate
`build-integration-test-image` target and updating all references.

Now `just build` produces the complete test-ready image directly,
simplifying the build pipeline and eliminating the intermediate
`localhost/bootc-integration` image.

Also adds SKIP_CONFIGS support for the coreos testing workflow, which
skips LBIs, test kargs, and install configs that would conflict with FCOS.

Signed-off-by: Colin Walters <walters@verbum.org>
2026-01-08 14:34:23 +01:00
Colin Walters
509a2c3954 build-sys: Drop some dead code
- The ci/Dockerfile.fcos has been unused for some time and
  testing with FCOS derivatives is already done outside of CI
  here
- Drop the bits which reference git in the Makefile, a new rule
  I'm trying to impose here is that nothing in the build system
  should rely on git (or at least not rely on being built
  from a git repository)

Signed-off-by: Colin Walters <walters@verbum.org>
2025-11-19 09:41:55 -05:00
Colin Walters
9a6df0935a ci: Consolidate and cleanup workflows
- Having separate workflows made sharing build artifacts not
  really possible, and it just makes sense to consolidate
- Refactor shared parts into a little internal action

Signed-off-by: Colin Walters <walters@verbum.org>
2025-09-26 08:39:53 -04:00
Colin Walters
ff952c3c3d install: Honor composefs.enabled=verity
Key off the ostree prepare-root config to require fsverity
on all objects.

As part of this:

- Add a dependency on composefs-rs just for the fsverity querying
  APIs, and as prep for further integration.
- Add `bootc internals fsck`, which verifies the expected
  fsverity state.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-03-16 10:25:16 -04:00
Colin Walters
44b8d25d2a build-sys: Add made up binary-dependencies key
This would be a nice thing to try to standardize, but let's just
keep track of this and use it in our CI install flow too. This
helps us be cross distribution a bit more.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-01-03 14:44:52 -05:00
Colin Walters
836cdd81bc install: Fix install config kargs + to-filesystem
I think this got broken in a refactoring; add
test coverage.  In general all the heavy
lifting should move out of `baseline.rs`; a
good way to do that is probably to take the
next step of making it its own crate that
doesn't depend on the bootc core logic perhaps.

Closes: https://github.com/containers/bootc/issues/570
Signed-off-by: Colin Walters <walters@verbum.org>
2024-06-16 13:24:10 +00:00
Colin Walters
9be6b5a0b0 tests: Drop internal-testing-api, move to tests-integration
Previous work started moving our tests into an external binary;
this is just cleaner because it can test things how a user
would test.  Also, we started using `libtest-mimic` to
have a "real" test scaffolding that e.g. allows selecting
individual tests to run, etc.

Complete the picture here by moving the remaining bits into
the tests-integration binary.  We now run the `tests-integration`
binary in two ways in e.g. Github Actions:

- It's compiled directly on the Ubuntu runner, and orchestrates
  things itself
- It's built in our default container image (Fedora) but as an external
  `/usr/bin/bootc-integration-tests` binary

Also while we're here, drop the kola tests.

Signed-off-by: Colin Walters <walters@verbum.org>
2024-05-31 17:41:14 -04:00
John Eckersberg
0f8adc2dc9 installdeps: Add libzstd-devel for non-fedora
(For Fedora - https://src.fedoraproject.org/rpms/bootc/pull-request/3)

Required after https://github.com/ostreedev/ostree-rs-ext/pull/628

Signed-off-by: John Eckersberg <jeckersb@redhat.com>
2024-05-22 17:08:52 -04:00
Colin Walters
02804630c1 ci: Add a c9s build
Prep for more testing there.

Signed-off-by: Colin Walters <walters@verbum.org>
2023-12-13 18:49:20 -05:00
Colin Walters
9ba17af8e0 install: Add kargs to installation config
We know we eventually want "day 2" management of kargs, but
supporting "install time" kargs in a somewhat container-native
way will let us more properly set up things like the `console=`
karg only for cloud images for example.

Signed-off-by: Colin Walters <walters@verbum.org>
2023-11-19 13:20:50 -05:00
Colin Walters
68419c6ffa ci: Disable zincati
Signed-off-by: Colin Walters <walters@verbum.org>
2023-10-22 13:02:35 -04:00
Colin Walters
90cf87d525 build: Install bin-archive in target/
To avoid polluting the toplevel.

Signed-off-by: Colin Walters <walters@verbum.org>
2023-02-25 08:43:26 -05:00
Colin Walters
ca08d2811e ci: Use cosa kola to pick up ARTIFACT_DIR handling
So I can see the logs in Prow.

Signed-off-by: Colin Walters <walters@verbum.org>
2023-02-05 12:41:46 -05:00
Colin Walters
8ac2dbfa42 ci: Enable all features
Signed-off-by: Colin Walters <walters@verbum.org>
2023-02-05 12:41:46 -05:00
Colin Walters
7a8f12ab3f ci: Remove unused script
This was copied from ostree-ext I think, but we never used it here.

Signed-off-by: Colin Walters <walters@verbum.org>
2023-01-30 08:38:37 -05:00
Colin Walters
dd2010e0b2 ci: Move lints into xtask
Honestly just to reduce the code statistics; be nice to have
zero shell script in the repo 😃

Signed-off-by: Colin Walters <walters@verbum.org>
2023-01-27 16:36:58 -05:00
Colin Walters
6f4bfd5bf7 ci/run-kola: Support pull secret for running in Prow
This is needed to support fetching the image from the
registry.

Signed-off-by: Colin Walters <walters@verbum.org>
2022-12-16 10:47:21 -05:00
Colin Walters
7d1476c7ad ci: Two fixes 2022-12-04 11:51:10 -05:00
Colin Walters
7d86704923 ci: Fix Dockerfile.ci 2022-12-03 13:04:40 -05:00
Colin Walters
656ef9322d Add initial CI infrastructure designed for Prow
This test will

- build a container image derived from FCOS, injecting bootc-under-test
  into it
- Schedule a separate container derived from coreos-assembler
  which has a reference to that container injected via
  https://docs.ci.openshift.org/docs/architecture/ci-operator/#referring-to-images-in-tests
- Run the stable FCOS base image via kola (qemu), injecting the target oscontainer
- Execute a basic test that just verifies `status --json` today

However, in the future we can change the build system to generate
multiple container images, and test upgrades, rollbacks, etc.

Signed-off-by: Colin Walters <walters@verbum.org>
2022-12-02 11:07:37 -05:00
Colin Walters
3ab28788ce Initial code split from https://github.com/ostreedev/ostree-rs-ext/pull/412
Prep for potentially moving to github.com/containers/bootc
2022-11-30 15:14:04 -05:00