From 86934031f7f39d68ce25b12f49f4948b17d805e8 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Sat, 21 Nov 2026 02:00:24 -0800 Subject: [PATCH 1/2] chore(quest): claim quest/m0/nightly-macos-check.md Quest-Claim: c11b73a8ad4bb437 From 346477915fbbe9a9f1aacf489d2c9ee0aa6010f4 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Sat, 21 Nov 2026 02:07:13 -0800 Subject: [PATCH 2/2] fix: the nightly macOS check compiles again The Mach rendezvous test reads IOSurface IDs, which objc2-io-surface keeps behind its IOSurfaceTypes feature, and only Linux's portal reads an action's desktop id, so macOS's -D warnings failed on it as dead code. Co-Authored-By: Claude Opus 5.5 --- quest/m0/nightly-macos-check.md | 29 ----------------------------- rs/moq-scene/Cargo.toml | 2 ++ rs/moq-studio/src/controls.rs | 8 ++++++++ 3 files changed, 10 insertions(+), 29 deletions(-) delete mode 100644 quest/m0/nightly-macos-check.md diff --git a/quest/m0/nightly-macos-check.md b/quest/m0/nightly-macos-check.md deleted file mode 100644 index d2bbd118..00000000 --- a/quest/m0/nightly-macos-check.md +++ /dev/null @@ -1,29 +0,0 @@ -# [S] Nightly macOS check passes again - -## Goal - -The nightly workflow's macOS job, `just ci` on `macos-latest`, passes on -`main`, as it did on 2026-11-18. - -## Plan - -It has failed since 2026-11-19 -([run 44766089244](https://github.com/moq-dev/studio/actions/runs/44766089244)) -with two compile errors no Linux check sees: - -- `rs/moq-scene/src/browser/mach.rs:289`, a test: no method `id` on - `CFRetained`. Likely a feature of `objc2-io-surface` - (`IOSurfaceTypes`, which holds `IOSurfaceID`) that something else in the - graph used to turn on; find what changed in `Cargo.lock` between the two - runs and name the feature in `rs/moq-scene/Cargo.toml`. -- `rs/moq-studio/src/controls.rs`: `Fixed::id` and `Action::id` are dead code - on macOS, under `-D warnings`. Give them their macOS consumer, or gate them - on the platforms that read them. - -Fix on a Mac or by pushing and reading the nightly run -(`gh workflow run nightly.yml --ref `); a pull request runs no macOS -`just ci`. - -## Hosts - -- macos - the errors compile only there diff --git a/rs/moq-scene/Cargo.toml b/rs/moq-scene/Cargo.toml index 0714e398..b202a009 100644 --- a/rs/moq-scene/Cargo.toml +++ b/rs/moq-scene/Cargo.toml @@ -145,6 +145,8 @@ tokio = { workspace = true, features = ["macros", "rt", "test-util"] } [target.'cfg(target_os = "macos")'.dev-dependencies] # Describes the IOSurface the Mach rendezvous test sends. objc2-core-foundation = { version = "0.3", default-features = false, features = ["std", "CFDictionary", "CFNumber", "CFString"] } +# Compares the received surface's ID with the sent one's. +objc2-io-surface = { version = "0.3", default-features = false, features = ["IOSurfaceTypes"] } [lints] workspace = true diff --git a/rs/moq-studio/src/controls.rs b/rs/moq-studio/src/controls.rs index ce5b11d3..99ec7eaf 100644 --- a/rs/moq-studio/src/controls.rs +++ b/rs/moq-studio/src/controls.rs @@ -79,6 +79,10 @@ struct Fixed { group: Group, /// What the desktop's shortcut settings keep its key under, the same /// across runs, so a key the operator picked there stays. + #[cfg_attr( + not(any(target_os = "linux", test)), + expect(dead_code, reason = "only Wayland's portal binds through the desktop") + )] id: &'static str, name: &'static str, /// A word or two the Hotkeys pane shows beside the name. @@ -214,6 +218,10 @@ impl Action { /// What the desktop's shortcut settings keep its key under, the same /// across runs, or `None` for a scene's, which is named for its key so /// it follows the scene through renames. A source is never renamed. + #[cfg_attr( + not(any(target_os = "linux", test)), + expect(dead_code, reason = "only Wayland's portal binds through the desktop") + )] pub fn id(&self) -> Option { match self { Self::Scene(_) => None,