Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests-integration: Add basic local tmt flow #593

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

cgwalters
Copy link
Collaborator

Part of #543

I'm not totally happy with this, but it does demonstrate the basic
wiring flow of:

  • cargo xtask test-tmt

That will do a container build, make a disk image from it,
and run a "hello world" tmt test.

A lot more to do here including wiring up our existing tests
into this, and deduplicating with the other integration tests.

A key aspect too will be exploring workflows that e.g. expose
a registry locally.

Signed-off-by: Colin Walters walters@verbum.org

@jeckersb jeckersb self-assigned this Jun 10, 2024
@cgwalters
Copy link
Collaborator Author

cargo: error while loading shared libraries: libssh2.so.1: cannot open shared object file: No such file or directory

➡️ https://bugzilla.redhat.com/show_bug.cgi?id=2291191

Ok(builder.to_owned())
}

#[context("Running bootc-image-builder")]
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use bootc install to-disk to generate disk image?

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, but I think down the line we'll migrate bib to be more of a SDK (cc https://gitlab.com/fedora/bootc/tracker/-/issues/2 ) and so we might as well start pulling a container here.

Part of containers#543

I'm not totally happy with this, but it does demonstrate the basic
wiring flow of:

- `cargo xtask test-tmt`

That will do a container build, make a disk image from it,
and run a "hello world" tmt test.

A lot more to do here including wiring up our existing tests
into this, and deduplicating with the other integration tests.

A key aspect too will be exploring workflows that e.g. expose
a registry locally.

Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters
Copy link
Collaborator Author

Rebased 🏄

@henrywang
Copy link
Contributor

We can land this PR first. I have another PR to run this on testing farm.

@henrywang henrywang merged commit 9be5830 into containers:main Jun 18, 2024
16 checks passed
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.

None yet

3 participants