ci: make the container user resolvable so tools that look it up work #44

Merged
Breadway merged 1 commit from fix/ci-container-user-passwd into main 2026-09-29 20:31:03 +08:00
Owner

The build container runs as the numeric host uid:gid, which has no /etc/passwd entry inside the image, so anything that looks up the current user fails. dbus-daemon refuses every connection, which made breadcrumbs' twelve fake-NetworkManager tests fail on every run. Mounts the host's /etc/passwd and /etc/group read-only. Verified with the daemon directly and with breadcrumbs' full cargo test suite through this script. Follow-up to ECO-38.

The build container runs as the numeric host uid:gid, which has no /etc/passwd entry inside the image, so anything that looks up the current user fails. dbus-daemon refuses every connection, which made breadcrumbs' twelve fake-NetworkManager tests fail on every run. Mounts the host's /etc/passwd and /etc/group read-only. Verified with the daemon directly and with breadcrumbs' full cargo test suite through this script. Follow-up to ECO-38.
ci: make the container user resolvable so tools that look it up work
All checks were successful
check / check (push) Successful in 2m6s
f8dba3b276
The build container runs as the numeric host uid:gid so files it writes
stay owned by the invoking user, but that uid has no /etc/passwd entry
inside the image. Anything that looks up the current user then fails.
dbus-daemon refuses every connection ("Could not get password database
information for UID of current process"), which made breadcrumbs' twelve
fake-NetworkManager tests fail on every run while the rest passed.

Mount the host's /etc/passwd and /etc/group read-only into the container.
Verified: the daemon answers normally with the mounts, and breadcrumbs'
full cargo test suite passes through this script. Follow-up to ECO-38.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Breadway/bread-ecosystem!44
No description provided.