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

default to running tests on the docker runner #14707

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

joshrwolf
Copy link
Member

@joshrwolf joshrwolf commented Mar 11, 2024

This changes the default melange test ... to use the docker runner by default instead of bwrap.

We're still relatively greenfield with our tests (compared to our builds), so this seems like the right time if any to make a change like this. Because of what tests are, docker feels like a better fit for the runtime, being a full container runtime instead of a light weight sandboxing tool.

I had to plumb through the appropriate bind mount dirs because of how GHA by default mounts the docker socket, so this impl has a bit of nastiness around the TMPDIR=/temp make test/.... I left an inline comment to warn future readers.

This only touches melange test, but should be similar for melange build, but that requires a more complicated migration and validation given the blissful ignorance we've been living in where all runners created workspace is solved and packaged equally.

To prove this works, I migrated the #14496 as part of this PR, which is part of #13623

@joshrwolf joshrwolf force-pushed the default-test-to-docker branch 30 times, most recently from 573625a to 8aa67ed Compare March 12, 2024 01:58
@joshrwolf joshrwolf marked this pull request as ready for review March 12, 2024 02:34
@joshrwolf joshrwolf requested a review from a team as a code owner March 12, 2024 02:34
@joshrwolf joshrwolf force-pushed the default-test-to-docker branch 2 times, most recently from 3b776df to 1b4c7cb Compare March 12, 2024 02:41
Signed-off-by: Josh Wolf <josh@wolfs.io>
@joshrwolf joshrwolf force-pushed the default-test-to-docker branch from 1b4c7cb to 9f98034 Compare March 12, 2024 02:41
@imjasonh imjasonh merged commit 258fec4 into wolfi-dev:main Mar 12, 2024
8 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.

3 participants