Skip to content

ci: run the whole test suite in its own job - #2321

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

Laotree wants to merge 1 commit into
nsgo-dev:mainfrom
Laotree:ci/split-test-suite

Conversation

@Laotree

@Laotree Laotree commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Summary

The test job takes 11m04s, and 3m49s of that is one step: go tool nsgo test -- -timeout=20m, which runs the whole suite in one process. The job's other steps take about 6 minutes. Move that step and the Vet step into a test-suite job with the same setup, so the two halves overlap.

Expected: test about 6m30s and test-suite about 6m30s. This pull request needs #2320 to show a fall in the workflow's wall clock: on its own the longest job stays apple.

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: test goes from 36 steps to 34, and test-suite holds the moved Vet and Test steps plus checkout, Go, Java, the native dependencies, the WebKit sandbox profile and the virtual audio output. The moved Test step keeps its environment unchanged.

  • The two jobs install the native dependencies separately, which costs about 1m25 each; that is the price of running them beside each other.

  • 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 Test step runs the whole suite and takes about 3m49s of the test
job's 11m04s, while the job's other steps take about 6 minutes. Move it
and the Vet step into a job of their own, with the same setup, 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