Repository navigation
ci: compile the Wayland host sources in the Tier 2 Linux lane (#2890) - #2894
Conversation
|
Status after the Tier 2 Linux run on this branch (run 40841685924, job 123339564533, step
So the plan is: wait for #2889, rebase onto |
|
Blocked: waits on #2889 (queued) to land the nine Wayland host conversions; rebase and re-run Tier 2 after it merges. |
|
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 ( CI: |
|
RED → GREEN on the lane's own first run. RED: GREEN: a301d5f casts at each boundary; no value changes and no header or test is touched (the flag macros stay |
|
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 ( So the lane change is correct and #2889 is its missing half. Once #2889 lands on master, rebase this branch (or stack it on |
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.
5566285 to
34e9f5d
Compare
|
Rebased onto |
|
Handed off to the coordinator. Green on Evidence recorded in the description: run 40847729232, and Queued as PR #2894, |
zackees
left a comment
There was a problem hiding this comment.
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:38still 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_setsgreps 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.
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-conversiondiagnostics in
libobs/obs-nix-wayland.c.h,libobs/obs-nix-portal-shortcuts.c.hand
libobs-opengl/gl-wayland-egl.c.hand master stayed green, because the Tier 2lane configures
-DENABLE_WAYLAND=OFF(whilecmake/linux/defaults.cmake:6defaults it
ON) and passes--without-waylandwhen it expands the ported groups.RED —
5376a5590test(ci): pin the Tier 2 Linux lane to the Wayland host sources (#2890)ci/test_tier2_wayland_lane.pyfails on master:It also pins the two things that make the lane meaningful: a ported group
exists behind
ENABLE_WAYLAND(so the exclusion list changes with thefeature), and
libobs/cmake/os-linux.cmakeaddsbuild/libobs.nix-wayland+.h.cunder
if(ENABLE_WAYLAND).GREEN —
f68abe5dfci: build the Wayland host sources in the Tier 2 Linux lane (#2890)rust/tools/linux-validate/validate.shconfigures-DENABLE_WAYLAND=ONinthe build tree and in the configure-only Debug tree.
ported_sources.pycall drops--without-wayland, soLIBOBS_WAYLAND_PORTED_SOURCES(hotkey state) andLIBOBS_WAYLAND_GIO_PORTED_SOURCES(portal shortcut ids and sets) are part ofthe exclusion list the lane verifies.
uv run python -m unittest ci/test_tier2_wayland_lane.py→ 4 tests, OK.bash -nclean,./lintok.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 appliedlocally (they are not on master yet):
The three TUs build clean at the lane's
-Werrorsetting, and both Waylandported 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-scannerand 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 nowreports, 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:
Rust Tier 2 Linux (build)validate.shwith-DENABLE_WAYLAND=ON,-Werror)Rust Tier 2 Linux (tests ON/OFF, serial 1/2)Fast GateCI Gate== ported C objects excluded from production libobs: 168on this head (the Waylandhotkey/portal groups are now in that list, which is what
--without-waylandused toskip); 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) andrebuilt clean — infrastructure flake, not a tree failure.