Skip to content

ci: run the apple stress loop in its own job - #2320

Open
Laotree wants to merge 1 commit into
nsgo-dev:mainfrom
Laotree:ci/split-apple-stress
Open

Laotree wants to merge 1 commit into
nsgo-dev:mainfrom
Laotree:ci/split-apple-stress

Conversation

@Laotree

@Laotree Laotree commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Summary

The apple job takes 12m05s, and 6m41s of that is one step: a loop that starts 200 fresh processes to stress overlapping sound playback. The job's other 37 steps take about 4 minutes. Move the loop into an apple-stress job that starts beside it, with the same runner, the same skip condition and the same crash-report diagnostics, so the two halves overlap.

Expected: apple about 5m20s and apple-stress about 7m50s, taking the workflow's wall clock from 12m05s to 11m04s while test is the longest job.

Fixes #2319.

Targets

  • Shared code (core, base, ui, tsx, the nsgo tool)
  • macOS
  • iOS
  • tvOS
  • watchOS
  • Android
  • Windows
  • Linux
  • Web
  • Mini programs
  • Docs or website only

Screenshots

None; nothing visible changes.

Verification

  • actionlint .github/workflows/test.yml passes.

  • No step is lost: apple goes from 29 steps to 28, and apple-stress holds the moved loop plus checkout, Go setup, the microphone grant, the crash-report marker and the crash-report step.

  • The loop itself is unchanged: the same 200 iterations, the same -run pattern and timeout.

  • The stress job keeps pollution of the runner's crash reports to itself, since its marker starts after checkout rather than after the apple job's earlier work.

  • Not run here: the two jobs' wall clocks, which this pull request's run reports.

  • go tool nsgo check

  • go tool nsgo test

  • go tool nsgo test -target <target> on the targets above

Checklist

  • The title is a Conventional Commit, such as fix(linux): keep the caret after a paste; a squash merge uses it as the commit subject.
  • Docs whose facts change are updated, and a capability users can see has a line in a changelog.d/ fragment, not in CHANGELOG.md. No documented facts change.
  • New third-party code, assets and dependencies name their source and license. None are added.

🤖 Generated with Claude Code

The loop starts 200 fresh processes and takes about 6m41s of the apple
job's 12m05s, after which the job's other 37 steps take about 4 minutes.
Run it in a job of its own so the two halves overlap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Laotree

Laotree commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Correction to the expected wall clock: after both splits the longest job is android at 10m19s, so the workflow falls to about 10m19s, not the number this description gives. The arithmetic is in #2319.

This branch has not been deployed

No deployments
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.

ci: split the apple and test jobs

1 participant