Skip to content

[Build] Run the image entrypoint in smoke-test pods - #4126

Merged
HannesWell merged 1 commit into
eclipse-platform:masterfrom
akurtakov:smoke-tests-uid-entrypoint
Oct 29, 2026
Merged

HannesWell merged 1 commit into
eclipse-platform:masterfrom
akurtakov:smoke-tests-uid-entrypoint

Conversation

@akurtakov

Copy link
Copy Markdown
Member

The pod's command 'cat' replaced the image's uid_entrypoint, so the arbitrary OpenShift user never got an /etc/passwd entry. Without it dbus-launch can't autolaunch a session bus on X11, and SWT warns that it cannot connect to the session manager.

Run uid_entrypoint with 'cat' as its argument.

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.

🟢 Approval recommended

No active review issues are reported for the smoke-test change that initializes the container user before starting the keepalive command.

No open issues 🎉

What changed in this PR

Updates smoke-test pods to run the image’s uid_entrypoint, allowing it to register the arbitrary OpenShift user in /etc/passwd before starting cat. This addresses the missing user entry that prevents D-Bus session startup and triggers SWT warnings.

Changes:

  • Replaces the direct cat command with uid_entrypoint, passing cat as its argument.
  • Preserves the existing TTY and container resource settings.
File Description
jobs/​builds/​smoke-tests.jenkinsfile Runs the image’s UID initialization before the smoke-test container’s keepalive command.

Review effort: Balanced

The pod's command 'cat' replaced the image's uid_entrypoint, so the
arbitrary OpenShift user never got an /etc/passwd entry. Without it
dbus-launch can't autolaunch a session bus on X11, and SWT warns that
it cannot connect to the session manager.

Run uid_entrypoint with 'cat' as its argument.

This and the previous fixes of the docker images, allows to remove the
disablement of the SWT DBus Sessionmanager via the
SWT_SESSIONMANAGER_DBUS_DISABLE environment variable.
@HannesWell
HannesWell force-pushed the smoke-tests-uid-entrypoint branch from 45cb004 to a537ab4 Compare October 29, 2026 21:57

@HannesWell HannesWell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for this and the other changes!
I tested it with a temporary copy of the smoke test configuration and everything looks good.
Together with the improvements from

we can now also remove the disablement of the SWT DBus Sessionmanager again, which was introduced in

@HannesWell
HannesWell merged commit 8650bef into eclipse-platform:master Oct 29, 2026
6 checks passed
@akurtakov
akurtakov deleted the smoke-tests-uid-entrypoint branch October 30, 2026 05:50
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