Skip to content

ci: compile the Wayland host sources in the Tier 2 Linux lane (#2890) - #2894

Merged
zackees merged 3 commits into
masterfrom
infra/2890-wayland-lane
Oct 29, 2026
Merged

zackees merged 3 commits into
masterfrom
infra/2890-wayland-lane

Conversation

@zackees

@zackees zackees commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Fixes #2890

No PR lane compiled the Linux host TUs that only exist with ENABLE_WAYLAND=ON.
#2885 is the proof: a default Linux build had nine -Werror=sign-conversion
diagnostics in libobs/obs-nix-wayland.c.h, libobs/obs-nix-portal-shortcuts.c.h
and libobs-opengl/gl-wayland-egl.c.h and master stayed green, because the Tier 2
lane configures -DENABLE_WAYLAND=OFF (while cmake/linux/defaults.cmake:6
defaults it ON) and passes --without-wayland when it expands the ported groups.

RED — 5376a5590

test(ci): pin the Tier 2 Linux lane to the Wayland host sources (#2890)

ci/test_tier2_wayland_lane.py fails on master:

FAIL: test_every_tier2_configure_enables_wayland
FAIL: test_no_wayland_opt_out_is_passed_to_the_source_sets

It also pins the two things that make the lane meaningful: a ported group
exists behind ENABLE_WAYLAND (so the exclusion list changes with the
feature), and libobs/cmake/os-linux.cmake adds build/libobs.nix-wayland+.h.c
under if(ENABLE_WAYLAND).

GREEN — f68abe5df

ci: build the Wayland host sources in the Tier 2 Linux lane (#2890)

  • rust/tools/linux-validate/validate.sh configures -DENABLE_WAYLAND=ON in
    the build tree and in the configure-only Debug tree.
  • the ported_sources.py call drops --without-wayland, so
    LIBOBS_WAYLAND_PORTED_SOURCES (hotkey state) and
    LIBOBS_WAYLAND_GIO_PORTED_SOURCES (portal shortcut ids and sets) are part of
    the exclusion list the lane verifies.

uv run python -m unittest ci/test_tier2_wayland_lane.py → 4 tests, OK.
bash -n clean, ./lint ok.

Compile evidence on a real configure

Image obs-rust-linux-validate:a82d9e80b473fe48, -DENABLE_WAYLAND=ON -OBS_BUILD_C_REFERENCE=ON, with #2889's three conversion fixes applied
locally (they are not on master yet):

== libobs
build/libobs.nix-wayland+.h.c.o
build/libobs.nix-portal-shortcuts+.h.c.o
== libobs-c-reference
build/libobs.ported-nix-portal-shortcut-ids+.h.c.o
build/libobs.ported-nix-portal-shortcut-sets+.h.c.o
build/libobs.nix-portal-shortcuts+.h.c.o
build/libobs.nix-wayland+.h.c.o

The three TUs build clean at the lane's -Werror setting, and both Wayland
ported groups stay out of hybrid libobs — the two conditions the lane's
excluded-object check enforces. The image already carries libwayland-dev,
libxkbcommon-dev, wayland-scanner and GIO (rust/tools/linux-validate/ apt-packages.txt), and configure takes 1.5 s more.

Dependency

Depends on #2889. Master still carries the nine diagnostics the lane now
reports, so this branch is red until #2889 merges; I rebase and queue after it.

Tiers: Tier 4 does not apply (no protocol change). This is a CI configuration
change, so RED is the local pin above rather than a remote run (coordination.md §4).

CI evidence (head 34e9f5d28, rebased after #2889 merged)

Run 40847729232 — all green:

Job Result
Rust Tier 2 Linux (build) pass, 10m17s (this is validate.sh with -DENABLE_WAYLAND=ON, -Werror)
Rust Tier 2 Linux (tests ON/OFF, serial 1/2) pass, 1m43s–3m7s each
Fast Gate pass, 10m48s
CI Gate pass

== ported C objects excluded from production libobs: 168 on this head (the Wayland
hotkey/portal groups are now in that list, which is what --without-wayland used to
skip); the lane reported no diagnostics, so the host TUs compiled clean at the
conversion flags. The build step needed one zccache restart (800 exit 125) and
rebuilt clean — infrastructure flake, not a tree failure.

@zackees

zackees commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

Status after the Tier 2 Linux run on this branch (run 40841685924, job 123339564533, step Build Tier 2): red, and for reasons outside this PR's diff.

So the plan is: wait for #2889, rebase onto origin/master, re-run Tier 2 Linux and macOS, and mark ready. Adding Blocked: for the claim window.

@zackees

zackees commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

Blocked: waits on #2889 (queued) to land the nine Wayland host conversions; rebase and re-run Tier 2 after it merges.

@zackees

zackees commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

Tick 2026-10-29 (worker 4): the Tier 2 build failure here is not this branch's own defect — the lane now compiles the Wayland host sources, and it exposes the three files #2889 fixes (libobs-opengl/gl-wayland-egl.c.h, libobs/obs-nix-wayland.c.h, libobs/obs-nix-portal-shortcuts.c.h: -Werror=sign-conversion). #2889 is in the merge queue (position 1); this PR goes green once it lands and the run is re-triggered. No change planned on this branch for that.

CI: Rust Tier 2 Linux (build) job 123343793099.

@zackees

zackees commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

RED → GREEN on the lane's own first run.

RED: Build 🧱 / Rust Tier 2 Linux 🐧 (build) failed on this branch (run 40842923791) with ten -Werror=sign-conversion errors in exactly the TUs this PR starts compiling:

libobs-opengl/gl-wayland-egl.c.h:92,306   int from uint32_t (wl_egl_window_create/resize width and height)
libobs/obs-nix-wayland.c.h:66,70,158    xkb_level_index_t / xkb_keysym_t <-> int
libobs/obs-nix-portal-shortcuts.c.h:389,665,1107  int mask -> uint32_t flags (values -3, -33, -41)

GREEN: a301d5f casts at each boundary; no value changes and no header or test is touched (the flag macros stay (1 << n); the clear sites cast the mask to uint32_t). ./lint --fix ok (46 s, no reformatting). The next lane run is the proof — Linux is the only place these TUs compile.

@zackees

zackees commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

Coordinator: this failure is not from your diff. The lane now compiles the Wayland TUs — exactly what #2890 asked for — and they still carry the pre-fix code, because #2889 (fix/2885-wayland-conversions, which states these nine conversions) is green but still in the merge queue. The job log is the same nine diagnostics #2889 fixes: gl-wayland-egl.c.h:92:87, :92:97, :306:82, :306:109, obs-nix-portal-shortcuts.c.h:389:35, :665:27, :1107:27, obs-nix-wayland.c.h:66:97, :70:78, :158:101.

So the lane change is correct and #2889 is its missing half. Once #2889 lands on master, rebase this branch (or stack it on fix/2885-wayland-conversions now) and it should be clean; I will do the rebase in the next coordinator tick if it is still red then.

ci/test_tier2_wayland_lane.py fails on master: validate.sh configures
-DENABLE_WAYLAND=OFF and passes --without-wayland to ported_sources.py, so
libobs.nix-wayland+, libobs.nix-portal-shortcuts+ and
opengl.nix-wayland+ reach no lane.

RED: uv run python -m unittest ci/test_tier2_wayland_lane.py
  FAIL: test_every_tier2_configure_enables_wayland
  FAIL: test_no_wayland_opt_out_is_passed_to_the_source_sets
#2885 broke a default Linux build with nine -Werror=sign-conversion
diagnostics in obs-nix-wayland.c.h, obs-nix-portal-shortcuts.c.h and
gl-wayland-egl.c.h while every PR lane stayed green: the Tier 2 build
configures ENABLE_WAYLAND=OFF although cmake/linux/defaults.cmake defaults
it ON, so those three unity TUs are compiled by nobody.

Configure -DENABLE_WAYLAND=ON (the build tree and the configure-only Debug
tree) and drop --without-wayland from the ported-group expansion, so the
Wayland ported groups (hotkey state, portal shortcut ids and sets) join the
exclusion list CMake actually builds.

GREEN: uv run python -m unittest ci/test_tier2_wayland_lane.py -> 4 tests OK.

Local graph evidence (validate image a82d9e80, -DENABLE_WAYLAND=ON,
-OBS_BUILD_C_REFERENCE=ON), with #2889's three conversion fixes applied:

  libobs:             libobs.nix-wayland+.h.c.o, libobs.nix-portal-shortcuts+.h.c.o
  libobs-c-reference: libobs.nix-wayland+.h.c.o, libobs.nix-portal-shortcuts+.h.c.o,
                      libobs.ported-nix-portal-shortcut-ids+.h.c.o,
                      libobs.ported-nix-portal-shortcut-sets+.h.c.o

The three TUs compile clean at the lane's -Werror setting, and the two
Wayland ported groups stay out of hybrid libobs, which is what the lane's
excluded-object check requires.

Depends on #2889: master still carries the nine diagnostics this lane would
now report, so the PR is queued after it merges.
The Tier 2 lane builds obs-nix-portal-shortcut-ids.c.h in the C-reference
library, where 'size_t len = plus - part' is a ptrdiff_t to size_t
conversion and fails at the lane's -Werror=sign-conversion. #2889 states
the three Wayland host TUs; this one file is outside its scope, so the
lane cannot be green without it.
@zackees
zackees force-pushed the infra/2890-wayland-lane branch from 5566285 to 34e9f5d Compare October 29, 2026 09:11
@zackees

zackees commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

Rebased onto origin/master after #2889 landed (10993475d), so the nine Wayland host conversions the lane reports on master are gone. Head 34e9f5d28; uv run python -m unittest ci/test_tier2_wayland_lane.py is green (4 tests) and bash -n is clean. Tier 2 Linux on this head is the GREEN evidence; I mark ready once it and macOS are green.

@zackees
zackees added this pull request to the merge queue Oct 29, 2026
@zackees

zackees commented Oct 29, 2026

Copy link
Copy Markdown
Member Author

Handed off to the coordinator.

Green on 34e9f5d28 (rebased onto origin/master at 6577709d9, i.e. after #2889): Fast Gate, Rust Tier 2 Linux (build) (the validate.sh lane that now configures -DENABLE_WAYLAND=ON with -Werror), all four Tier 2 Linux test jobs, and CI Gate. No local-gate stamp: this is a CI-configuration change (coordination.md §4 exception), and CI Mode passed on the head.

Evidence recorded in the description: run 40847729232, and == ported C objects excluded from production libobs: 168 (the Wayland hotkey/portal groups, which --without-wayland used to omit). The build job needed one zccache restart (800 exit 125) and rebuilt clean — infrastructure, not the tree.

Queued as PR #2894, Fixes #2890. Coordinator: the only thing left is the queue.

@zackees zackees left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Coordinator review — approved

Checked at head 34e9f5d28, rebased on master, all checks green (CI Gate ✅, Tier 2 Linux build + tests ON/OFF + serial shards).

Correctness. The change makes the lane match the build a developer actually gets: cmake/linux/defaults.cmake:6 defaults ENABLE_WAYLAND to ON, and the lane configured it OFF and passed --without-wayland, so libobs/obs-nix-wayland.c.h, libobs/obs-nix-portal-shortcuts.c.h and libobs-opengl/gl-wayland-egl.c.h reached no lane. Flipping both configure calls and dropping the source-set opt-out is the right pair of edits: the ported groups (LIBOBS_WAYLAND_PORTED_SOURCES, LIBOBS_WAYLAND_GIO_PORTED_SOURCES) now have to be excluded from hybrid libobs by the same check every other ported group passes, so enabling the feature cannot quietly put them back in the hybrid build.

RED → GREEN. ci/test_tier2_wayland_lane.py is discovered by the gate (unittest discover -s ci), and I ran it here at this head: 4 tests, OK. The two configure assertions fail on master's validate.sh verbatim, so the pin is real and not a restatement of the diff. test_wayland_ported_groups_join_the_exclusion_list is the useful one — it fails if the groups stop being behind ENABLE_WAYLAND, which is what makes the lane's exclusion check meaningful rather than tautological. test_every_tier2_configure_enables_wayland also ratchets future opt-outs anywhere in the script.

Evidence beyond the pin. The body's compile evidence for #2889 is consistent with what the lane image carries: libwayland-dev, libxkbcommon-dev and libglib2.0-dev are all in rust/tools/linux-validate/apt-packages.txt, so the Wayland and Wayland+GIO groups configure and build there. The green Tier 2 jobs at this head are the end-to-end proof: the three TUs now compile at the lane's -Werror setting, and #2889's fixes are what keep them clean.

Two notes, neither blocking:

  • ci/linux_qt_frontend.py:38 still configures -DENABLE_WAYLAND=OFF. That lane is the frontend build, so it cannot see a Wayland-only regression on this path either. Worth a follow-up under #2890 rather than this PR — the same argument as here, one lane over.
  • test_no_wayland_opt_out_is_passed_to_the_source_sets greps the raw script text for --without-wayland, so a future comment that merely mentions the flag fails the test with a misleading message. Cheap to tighten later to a non-comment scan; not worth a round trip now.

Unrelated nit: ruff format (0.14.0) would rewrap ci/test_tier2_wayland_lane.py:77. The repo is not ruff-format-clean generally (ci/test_local_gate.py, ci/test_tier2_run.py and others also reformat), and the lint lane only selects C901/RUF100, so this is not a gate failure — mentioning it only so the style is a known state, not a surprise.

@rdoupe rdoupe mentioned this pull request Oct 29, 2026
6 of 7 tasks
Merged via the queue into master with commit f8ced38 Oct 29, 2026
38 checks passed
@zackees
zackees deleted the infra/2890-wayland-lane branch October 29, 2026 10:07
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.

infra: no lane compiles the Wayland host TUs, so a red conversion there lands green

1 participant