Skip to content

Conversation

@cgwalters
Copy link
Collaborator

@cgwalters cgwalters commented Nov 26, 2025

This splits the RPM package building into a separate CI job that runs
before the integration tests. The built packages are then downloaded
and used by the integration test jobs, avoiding redundant builds.

Assisted-by: Claude Code (Sonnet 4.5)
Signed-off-by: Colin Walters walters@verbum.org

@cgwalters
Copy link
Collaborator Author

OK pushed this too early, this one has some broken bits, still iterating. But hopefully illustrates the idea

@cgwalters cgwalters force-pushed the split-buildrpm branch 2 times, most recently from 4281a51 to bb2026e Compare November 26, 2025 17:06
@henrywang
Copy link
Collaborator

Hi @cgwalters, can we land this PR? Thanks.

@cgwalters
Copy link
Collaborator Author

/rebase

@henrywang henrywang added the needs-rebase Used by the rebase helper label Dec 3, 2025
@bootc-bot bootc-bot bot removed the needs-rebase Used by the rebase helper label Dec 3, 2025
@cgwalters
Copy link
Collaborator Author

Hm, did the rebase bot not work?

@henrywang
Copy link
Collaborator

henrywang commented Dec 3, 2025

Hm, did the rebase bot not work?

I'm working on a PR to grant our bot workflow write permission. We use our bot token, not github token. It should be secure.

@cgwalters
Copy link
Collaborator Author

I'm working on a PR to grant our bot workflow write permission. We use our bot token, not github token. It should be secure.

Yep agree. That said, I think it can't be a PR, an organization admin needs to edit the bot permissions right now (unless we switch to something to git-ops it in the infra repo).

Also on this topic, while I agree workflow edit perms should be fine, we also do want to be sure we actually are careful that no code submitted as part of a pull request gets access to that bot token.

@henrywang
Copy link
Collaborator

henrywang commented Dec 4, 2025

Granting workflow write permission to our bot is safe because rebase.yml only checks out the base repo. It's not checking out untrusted PR code — it's checking out the base repository. No attacker can inject code into that unless they already have write access.

I think we can grant our bot workflow write permission from organization admin UI.

Copy link
Collaborator Author

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

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

Thanks for helping push this forward!

I'd like to get #1809 in first though

sudo podman build -t localhost/bootc-fsverity -f ci/Containerfile.install-fsverity
# Grant permission
sudo chown -R "$(id -u):$(id -g)" /home/runner/work/bootc/bootc
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, we need to get these tests out of live mutating the host. There's no need for it anymore; the nested virt stuff is working well.

@henrywang
Copy link
Collaborator

henrywang commented Dec 5, 2025

I'd like to get #1809 in first though

OK, let's land #1809 first and I'll make rebase.

cgwalters and others added 9 commits December 5, 2025 21:44
This splits the RPM package building into a separate CI job that runs
before the integration tests. The built packages are then downloaded
and used by the integration test jobs, avoiding redundant builds.

Assisted-by: Claude Code (Sonnet 4.5)
Signed-off-by: Colin Walters <walters@verbum.org>
Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
The download-artifact already save RPMs into target/packages/

Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
And collect info for flaky "error: System transaction in progress"

Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
@henrywang henrywang marked this pull request as ready for review December 8, 2025 07:08
@bootc-bot bootc-bot bot requested a review from ckyrouac December 8, 2025 07:08
@henrywang
Copy link
Collaborator

henrywang commented Dec 8, 2025

@cgwalters, I changed this PR to ready to review. Two CS10 flaky issues should be fixed by #1817. May I approve and land (auto-merge after approve) this PR? Thanks.

@cgwalters cgwalters enabled auto-merge (rebase) December 8, 2025 13:51
@cgwalters
Copy link
Collaborator Author

Looks sane to me, but this is technically my PR, so I can't approve - please go ahead and do so!

@cgwalters cgwalters merged commit 6a9309e into main Dec 8, 2025
47 of 49 checks passed
@cgwalters cgwalters deleted the split-buildrpm branch December 8, 2025 14:25
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.

3 participants