Skip to content

ci(apple): keep the stress loop off pull requests - #2594

Merged
houko merged 1 commit into
nsgo-dev:mainfrom
Laotree:ci/apple-stress-off-pull-requests
Nov 28, 2026
Merged

houko merged 1 commit into
nsgo-dev:mainfrom
Laotree:ci/apple-stress-off-pull-requests

Conversation

@Laotree

@Laotree Laotree commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

What and why

A pull request needs five depot-macos-26 jobs — apple, apple-stress (two halves) and Gallery (macos) (two shards) — and the pool holds about two runners. Measured on one run of 2026-11-27:

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

That run took 27 minutes end to end, while android finished at seven and the required Gallery (web) check could not report before the mac shards did.

This gates apple-stress off pull requests, as apple-simulator already is, so a pull request needs three mac jobs. The loop still runs in the merge queue, for a manual run, and in every release, which calls this workflow with all-jobs: true.

Trade-off

A pull request no longer stress-tests Objective-C blocks under GC and 200 fresh playback processes. Those tests still run in the apple job unstressed, and the loop runs once per release.

Testing

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

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

This pull request's own run is the check: apple-stress (1) and apple-stress (2) should be skipped, leaving three mac jobs, and the run's mac queue waits are the evidence.

🤖 Generated with Claude Code

@Laotree
Laotree force-pushed the ci/apple-stress-off-pull-requests branch 2 times, most recently from c412a6a to 4b6dd2f Compare November 27, 2026 13:00
@Laotree

Laotree commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto main at 772cfe011, so the head is 4b6dd2fba.

The earlier red was not this change: TestAndroidNativePackagedView on Android emulator (A) ran 33.53 s and exhausted its 20 s poll, with no AndroidRuntime:E or libc:F line in the dumped logcat. The same test passes elsewhere today: #2583 (12.44 s), #2644 (16.26 s), #2592 (16.32 s). On this head it passes in 11.74 s, and both emulator jobs are green.

A pull request needs five depot-macos-26 jobs and the pool holds about
two runners. In one run they queued from 311s to 1260s and held the run
to 27 minutes, while the android check ended at seven.

The two halves now wait for the merge queue, a manual run or a release,
as apple-simulator does, so a pull request needs three mac jobs. Every
release still runs the loop, as it calls this workflow with all-jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Laotree
Laotree force-pushed the ci/apple-stress-off-pull-requests branch from 4b6dd2f to 6b5b617 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 only open question is the trade-off: a pull request stops running apple-stress, so Objective-C blocks are no longer stressed under GC and the 200 playback processes no longer run per pull request. The loop still runs in the merge queue, on a manual run, and in every release, which calls this workflow with all-jobs: true.

Evidence from this change's own run, before the rebase: apple-stress (1) and (2) were skipped, and the three remaining mac jobs (apple, Gallery (macos) shards 1 and 2) started 3 s after the run was created. The measurement in this description, on the same pool before the change, is +311 s to +1260 s of queue.

Rebased onto main at 8bd3724b6 so the head is 6b5b61758; actionlint still exits 0. If the trade-off is acceptable, this is ready to merge; if the stress loop should keep running on pull requests, close it and I will drop it.

@houko
houko merged commit 0539b6d into nsgo-dev:main Nov 28, 2026
47 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