Skip to content

ci(gallery): report the web shards without the mac queue - #2596

Merged
houko merged 2 commits into
nsgo-dev:mainfrom
Laotree:ci/gallery-web-independent-of-apple
Nov 29, 2026
Merged

houko merged 2 commits into
nsgo-dev:mainfrom
Laotree:ci/gallery-web-independent-of-apple

Conversation

@Laotree

@Laotree Laotree commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

What and why

The required check Gallery (web) gate waits for the whole gallery matrix job, which mixes the web shards with the macOS shards. The macOS shards draw on a pool that holds about two runners, shared with apple. Measured on one run of 2026-11-27:

job queued before start
Gallery (macos, shard 2) +840s
Gallery (macos, shard 1) +1021s
apple +1260s

The web shards finished their work in about five minutes, but Gallery (web) could not report before the macOS shards did — about 22 minutes into that run.

This splits the job: gallery runs the two web shards on depot-ubuntu-24.04-4, gallery-apple runs the two macOS shards on depot-macos-26, and the required Gallery (web) gate needs only the web shards. Check names are unchanged.

Trade-off

The macOS gallery still runs on every pull request that can affect Apple's targets, and still fails the pull request when a shard fails, but it no longer holds the required check. If the macOS gallery should block merging, it needs its own required check in the ruleset.

Testing

Job names and their required-check name are unchanged:

$ grep -n 'name: Gallery' .github/workflows/test.yml
30:    name: Gallery (web, shard ${{ matrix.shard }})
82:    name: Gallery (macos, shard ${{ matrix.shard }})
136:    name: Gallery (web)

actionlint v1.7.12, the version quality.yml installs:

$ actionlint .github/workflows/test.yml
$ echo $?
0

The web legs are the same commands as before (-target web, formula and perf on shard 1); the macOS legs keep the microphone grant, Xcode selection and terminal-actions step. This pull request's own run is the check: Gallery (web) should report when the web shards finish, independently of the macOS shards' queue.

🤖 Generated with Claude Code

@Laotree
Laotree force-pushed the ci/gallery-web-independent-of-apple branch 2 times, most recently from eecc104 to bffeef9 Compare November 27, 2026 11:55
The required check Gallery (web) waits for the whole gallery job, whose
macOS shards take part of a pool that holds about two runners. In one
run they queued for 840s and 1021s, so the check could not report
before 22 minutes.

The web shards now run in a job of their own and the macOS shards in
gallery-apple, which the required check does not need. Every pull
request that can affect Apple's targets still runs the macOS gallery;
it no longer decides when the check reports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Laotree
Laotree force-pushed the ci/gallery-web-independent-of-apple branch from bffeef9 to e381c59 Compare November 27, 2026 13:26
@Laotree
Laotree marked this pull request as ready for review November 27, 2026 13:27
@Laotree

Laotree commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

@houko — now ready for review; the call here is yours. The decision is whether the macOS gallery shards may leave the required check: they still run on every pull request that can affect Apple's targets and still fail it when a shard fails, but they no longer hold Gallery (web). If the macOS gallery should block merging, it needs its own required check in the ruleset.

Evidence from the run of the earlier head: the web shards finished at 12:01:10 and Gallery (web) reported at 12:01:19, while Gallery (macos, shard 1) ran until 12:16:01.

Rebased onto main at 8bd3724b6, which it was 46 commits behind, so the head is e381c599e and the matrix reruns; actionlint still exits 0.

@Laotree

Laotree commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

The red test-suite (core) is not this change. It crashes in TestFileDialogsReachGTK — SIGSEGV during the cgo call, right after libEGL warning: DRI3 error: Could not get DRI3 device — and this branch only moves the gallery's jobs in test.yml.

The same test passes on other hosts: 7.07 s on #2644's core job at 12:07 (no DRI3 warnings there) and 5.55 s on #2583's at 09:21. The failing job ran on depot-p23r06ct0q; #2592 hit the same crash at 12:21 on depot-gd829tdlqd. A rerun of the job would clear it, since a fork cannot rerun this repository's runs.

@Laotree

Laotree commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Same crash as the one below, with a candidate fix under test on its own: #2664 gives the dialog test's own process GDK_DEBUG=no-portals,gl-disable, so GDK opens no GL context where EGL has no DRI3 device.

@houko
houko merged commit dc39404 into nsgo-dev:main Nov 29, 2026
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants