Skip to content

Commit 94ddb2f

Browse files
authored
Merge pull request #556 from cgwalters/main
ci: Clean up fedora CI
2 parents 99ac4da + 3b7e799 commit 94ddb2f

File tree

2 files changed

+10
-52
lines changed

2 files changed

+10
-52
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,17 @@ jobs:
4949
run: mkdir -p target/man && cargo run --features=docgen -- man --directory target/man
5050
- name: Clippy (gate on correctness and suspicous)
5151
run: cargo clippy -- -D clippy::correctness -D clippy::suspicious
52-
build-fedora:
52+
fedora-container-tests:
5353
if: ${{ !contains(github.event.pull_request.labels.*.name, 'control/skip-ci') }}
54-
runs-on: ubuntu-latest
55-
container: quay.io/coreos-assembler/fcos-buildroot:testing-devel
54+
runs-on: ubuntu-24.04
5655
steps:
5756
- uses: actions/checkout@v4
58-
- name: Install deps
59-
run: ./ci/installdeps.sh
60-
- name: Cache Dependencies
61-
uses: Swatinem/rust-cache@v2
62-
with:
63-
key: "build"
64-
- name: Build
65-
run: make test-bin-archive
66-
- name: Upload binary
67-
uses: actions/upload-artifact@v4
68-
with:
69-
name: bootc.tar.zst
70-
path: target/bootc.tar.zst
57+
- name: Build container (fedora)
58+
run: sudo podman build --build-arg=base=quay.io/fedora/fedora-bootc:40 -t localhost/bootc -f hack/Containerfile .
59+
- name: Container integration
60+
run: sudo podman run --rm localhost/bootc bootc internal-tests run-container-integration
61+
- name: Privileged tests
62+
run: sudo podman run --rm --privileged -v /run/systemd:/run/systemd -v /:/run/host --pid=host localhost/bootc bootc internal-tests run-privileged-integration
7163
cargo-deny:
7264
runs-on: ubuntu-latest
7365
steps:
@@ -76,37 +68,6 @@ jobs:
7668
with:
7769
log-level: warn
7870
command: check bans sources licenses
79-
privtest:
80-
if: ${{ !contains(github.event.pull_request.labels.*.name, 'control/skip-ci') }}
81-
name: "Privileged testing"
82-
needs: build-fedora
83-
runs-on: ubuntu-latest
84-
steps:
85-
- name: Checkout repository
86-
uses: actions/checkout@v4
87-
- name: Download
88-
uses: actions/download-artifact@v4
89-
with:
90-
name: bootc.tar.zst
91-
- name: Install
92-
run: sudo tar -C / -xvf bootc.tar.zst
93-
- name: Integration tests
94-
run: sudo podman run --rm --privileged -v /run/systemd:/run/systemd -v /:/run/host -v /usr/bin/bootc:/usr/bin/bootc --pid=host quay.io/fedora/fedora-coreos:testing-devel bootc internal-tests run-privileged-integration
95-
container-tests:
96-
if: ${{ !contains(github.event.pull_request.labels.*.name, 'control/skip-ci') }}
97-
name: "Container testing"
98-
needs: build-fedora
99-
runs-on: ubuntu-latest
100-
container: quay.io/centos-bootc/fedora-bootc:eln-1708320930
101-
steps:
102-
- name: Download
103-
uses: actions/download-artifact@v4
104-
with:
105-
name: bootc.tar.zst
106-
- name: Install
107-
run: sudo tar -C / -xvf bootc.tar.zst
108-
- name: Integration tests
109-
run: bootc internal-tests run-container-integration
11071
install-tests:
11172
if: ${{ !contains(github.event.pull_request.labels.*.name, 'control/skip-ci') }}
11273
name: "Test install"

lib/src/privtests.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,8 @@ pub(crate) fn impl_run_container() -> Result<()> {
102102
let config = cmd!(sh, "bootc install print-configuration").read()?;
103103
let mut config: InstallConfiguration =
104104
serde_json::from_str(&config).context("Parsing install config")?;
105-
config.canonicalize();
106-
assert_eq!(
107-
config.root_fs_type.unwrap(),
108-
crate::install::baseline::Filesystem::Xfs
109-
);
105+
// Just verify we parsed the config, if any
106+
drop(config);
110107

111108
println!("ok container integration testing");
112109
Ok(())

0 commit comments

Comments
 (0)