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

Switch to Wayland instead of X11 for our CI tests #432

Open
pcdavid opened this issue Jul 26, 2024 · 1 comment
Open

Switch to Wayland instead of X11 for our CI tests #432

pcdavid opened this issue Jul 26, 2024 · 1 comment

Comments

@pcdavid
Copy link
Member

pcdavid commented Jul 26, 2024

Our CI tests, run at https://ci.eclipse.org/sirius, use Xvnc to run a headless X11 session inside a Linux VM.
X11 is being abandonned in favor of Wayland in most/all Linux distributions, so we should probably switch to a headless Wayland env at some point.

The main test job which is run daily at https://ci.eclipse.org/sirius/job/sirius.tests-master uses a free-form configuration with the Xvnc Jenkins plug-in and some additional configuration:

Capture d’écran du 2024-07-26 16-18-58

The https://ci.eclipse.org/sirius/job/sirius-pr-check job launched when a PR is created/updated also uses Xvnc but via a Jenkinsfile.

Both will need to be updated.

It looks like it's possible to run mutter (the Wayland compositor from Gnome) in headless mode:

mutter --wayland --headless --virtual-monitor 1920x1080 --no-x11 --wayland-display=wayland-42 --sm-disable

And then launch a (Wayland-compatible) app like this:

WAYLAND_DISPLAY=wayland-42 GDK_BACKEND=wayland terminator

This requires the GNOME 40 (or later) version of mutter: https://www.phoronix.com/news/GNOME-40-Headless-Virtual. Not sure which one (if any) is available in the Docker images provided by CBI.

@pcdavid
Copy link
Member Author

pcdavid commented Jul 26, 2024

It looks like it's mutter 3.32.2 at the moment. Not sure which version of Gnome this corresponds to.

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

No branches or pull requests

1 participant