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

Add build user to test pipeline environments #1747

Merged

Conversation

stevebeattie
Copy link
Member

@stevebeattie stevebeattie commented Jan 14, 2025

Functional Changes

This change adds the build user as a default to the Test pipeline environments; without this change the qemu runner does not successfully make its ssh initial connection to the qemu microvm to get the VM's host ssh public key; see #1732 which this PR is intended to resolve.

It changes the emitted apko config for test pipelines to include:

   accounts:
     runas:  
     users:
       - uid=1000(build) gid=824637199472
     groups:
       - gid=1000(build) members=[build]

Fixes #1732

  • This change can build all of Wolfi without errors (describe results in notes)

Notes:

I have not rebuilt the world with this, but attempts to rebuild and run the test pipelines random packages (systemd, openjdk, and some others) in a variety of runners with this change have not shown breakage.

@stevebeattie stevebeattie changed the title Add build user to test environments Add build user to test pipeline environments Jan 14, 2025
@stevebeattie stevebeattie force-pushed the add-build-user-to-test-environments branch from bf6c329 to f4e3638 Compare January 24, 2025 20:56
stevebeattie and others added 3 commits January 28, 2025 13:14
The Test pipeline environment does not get a build user included by
default; this causes test pipelines to fail when the qemu runner is used
because the initial connection attempt to get the host public key always
uses the build user to connect. Fix this by adding the build user to all
Test environments, both the primary pipeline and any subpipelines.

Fixes: chainguard-dev#1732
Signed-off-by: Steve Beattie <steve.beattie@chainguard.dev>
Signed-off-by: Evan Gibler <20933572+egibs@users.noreply.github.com>
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
@stevebeattie stevebeattie force-pushed the add-build-user-to-test-environments branch from f4e3638 to 673caab Compare January 28, 2025 21:15
@maxgio92 maxgio92 requested a review from 89luca89 January 29, 2025 09:54
@89luca89 89luca89 merged commit 6ca84b2 into chainguard-dev:main Feb 6, 2025
37 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.

melange test does not connect to qemu runner
3 participants