Commit 73f9085
Split rspec-package-tests into parallel generator/unit shards (#3134)
## Summary
- Splits the `rspec-package-tests` CI job into two parallel matrix
shards: **generators** (429 examples with heavy filesystem I/O) and
**unit** (584 examples covering everything else)
- Applies to both PR (latest-only) and main (latest + minimum) matrix
configurations
- Artifact names updated to include shard name to avoid collisions
Expected CI time reduction: ~24 min → ~12 min.
Closes #3131
## Test plan
- [ ] Verify both `generators` and `unit` shard jobs appear in the CI
matrix
- [ ] Confirm generator shard runs only `spec/react_on_rails/generators`
- [ ] Confirm unit shard runs `spec/react_on_rails` excluding generators
- [ ] Check artifact names are unique per shard
- [ ] Verify full matrix on main includes 4 jobs (2 Ruby versions × 2
shards)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> Medium risk because it changes CI execution by splitting the RSpec
suite into shard-specific commands and adjusts test initialization to
suppress Minitest/Test::Unit autorun behavior, which could affect what
tests run and how failures surface.
>
> **Overview**
> Splits `rspec-package-tests` into two parallel matrix shards
(`generators` vs `unit`) for both PR and full (main/`full-ci`) runs, and
runs shard-specific RSpec commands (generators-only vs everything
excluding generators).
>
> Updates uploaded artifact names to include the shard to avoid
collisions, and tweaks both `spec_helper.rb` files to `require
"minitest"` and disable Minitest/Test::Unit autorun hooks so RSpec CLI
args don’t get parsed by Minitest during CI/test boot.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
7b8a9c8. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Updated CI to run tests in parallel shards (generators and unit),
improving feedback speed and artifact reporting.
* **Bug Fixes**
* Stabilized test boot process to prevent interfering test runners
during spec runs, improving test reliability.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e7aef5c commit 73f9085
3 files changed
Lines changed: 36 additions & 9 deletions
File tree
- .github/workflows
- react_on_rails_pro/spec/react_on_rails_pro
- react_on_rails/spec/react_on_rails
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | | - | |
92 | | - | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | | - | |
95 | | - | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
155 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
156 | 167 | | |
157 | 168 | | |
158 | 169 | | |
159 | | - | |
| 170 | + | |
160 | 171 | | |
161 | 172 | | |
162 | 173 | | |
163 | 174 | | |
164 | | - | |
| 175 | + | |
165 | 176 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
23 | 31 | | |
24 | | - | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
15 | 23 | | |
16 | 24 | | |
17 | 25 | | |
18 | 26 | | |
19 | | - | |
| 27 | + | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
| |||
0 commit comments