Skip to content

Conversation

@jonahgraham
Copy link
Contributor

@jonahgraham jonahgraham commented Nov 11, 2025

Add Wayland to build matrix on GitHub actions

Add GDK_BACKEND environment variable setting and corresponding entry in the Linux matrix entry for wayland and x11.

There are a total of 4 combinations possible of GTK version and backend:

  • GTK3 x11 (uses Xvfb)
  • GTK3 wayland (uses mutter headless)
  • GTK4 x11 (uses Xvfb)
  • GTK4 wayland (uses mutter headless)

Prior to this PR only the x11 variants were tested. With this PR GTK4 on Wayland is also tested. GTK3 on wayland is too unreliable under tests at the moment and is excluded.

Part of #2714

@akurtakov
Copy link
Member

On most recent Ubuntu/Fedora/etc. distros users get Wayland session by default thus I would say that even on Gtk3 Wayland has become the most common setup.

@jonahgraham
Copy link
Contributor Author

I am open to whatever collection of backends/gtk versions. For now this PR tests as before plus GTK4 on wayland. We could enable all 6 - I don't want to overwhelm the number of builds that run if it isn't valuable enough.

@jonahgraham
Copy link
Contributor Author

@akurtakov I split out the question of which combinations to exclude to a future commit - this PR tests all of the valid combinations. Comment 0 and commit message updated.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 11, 2025

Test Results

  176 files  +29    176 suites  +29   27m 5s ⏱️ + 3m 36s
4 670 tests ± 0  4 648 ✅ ± 0  22 💤 ±0  0 ❌ ±0 
  481 runs  +70    475 ✅ +69   6 💤 +1  0 ❌ ±0 

Results for commit 5e42348. ± Comparison against base commit 4583376.

♻️ This comment has been updated with latest results.

@jonahgraham
Copy link
Contributor Author

The JVM crashes are a corner case that I will workaround because IMHO they are bugs in GTK not in SWT: #2853

@jonahgraham jonahgraham force-pushed the wayland-matrix-entry branch 3 times, most recently from 807d6c3 to 0b53193 Compare December 5, 2025 20:11
@jonahgraham jonahgraham force-pushed the wayland-matrix-entry branch 7 times, most recently from 2a35daa to 9adabe0 Compare December 6, 2025 01:17
@jonahgraham
Copy link
Contributor Author

I have given up - for now at least - getting tests reliable on gtk3+wayland. As it turns out GTK3 itself is only tested on x11. GTK4 is tested on x11, wayland, and broadway.

I have therefore excluded the gtk3/wayland combination and I open this up for review now.

@jonahgraham jonahgraham marked this pull request as ready for review December 6, 2025 05:26
@jonahgraham
Copy link
Contributor Author

I plan to merge this soon if there are no objections.

@jonahgraham
Copy link
Contributor Author

Only thing left is to update commit message to reflect final state. I will do that when I rebase it on top of #2764

Add GDK_BACKEND environment variable setting and corresponding entry
in the Linux matrix entry for wayland and x11.

There are a total of 4 combinations possible of GTK version and backend:

- GTK3 x11 (uses Xvfb)
- GTK3 wayland (uses mutter headless)
- GTK4 x11 (uses Xvfb)
- GTK4 wayland (uses mutter headless)

Prior to this commit only the x11 variants were tested. This
commit enables wayland for both GTK3 + GTK4, however it is expected
subsequent commits will limit the matrix to exclude GTK3+wayland.

Part of eclipse-platform#2714
@jonahgraham
Copy link
Contributor Author

I updated commit messages and the original PR comment #2768 (comment)

@jonahgraham jonahgraham merged commit d1095f8 into eclipse-platform:master Dec 8, 2025
23 checks passed
@jonahgraham jonahgraham deleted the wayland-matrix-entry branch December 8, 2025 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants