Skip to content

ci: Smoke-test the GPU status light on Windows and macOS runners #941

Closed

Description

@zackees

Context

The light's Windows and macOS code has only been compiled, never run:

  • GetGlGetStringProc() in frontend/utility/platform-windows.cpp and platform-osx.mm.
  • The Direct3D 11 path in frontend/utility/GpuStatus.cpp (gs_enum_adapters + obs_video_info.adapter).
  • nvidia-smi probing outside Linux (rust/obs-gpu-status/src/platform/mod.rs).

On Linux, compiling and passing unit tests still let a broken light ship (#846 → #929). The same could be true here.

Proposal

Add a smoke step to the existing Windows (x64) and macOS (arm64) jobs in build-project.yaml, built with ENABLE_RUST_LIBOBS=ON:

  1. Launch the app headless with obs-websocket enabled.
  2. Call GetStats.
  3. Assert that gpuAcceleration is not null, that adapter is not a bare API name (OpenGL, Direct3D 11), and that the expected startup log line is present.

GitHub-hosted Windows runners render through WARP (Microsoft Basic Render Driver), so the expected state there is red or yellow, never green.

Acceptance criteria

  • RED: the step fails when ActiveAdapterName() returns gs_get_device_name(). Link that run.
  • GREEN on windows-2025-vs2026 and macos-26. Link both runs.
  • No new workflow file.

Decisions

Open questions

  • Can the hosted macOS runner create an OpenGL context headless? If not, the macOS half settles for asserting that GetStats responds and that gpuAcceleration.adapter is not OpenGL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions