Skip to content

darwin nightly leg: raylib spiral UAT cannot open a window on the hosted macOS runner (NSGL: no suitable pixel format) #1375

Closed

Description

@ehartford

Symptom

On every nightly Release run whose darwin-aarch64 leg reaches Release UAT (macOS) (35420376179, 35423258758, 35428855763, 35471773004), release-raylib-spiral-uat fails before drawing anything:

INFO: Initializing raylib 6.0
INFO: Platform backend: DESKTOP (GLFW)
WARNING: GLFW: Error: 65545 Description: NSGL: Failed to find a suitable pixel format
WARNING: GLFW: Failed to initialize Window
WARNING: SYSTEM: Failed to initialize platform
raylib spiral UAT failed: window not created (no OpenGL 3.3 context)
error: build.w target 'release-raylib-spiral-uat' failed with exit code 1

(The two later runs never got that far: 35512407331 stopped at :test on behav_c_import_scales_linearly.w, and 35616828206 stopped at the SDK fetch on an HTTP 504, fixed by #1256.)

Cause (as far as the logs show)

nightly-release.yml runs the darwin leg on macos-latest and assumes that "the runner's session has a WindowServer; the spiral opens a real window" (comment on the Release UAT (macOS) step). The session has a WindowServer, but NSGL finds no pixel format for a 3.3 core context. That fits the hosted arm64 macOS runners, which are VMs without GPU passthrough. The fixture does what it should: it fails loudly because it has no window. It passes on Eric's Mac (#1191).

The Linux legs get a GL context from Mesa llvmpipe under Xvfb, and the Windows legs from the copied Mesa llvmpipe DLLs. The macOS leg has no software GL, so the UAT cannot pass on this runner.

Not a fix

Skipping the spiral on darwin CI, or rewriting the fixture, weakens a gate or edits a user program. Both are ruled out (CLAUDE.md, Anti-Patterns).

Options for Eric

  1. Run the darwin release UAT on a runner that has a GPU: a self-hosted Mac, or Eric's machine as the local-first release host (memory: "Release process: local-first"; the darwin asset is already published from the Mac).
  2. Give the macOS leg a software OpenGL 3.3 (a Mesa llvmpipe build for macOS that GLFW can load), the way the other legs have one.
  3. Treat the darwin nightly UAT as covered by the local release battery and say so in the runbook. This is a scope decision for Eric.

Activity

  1. ehartford commented on Sep 29, 2026

    @ehartford
    ContributorAuthor

    Ruling (Eric, 2026-09-29): drawing a spiral must not require a GPU. raylib ships a software rasterizer, src/external/rlsw.h; the darwin release-UAT lane builds raylib with it so the spiral draws on the hosted runner. The UAT program is untouched (it is a contract). Implementation goes to the next batch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions