Skip to content

ci: split tests into 4 shards with fail-fast disabled#1236

Open
yanyihan-xiaomi wants to merge 1 commit into
mainfrom
ci/test-4-shards
Open

ci: split tests into 4 shards with fail-fast disabled#1236
yanyihan-xiaomi wants to merge 1 commit into
mainfrom
ci/test-4-shards

Conversation

@yanyihan-xiaomi

Copy link
Copy Markdown
Collaborator

Summary

  • Split unit tests into 4 parallel shards using bun test --shard
  • Set fail-fast: false so all shards complete even if one fails
  • Run tests directly in packages/opencode via test:ci script with JUnit reporter
  • Upload JUnit XML artifact per shard
  • Simplify setup-bun action: remove baseline URL construction, setuptools, Windows hoisted workaround
  • Bump actions: checkout@v6, cache@v5, upload-artifact@v7 (fix Node.js 20 deprecation warnings)
  • turbo.json: only keep typecheck (remove build + @mimo-ai/cli / @mimo-ai/app test tasks)
  • Bump bun to 1.3.14 via packageManager

Changes

File Change
test.yml 4 shards, fail-fast=false, 8min timeout, JUnit artifacts
lint.yml / typecheck.yml checkout v6
setup-bun/action.yml 53→19 lines, simplified
turbo.json only typecheck
package.json bun 1.3.14

@yanyihan-xiaomi

yanyihan-xiaomi commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator Author

预计应该在Test基本都通过之后再合并,方便快速检查,目前来说让统计test fail变麻烦了,暂时不适合合入

- Split unit tests into 4 parallel shards using bun test --shard
- Set fail-fast: false so all shards complete even if one fails
- Run tests directly in packages/opencode via test:ci script with JUnit reporter
- Upload JUnit XML artifact per shard
- Simplify setup-bun action: remove baseline URL, setuptools, Windows hoisted
- Bump actions: checkout@v6, cache@v5, upload-artifact@v7
- turbo.json: only keep typecheck (remove build + cli/app test tasks)
- Bump bun to 1.3.14 via packageManager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant