Skip to content

refactor(integration): Build busybox image only once#350

Draft
craciunoiuc wants to merge 1 commit into
prod-stagingfrom
craciunoiuc/build-busybox-just-once
Draft

refactor(integration): Build busybox image only once#350
craciunoiuc wants to merge 1 commit into
prod-stagingfrom
craciunoiuc/build-busybox-just-once

Conversation

@craciunoiuc

Copy link
Copy Markdown
Contributor

Like this we build the instance only once instead of multiple times cutting down significantly on builds.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors integration tests to reuse a single shared busybox-based image across multiple test cases, reducing repeated unikraft build operations and speeding up the integration test suite.

Changes:

  • Added a shared image builder (BuildSharedBusyboxImage) that builds a single busybox image containing multiple test entrypoint scripts.
  • Updated integration build tests to run against the shared image and select behavior via --args + pre-baked entrypoints.
  • Removed per-test busybox image build contexts that were previously recreated for ROM-related tests.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
internal/integration/image.go Introduces shared busybox image build logic and baked-in entrypoint scripts for reuse across tests.
cmd/unikraft/integration/build_test.go Switches ROM/custom-run tests to use the shared busybox image instead of building a new busybox image per subtest.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/integration/image.go
Comment thread internal/integration/image.go Outdated
@craciunoiuc craciunoiuc force-pushed the craciunoiuc/build-busybox-just-once branch 2 times, most recently from d00564c to 9415f75 Compare June 2, 2026 15:13
@craciunoiuc craciunoiuc requested a review from Copilot June 2, 2026 15:14
@craciunoiuc craciunoiuc marked this pull request as draft June 2, 2026 15:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

Comment thread internal/integration/image.go Outdated
Comment thread internal/integration/image.go Outdated
Comment thread internal/integration/image.go
Like this we build the instance only once instead of
multiple times cutting down significantly on builds.

Signed-off-by: Cezar Craciunoiu <[email protected]>
@craciunoiuc craciunoiuc force-pushed the craciunoiuc/build-busybox-just-once branch from 9415f75 to cdb1caf Compare June 2, 2026 15:42
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.

2 participants