turbo_tests2 3.2.17 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d0f84a37aeb74853501933d16cd9476a1f82800b3d33e9da544af8ef0e0c145
4
- data.tar.gz: 581d982f38436235925c6bc8180a4ac29513c198599ae841949e47bce114186f
3
+ metadata.gz: 24b1f07c3142af3e9771f015bd59d1c52537adfd8c2aa397265c97fa4778c6ec
4
+ data.tar.gz: 1fb164c9ec4ab7fa00c56ff3c9485f533b8fe6ebd55e7ed01a7cfeac56b145d7
5
5
  SHA512:
6
- metadata.gz: 9d0f7b4e2080fd36f4da47ff4bdebed7fce369995e9c1b6cb305bc2caf9ad935ec2d65eaa84483721b361c57a12eb24b36fd3d0c5fc0ce16a62638f14df16636
7
- data.tar.gz: ffc015acc34a5ad4658a2a5aa53ceb02ec6621eea4e625bc1a7d2b6558c1cc728037ad984c32cc52e08108f8c322011dee41926dfdde3400c5c65ae7021c82dc
6
+ metadata.gz: cc69a66019574a06ca7042588bb0a76fe994daec0ef192c1cf020e098e5d65f3b48f8ec47f6c90c2fd7cce4a4f78b19cd1fd8fdfcd5db42adf420c509c5cdbd6
7
+ data.tar.gz: 7e7e810df18c73105b82dc78459b8083950fda3578036a4f9d98caa8176a385eb6171d90a42c5b779b7486397fdff2f9d6bf663106af29243dfaf87ddf3360d6
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -30,6 +30,50 @@ Please file a bug if you notice a violation of semantic versioning.
30
30
 
31
31
  ### Security
32
32
 
33
+ ## [4.0.1] - 2026-11-10
34
+
35
+ - TAG: [v4.0.1][4.0.1t]
36
+ - COVERAGE: 95.15% -- 1099/1155 lines in 12 files
37
+ - BRANCH COVERAGE: 84.12% -- 302/359 branches in 12 files
38
+ - 36.67% documented
39
+
40
+ ### Changed
41
+
42
+ - [kc] kettle-jem/prepare: updated 24 project files:
43
+ - configuration (1)
44
+ - dependencies (23)
45
+ - [kc] kettle-jem/template: updated 37 project files:
46
+ - code and tests (3)
47
+ - dependencies (8)
48
+ - documentation (1)
49
+ - other (5)
50
+ - workflows (20)
51
+
52
+ ### Added
53
+
54
+ - Stall diagnostics: the watchdog report now has one line per worker (pid, whether it exited, examples finished, age of its last message, last finished example, open groups, and `/proc` state on Linux). Each worker also dumps every thread's backtrace to a private duplicate of stderr when no example finishes for half the watchdog time; `TURBO_TESTS2_STACK_DUMP_SECONDS` overrides the delay and `0` disables it. (#58, #61)
55
+
56
+ ### Fixed
57
+
58
+ - A worker's exit message is no longer skipped when reader teardown raises. Force-closing a pipe under a blocked reader raises `Errno::EBADF` on TruffleRuby (`IOError` on MRI); the readers now rescue `SystemCallError` too, and the exit message is queued in an `ensure`. This caused a rare indefinite stall on TruffleRuby 33.0. (#58, #59)
59
+
60
+ ## [4.0.0] - 2026-10-15
61
+
62
+ - TAG: [v4.0.0][4.0.0t]
63
+ - COVERAGE: 96.01% -- 1034/1077 lines in 12 files
64
+ - BRANCH COVERAGE: 82.42% -- 272/330 branches in 12 files
65
+ - 37.39% documented
66
+
67
+ ### Changed
68
+
69
+ - Breaking: replace the parallel_tests runtime dependency with runtime_groups (~> 0.1, >= 0.1.2) for process counts, pid bookkeeping, options-file discovery, and runtime-weighted grouping; turbo_tests2 now owns a TurboTests::RuntimeLogger RSpec formatter and reimplements the Rails db:create bootstrap directly on Process.spawn
70
+
71
+ - Breaking: the stall watchdog is now ON by default (TURBO_TESTS2_WATCHDOG_SECONDS defaults to 900, killing silent workers and failing the run with a stall report); set TURBO_TESTS2_WATCHDOG_SECONDS=0 to restore the 3.x wait-forever behavior. The 3.x deprecation notice is replaced by a provider-neutral one-time warning when the watchdog is disabled and workers go silent 900s, naming the most common cause of total silence in a parallel lane (silently OOM-killed workers) and the fix (cap workers x per-worker memory)
72
+
73
+ ### Fixed
74
+
75
+ - --allowed-missing now actually bounds the share of files allowed to miss the runtime log when grouping (parallel_tests silently ignored the option); runtime log is now written by the first-party TurboTests::RuntimeLogger through RuntimeGroups::RuntimeLog, and the watchdog's tracked-pid fallback reads the read-before-write pid ledger correctly
76
+
33
77
  ## [3.2.17] - 2026-10-14
34
78
 
35
79
  - TAG: [v3.2.17][3.2.17t]
@@ -774,7 +818,11 @@ Please file a bug if you notice a violation of semantic versioning.
774
818
 
775
819
  - Initial release
776
820
 
777
- [Unreleased]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.2.17...HEAD
821
+ [Unreleased]: https://github.com/galtzo-floss/turbo_tests2/compare/v4.0.1...HEAD
822
+ [4.0.1]: https://github.com/galtzo-floss/turbo_tests2/compare/v4.0.0...v4.0.1
823
+ [4.0.1t]: https://github.com/galtzo-floss/turbo_tests2/releases/tag/v4.0.1
824
+ [4.0.0]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.2.17...v4.0.0
825
+ [4.0.0t]: https://github.com/galtzo-floss/turbo_tests2/releases/tag/v4.0.0
778
826
  [3.2.17]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.2.16...v3.2.17
779
827
  [3.2.17t]: https://github.com/galtzo-floss/turbo_tests2/releases/tag/v3.2.17
780
828
  [3.2.16]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.2.15...v3.2.16
data/README.md CHANGED
@@ -25,7 +25,7 @@ I've summarized my thoughts in [this blog post](https://dev.to/galtzo/hostile-ta
25
25
  |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
26
26
  | I ([@pboling](https://github.com/pboling)) discussed merging this project back into the original `turbo_tests` with [@ilyazub](https://github.com/ilyazub), and we might move in that direction, but it will take time. Since I need this now I'm releasing it as a separate gem/project. We'll be discussing potentially unifying the projects again soon. |
27
27
 
28
- `turbo_tests2` is an RSpec parallel test runner built on [grosser/parallel_tests](https://github.com/grosser/parallel_tests). It uses `parallel_tests` for process counts, file grouping, and runtime balancing, then replaces interleaved worker output with incremental summarized RSpec reporting. Source code of this gem is based on [Discourse](https://github.com/discourse/discourse/blob/6b9784cf8a18636bce281a7e4d18e65a0cbc6290/lib/turbo_tests.rb) and [RubyGems](https://github.com/rubygems/rubygems/tree/390335ceb351668cd433bd5bb9823dd021f82533/bundler/tool) work in this area.
28
+ `turbo_tests2` is an RSpec parallel test runner. It uses [runtime_groups](https://github.com/galtzo-floss/runtime_groups) for process counts, pid bookkeeping, file grouping, and runtime balancing, then replaces interleaved worker output with incremental summarized RSpec reporting. Source code of this gem is based on [Discourse](https://github.com/discourse/discourse/blob/6b9784cf8a18636bce281a7e4d18e65a0cbc6290/lib/turbo_tests.rb) and [RubyGems](https://github.com/rubygems/rubygems/tree/390335ceb351668cd433bd5bb9823dd021f82533/bundler/tool) work in this area. As of v4.0.0 the `parallel_tests` dependency is gone; the CLI keeps compatibility with the `parallel_tests` grouping surface documented below.
29
29
  The project namespace remains `TurboTests`; the published gem and executable are `turbo_tests2`.
30
30
 
31
31
  Incremental summarized output doesn't [fit the vision](https://github.com/grosser/parallel_tests/issues/708) of the `parallel_tests` author, and [RSpec doesn't support built-in parallel testing yet](https://github.com/rspec/rspec-rails/issues/2104#issuecomment-658474900). This gem targets RSpec, not every framework supported by `parallel_tests`, and may not be useful once one of the issues above is implemented.
@@ -112,11 +112,12 @@ Finished in 2 minute 25.15 seconds (files took 0 seconds to load)
112
112
 
113
113
  ### Compatibility
114
114
 
115
- Compatible with MRI Ruby 2.4.0+, JRuby, and TruffleRuby.
115
+ The gem's declared runtime compatibility floor is MRI Ruby 2.4.0+, with concordant releases of JRuby and TruffleRuby.
116
116
  CI workflows and Appraisals are generated for MRI Ruby 2.4+.
117
- This test floor is configured by `ruby.test_minimum` in `.kettle-jem.yml` and
118
- may be higher than the gem's runtime compatibility floor when legacy Rubies are
119
- not practical for the current toolchain.
117
+ The current MRI CI lane runs on Linux and macOS.
118
+ The test floor is configured by `ruby.test_minimum` in `.kettle-jem.yml`.
119
+ When it is higher than the runtime floor, older runtime-compatible Rubies are
120
+ not covered by the generated CI or Appraisal matrix.
120
121
 
121
122
  <a href="https://github.com/kettle-dev"><img alt="kettle-dev Logo by Aboling0, CC BY-SA 4.0" src="https://logos.galtzo.com/assets/images/kettle-dev/avatar-128px.svg" width="14%" align="right"/></a>
122
123
 
@@ -137,23 +138,6 @@ The _amazing_ test matrix is powered by the kettle-dev stack.
137
138
 
138
139
  </details>
139
140
 
140
- ### Runtime and Platform Support
141
-
142
- Support tiers describe what this project's CI actually exercises, not what may
143
- work in an untested environment:
144
-
145
- - **Parallel support**: CI runs the test suite with multiple workers available.
146
- - **Unsupported**: the engine/platform combination is not covered by CI and is
147
- not a project compatibility claim.
148
-
149
- | Ruby engine/version | Linux | macOS | Windows | Notes |
150
- |---------------------|-------|-------|---------|-------|
151
- | MRI 3.1-3.4 | Parallel support | Unsupported | Unsupported | Versioned Ruby workflows run on Linux. |
152
- | MRI current | Parallel support | Parallel support | Unsupported | Current Ruby workflow covers the declared OS platforms. |
153
- | MRI head | Parallel support | Unsupported | Unsupported | CI is allowed to fail while Ruby is in development. |
154
- | JRuby (all CI lanes) | Parallel support | Unsupported | Unsupported | Engine workflows run on Linux; macOS and Windows are not exercised by CI. |
155
- | TruffleRuby (all CI lanes) | Parallel support | Unsupported | Unsupported | Never shipped a Windows build (zero Windows assets across 66 releases scanned 2026-10-10); setup-ruby hard-fails ([source](https://github.com/ruby/setup-ruby/blob/master/README.md)) |
156
-
157
141
  ### Federated DVCS
158
142
 
159
143
  <details markdown="1">
@@ -169,29 +153,12 @@ work in an untested environment:
169
153
 
170
154
  ### Enterprise Support
171
155
 
172
- [![Tidelift](https://tidelift.com/badges/package/rubygems/turbo_tests2)](https://tidelift.com/subscription/pkg/rubygems-turbo_tests2?utm_source=rubygems-turbo_tests2&utm_medium=referral&utm_campaign=readme)
156
+ For enterprise support from the maintainer, use [Upwork][👨🏼‍🏫expsup-upwork] or [CodeMentor][👨🏼‍🏫expsup-codementor].
173
157
 
174
- Available as part of the Tidelift Subscription.
175
-
176
- <details markdown="1">
177
- <summary>Need enterprise-level guarantees?</summary>
178
-
179
- The maintainers of this and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.
180
-
181
- [![Get help from me on Tidelift][🏙️entsup-tidelift-img]][🏙️entsup-tidelift]
182
-
183
- - 💡Subscribe for support guarantees covering _all_ your FLOSS dependencies
184
- - 💡Tidelift is part of [Sonar][🏙️entsup-tidelift-sonar]
185
- - 💡Tidelift pays maintainers to maintain the software you depend on!<br/>📊`@`Pointy Haired Boss: An [enterprise support][🏙️entsup-tidelift] subscription is "[never gonna let you down][🧮kloc]", and *supports* open source maintainers
186
-
187
- Alternatively:
158
+ Other support channels:
188
159
 
189
160
  - [![Ruby Users Forum][✉️ruby-forum-img]][✉️ruby-forum]
190
161
  - [![Live Chat on Discord][✉️discord-invite-img-ftb]][✉️discord-invite]
191
- - [![Get help from me on Upwork][👨🏼‍🏫expsup-upwork-img]][👨🏼‍🏫expsup-upwork]
192
- - [![Get help from me on Codementor][👨🏼‍🏫expsup-codementor-img]][👨🏼‍🏫expsup-codementor]
193
-
194
- </details>
195
162
 
196
163
  ## ✨ Installation
197
164
 
@@ -445,8 +412,9 @@ producing example/group messages — a run can otherwise hang until the CI
445
412
  provider kills the job (GitHub Actions: 6 hours).
446
413
 
447
414
  `TURBO_TESTS2_WATCHDOG_SECONDS=N` (integer, `0` = disabled) bounds that
448
- silence. **Default is `0` (disabled) in 3.x.** In 4.0 the default becomes
449
- `900` and the kill behavior is always on.
415
+ silence. **Default is `900` as of 4.0.** (3.x defaulted to `0` — disabled —
416
+ with a one-time deprecation notice; set `0` to keep the old wait-forever
417
+ behavior.)
450
418
 
451
419
  When the watchdog fires it kills the remaining worker processes, prints the
452
420
  unfinished groups and worker pids, and fails the run.
@@ -468,12 +436,12 @@ Notes:
468
436
  limit; also set `timeout-minutes` on the CI job. Locally, an outer
469
437
  supervisor (process watcher, container timeout) plays the same role.
470
438
  - When the watchdog is disabled (`0`), a 900s silence prints a one-time
471
- deprecation notice describing the 4.0 default change and both options
472
- (adopt the kill via `TURBO_TESTS2_WATCHDOG_SECONDS`, or explicitly opt out
473
- with `0`). The notice is provider-neutral: it warns that with the
474
- watchdog off, whatever outer process watcher exists — a CI job timeout,
475
- a container orchestrator, or a local supervisor — is what will eventually
476
- end a hung run.
439
+ provider-neutral notice: with the watchdog off, whatever outer process
440
+ watcher exists — a CI job timeout, a container orchestrator, or a local
441
+ supervisor — is what will eventually end a hung run, usually without a
442
+ useful stall report. The notice also names the most common cause of total
443
+ silence in a parallel lane (silently OOM-killed workers) and the fix (cap
444
+ `workers x per-worker memory`).
477
445
 
478
446
  `turbo_tests2` supports custom formatter such as Fuubar, but you might need to require it:
479
447
 
@@ -561,19 +529,18 @@ We welcome both individual and corporate sponsors! We also offer a
561
529
  wide array of funding channels to account for your preferences.
562
530
  Currently, [Open Collective][🖇osc] is our preferred funding platform.
563
531
 
532
+ ### Corporate Sponsorship
533
+
564
534
  **If you're working in a company that's making significant use of galtzo-floss tools we'd
565
535
  appreciate it if you suggest to your company to become a galtzo-floss sponsor.**
566
536
 
537
+ ### Individual Support
538
+
567
539
  You can support the development of galtzo-floss tools via
568
540
  [GitHub Sponsors][🖇sponsor],
569
541
  [Liberapay][⛳liberapay],
570
- [PayPal][🖇paypal],
571
- [Open Collective][🖇osc]
572
- and [Tidelift][🏙️entsup-tidelift].
573
-
574
- | 📍 NOTE |
575
- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
576
- | If doing a sponsorship in the form of donation is problematic for your company <br/> from an accounting standpoint, we'd recommend the use of Tidelift, <br/> where you can get a support-like subscription instead. |
542
+ [Open Collective][🖇osc],
543
+ and [PayPal][🖇paypal].
577
544
 
578
545
  ### Open Collective for Individuals
579
546
 
@@ -660,7 +627,7 @@ For most applications, prefer the [Pessimistic Version Constraint][📌pvc] with
660
627
  For example:
661
628
 
662
629
  ```ruby
663
- spec.add_dependency("turbo_tests2", "~> 3.0")
630
+ spec.add_dependency("turbo_tests2", "~> 4.0")
664
631
  ```
665
632
 
666
633
  <details markdown="1">
@@ -799,9 +766,6 @@ Thanks for RTFM. ☺️
799
766
  [👨🏼‍🏫expsup-upwork-img]: https://img.shields.io/badge/UpWork-13544E?style=for-the-badge&logo=Upwork&logoColor=white
800
767
  [👨🏼‍🏫expsup-codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
801
768
  [👨🏼‍🏫expsup-codementor-img]: https://img.shields.io/badge/CodeMentor-Get_Help-1abc9c?style=for-the-badge&logo=CodeMentor&logoColor=white
802
- [🏙️entsup-tidelift]: https://tidelift.com/subscription/pkg/rubygems-turbo_tests2?utm_source=rubygems-turbo_tests2&utm_medium=referral&utm_campaign=readme
803
- [🏙️entsup-tidelift-img]: https://img.shields.io/badge/Tidelift_and_Sonar-Enterprise_Support-FD3456?style=for-the-badge&logo=sonar&logoColor=white
804
- [🏙️entsup-tidelift-sonar]: https://blog.tidelift.com/tidelift-joins-sonar
805
769
  [💁🏼‍♂️peterboling]: http://www.peterboling.com
806
770
  [🚂railsbling]: http://www.railsbling.com
807
771
  [📜src-gl-img]: https://img.shields.io/badge/GitLab-FBA326?style=for-the-badge&logo=Gitlab&logoColor=orange
@@ -913,7 +877,7 @@ Thanks for RTFM. ☺️
913
877
  [📌gitmoji]: https://gitmoji.dev
914
878
  [📌gitmoji-img]: https://img.shields.io/badge/gitmoji_commits-%20%F0%9F%98%9C%20%F0%9F%98%8D-34495e.svg?style=flat-square
915
879
  [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
916
- [🧮kloc-img]: https://img.shields.io/badge/KLOC-1.035-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
880
+ [🧮kloc-img]: https://img.shields.io/badge/KLOC-1.155-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
917
881
  [🔐security]: https://github.com/galtzo-floss/turbo_tests2/blob/main/SECURITY.md
918
882
  [🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
919
883
  [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
@@ -939,9 +903,9 @@ Thanks for RTFM. ☺️
939
903
  | Field | Value |
940
904
  |---|---|
941
905
  | Package | turbo_tests2 |
942
- | Description | 🚀 turbo_tests2` is an RSpec parallel test runner built on `parallel_tests`. It uses `parallel_tests` for process counts, file grouping, and runtime balancing, then replaces interleaved worker output with incremental summarized RSpec reporting. Source code of `turbo_test2` gem is based on Discourse and Rubygems work in this area (see README.md). |
906
+ | Description | 🚀 turbo_tests2` is an RSpec parallel test runner. It uses runtime_groups for process counts, pid bookkeeping, file grouping, and runtime balancing, and replaces interleaved worker output with incremental summarized RSpec reporting. Source code of `turbo_test2` gem is based on Discourse and Rubygems work in this area (see README.md). |
943
907
  | Homepage | https://github.com/galtzo-floss/turbo_tests2 |
944
908
  | Source | https://github.com/galtzo-floss/turbo_tests2 |
945
909
  | License | `MIT` |
946
- | Funding | https://github.com/sponsors/pboling, https://ko-fi.com/pboling, https://liberapay.com/pboling/donate, https://opencollective.com/galtzo-floss, https://thanks.dev/u/gh/pboling, https://tidelift.com/funding/github/rubygems/turbo_tests2, https://www.buymeacoffee.com/pboling |
910
+ | Funding | https://github.com/sponsors/pboling, https://ko-fi.com/pboling, https://liberapay.com/pboling/donate, https://opencollective.com/galtzo-floss, https://thanks.dev/u/gh/pboling, https://www.buymeacoffee.com/pboling |
947
911
  <!-- kettle-jem:metadata:end -->
@@ -363,20 +363,19 @@ module TurboTests
363
363
  exit(1)
364
364
  end
365
365
 
366
- processes = ParallelTests.determine_number_of_processes(count)
367
- pids = ParallelTests.with_pid_file do
368
- (1..processes).map do |process_id|
366
+ processes = RuntimeGroups.process_count(count)
367
+ RuntimeGroups::PidFile.with do |pid_path|
368
+ pids = (1..processes).map do |process_id|
369
369
  env = {
370
370
  "TEST_ENV_NUMBER" => process_id.to_s,
371
371
  "PARALLEL_TEST_GROUPS" => processes.to_s,
372
- "PARALLEL_PID_FILE" => ParallelTests.pid_file_path
372
+ "PARALLEL_PID_FILE" => pid_path
373
373
  }
374
374
  Process.spawn(env, *args)
375
375
  end
376
- end
377
- statuses = pids.map { |pid| Process.wait2(pid).last }
378
-
379
- exit(statuses.all?(&:success?) ? 0 : 1)
376
+ statuses = pids.map { |pid| Process.wait2(pid).last }
377
+ statuses.all?(&:success?) ? 0 : 1
378
+ end.tap { |code| exit(code) }
380
379
  rescue OptionParser::ParseError => e
381
380
  warn(e.message)
382
381
  warn(parser)
@@ -30,6 +30,7 @@ module TurboTests
30
30
  self,
31
31
  :start,
32
32
  :close,
33
+ :example_started,
33
34
  :example_failed,
34
35
  :example_passed,
35
36
  :example_pending,
@@ -45,9 +46,77 @@ module TurboTests
45
46
 
46
47
  def initialize(output)
47
48
  @output = output
49
+ @current_example = nil
50
+ @last_progress = Process.clock_gettime(Process::CLOCK_MONOTONIC)
51
+ end
52
+
53
+ def example_started(notification)
54
+ @current_example = notification.example.location
55
+ touch_progress
56
+ end
57
+
58
+ # When no example finishes for a long time the parent's watchdog can only
59
+ # say "silent". The worker is the only one that can say where it is stuck,
60
+ # so dump every thread's backtrace to stderr (which the parent surfaces)
61
+ # once per stall, at half the watchdog. Disabled when the watchdog is.
62
+ def start_stall_dumper
63
+ threshold = stall_dump_seconds
64
+ return unless threshold.positive?
65
+
66
+ # Specs routinely silence or swap $stderr (silent_stream reopens the fd),
67
+ # which would swallow the dump exactly when a spec hangs inside such a
68
+ # block. Keep our own duplicate of the original stderr.
69
+ @stall_io = begin
70
+ $stderr.dup
71
+ rescue
72
+ $stderr
73
+ end
74
+ # rubocop:disable ThreadSafety/NewThread -- watchdog helper thread, one per worker process.
75
+ @stall_dumper = Thread.new do
76
+ Thread.current.report_on_exception = false
77
+ dumped = false
78
+ loop do
79
+ sleep([threshold / 4.0, 1.0].max)
80
+ idle = Process.clock_gettime(Process::CLOCK_MONOTONIC) - @last_progress
81
+ if idle < threshold
82
+ dumped = false
83
+ elsif !dumped
84
+ dumped = true
85
+ dump_stall(idle)
86
+ end
87
+ end
88
+ end
89
+ # rubocop:enable ThreadSafety/NewThread
90
+ end
91
+
92
+ def dump_stall(idle)
93
+ lines = ["turbo_tests2 worker #{ENV["TEST_ENV_NUMBER"].inspect} pid #{Process.pid}: " \
94
+ "no example finished for #{idle.round}s; current example: #{@current_example.inspect}"]
95
+ Thread.list.each do |thread|
96
+ lines << "--- #{thread.inspect}"
97
+ lines.concat(Array(thread.backtrace).map { |frame| " #{frame}" })
98
+ end
99
+ @stall_io.puts(lines.join("\n"))
100
+ @stall_io.flush
101
+ rescue
102
+ nil
103
+ end
104
+
105
+ def stall_dump_seconds
106
+ explicit = ENV["TURBO_TESTS2_STACK_DUMP_SECONDS"]
107
+ return Float(explicit) if explicit
108
+
109
+ Float(ENV.fetch("TURBO_TESTS2_WATCHDOG_SECONDS", "900")) / 2
110
+ rescue ArgumentError
111
+ 0.0
112
+ end
113
+
114
+ def touch_progress
115
+ @last_progress = Process.clock_gettime(Process::CLOCK_MONOTONIC)
48
116
  end
49
117
 
50
118
  def start(notification)
119
+ start_stall_dumper
51
120
  output_row(
52
121
  type: :load_summary,
53
122
  summary: load_summary_to_json(notification)
@@ -69,6 +138,7 @@ module TurboTests
69
138
  end
70
139
 
71
140
  def example_passed(notification)
141
+ touch_progress
72
142
  output_row(
73
143
  type: :example_passed,
74
144
  example: example_to_json(notification.example)
@@ -76,6 +146,7 @@ module TurboTests
76
146
  end
77
147
 
78
148
  def example_pending(notification)
149
+ touch_progress
79
150
  output_row(
80
151
  type: :example_pending,
81
152
  example: example_to_json(notification.example)
@@ -83,6 +154,7 @@ module TurboTests
83
154
  end
84
155
 
85
156
  def example_failed(notification)
157
+ touch_progress
86
158
  output_row(
87
159
  type: :example_failed,
88
160
  example: example_to_json(notification.example)
@@ -97,6 +169,7 @@ module TurboTests
97
169
  end
98
170
 
99
171
  def close(_notification)
172
+ @stall_dumper&.kill
100
173
  output_row(
101
174
  type: :close
102
175
  )
@@ -80,7 +80,7 @@ module TurboTests
80
80
  end
81
81
 
82
82
  def report_number_of_tests(groups)
83
- name = ParallelTests::RSpec::Runner.test_file_name
83
+ name = "spec"
84
84
 
85
85
  num_processes = groups.size
86
86
  num_tests = groups.map(&:size).sum
@@ -3,7 +3,7 @@
3
3
  require "json"
4
4
  require "timeout"
5
5
  require "fileutils"
6
- require "parallel_tests/rspec/runner"
6
+ require "runtime_groups"
7
7
  require "rspec/core"
8
8
  require "shellwords"
9
9
  require "tempfile"
@@ -30,14 +30,18 @@ module TurboTests
30
30
 
31
31
  class << self
32
32
  def create(count)
33
- # We are unable to load parallel tests' tasks in the normal way (top of file)
34
- # because it requires that the Rails.application instance already be configured
35
- require "parallel_tests/tasks"
36
-
37
- ENV["PARALLEL_TEST_FIRST_IS_1"] = "true"
38
- command = ["bundle", "exec", "rake", "db:create", "RAILS_ENV=#{ParallelTests::Tasks.rails_env}"]
39
- args = {count: count.to_s}
40
- ParallelTests::Tasks.run_in_parallel(command, args)
33
+ # Rails bootstrap: prepare the database once per worker, in parallel.
34
+ # Implemented directly with Process.spawn so the runner does not
35
+ # depend on parallel_tests for anything.
36
+ count = RuntimeGroups.process_count(count)
37
+ pids = (1..count).map do |process_id|
38
+ Process.spawn(
39
+ {"TEST_ENV_NUMBER" => process_id.to_s, "PARALLEL_TEST_GROUPS" => count.to_s},
40
+ "bundle", "exec", "rake", "db:create", "RAILS_ENV=#{ENV.fetch("RAILS_ENV", "test")}"
41
+ )
42
+ end
43
+ statuses = pids.map { |pid| Process.wait2(pid).last }
44
+ statuses.all?(&:success?) ? 0 : 1
41
45
  end
42
46
 
43
47
  def run(opts = {})
@@ -249,10 +253,11 @@ module TurboTests
249
253
  @load_time = 0
250
254
  @load_count = 0
251
255
  @failure_count = 0
252
- # Deprecation-period default: disabled. In 4.0 the kill behavior
253
- # becomes the default (TURBO_TESTS2_WATCHDOG_SECONDS=900) and this
254
- # warning is removed. See README "Stall watchdog".
255
- @watchdog_seconds = Float(ENV.fetch("TURBO_TESTS2_WATCHDOG_SECONDS", "0"))
256
+ # 4.0 default: kill behavior on (900s of total worker silence). Set
257
+ # TURBO_TESTS2_WATCHDOG_SECONDS=0 to disable explicitly (a long-hang
258
+ # run then ends via whatever outer watcher exists). See README
259
+ # "Stall watchdog".
260
+ @watchdog_seconds = Float(ENV.fetch("TURBO_TESTS2_WATCHDOG_SECONDS", "900"))
256
261
  @watchdog_warned = false
257
262
  @last_message_monotonic = nil
258
263
 
@@ -279,10 +284,9 @@ module TurboTests
279
284
 
280
285
  def run
281
286
  parallel_tests_options = @parallel_options.reject { |key, _value| key == :only_group }
282
- tests_with_size = ParallelTests::RSpec::Runner.tests_with_size(@files, parallel_tests_options.merge(quiet: true))
283
287
  @num_processes = [
284
- ParallelTests.determine_number_of_processes(@count),
285
- tests_with_size.size
288
+ RuntimeGroups.process_count(@count),
289
+ @files.size
286
290
  ].min
287
291
 
288
292
  if @num_processes.zero?
@@ -292,10 +296,13 @@ module TurboTests
292
296
  end
293
297
 
294
298
  tests_in_groups =
295
- ParallelTests::RSpec::Runner.tests_in_groups(
299
+ RuntimeGroups::Grouping.in_groups(
296
300
  @files,
297
301
  @num_processes,
298
- **parallel_tests_options
302
+ group_by: parallel_tests_options[:group_by] || :runtime,
303
+ runtime_log: parallel_tests_options[:runtime_log],
304
+ allowed_missing: (parallel_tests_options[:allowed_missing_percent] || 100).to_f / 100,
305
+ unknown_runtime: parallel_tests_options[:unknown_runtime]
299
306
  )
300
307
  tests_in_groups = selected_groups(tests_in_groups) if @parallel_options[:only_group]
301
308
  @tests_in_groups = tests_in_groups
@@ -304,60 +311,72 @@ module TurboTests
304
311
  record_runtime: @record_runtime
305
312
  }
306
313
 
307
- ParallelTests.with_pid_file do
308
- exit_status = nil
309
- report_coverage = false
310
-
311
- @reporter.report(tests_in_groups) do |_reporter|
312
- old_signal = Signal.trap(:INT) { handle_interrupt }
313
-
314
- @wait_threads = tests_in_groups.map.with_index do |tests, process_id|
315
- start_regular_subprocess(tests, process_id + 1, **subprocess_opts)
316
- end.compact
317
- @interrupt_handled = false
318
-
319
- handle_messages
320
-
321
- if @watchdog_fired
322
- # Workers were SIGKILLed by the watchdog; their reader threads end
323
- # at EOF and waiters return as the OS reaps them — but if a kill
324
- # failed (permissions, zombie, pid reuse) an unbounded join here
325
- # would hang the run anyway, defeating the watchdog. Bound every
326
- # join and treat any worker that still has not exited as failed.
327
- @threads.each do |thread|
328
- thread.join(FORCE_STOP_JOIN)
329
- thread.kill if thread.alive?
330
- end
331
- @wait_threads.each do |wait_thr|
332
- wait_thr.join(FORCE_STOP_JOIN)
333
- end
334
- flush_worker_output unless stream_worker_output?
335
- exit_status = 1
336
- else
337
- @threads.each(&:join)
314
+ pid_file_was_set = ENV.key?("PARALLEL_PID_FILE")
315
+ pid_file_before = ENV["PARALLEL_PID_FILE"]
316
+ begin
317
+ RuntimeGroups::PidFile.with do |pid_path|
318
+ ENV["PARALLEL_PID_FILE"] = pid_path
319
+
320
+ exit_status = nil
321
+ report_coverage = false
322
+
323
+ @reporter.report(tests_in_groups) do |_reporter|
324
+ old_signal = Signal.trap(:INT) { handle_interrupt }
325
+
326
+ @wait_threads = tests_in_groups.map.with_index do |tests, process_id|
327
+ start_regular_subprocess(tests, process_id + 1, **subprocess_opts)
328
+ end.compact
329
+ @interrupt_handled = false
330
+
331
+ handle_messages
332
+
333
+ if @watchdog_fired
334
+ # Workers were SIGKILLed by the watchdog; their reader threads end
335
+ # at EOF and waiters return as the OS reaps them — but if a kill
336
+ # failed (permissions, zombie, pid reuse) an unbounded join here
337
+ # would hang the run anyway, defeating the watchdog. Bound every
338
+ # join and treat any worker that still has not exited as failed.
339
+ @threads.each do |thread|
340
+ thread.join(FORCE_STOP_JOIN)
341
+ thread.kill if thread.alive?
342
+ end
343
+ @wait_threads.each do |wait_thr|
344
+ wait_thr.join(FORCE_STOP_JOIN)
345
+ end
346
+ flush_worker_output unless stream_worker_output?
347
+ exit_status = 1
348
+ else
349
+ @threads.each(&:join)
338
350
 
339
- report_workers_without_results
351
+ report_workers_without_results
340
352
 
341
- report_failed_group(tests_in_groups) if @print_failed_group
353
+ report_failed_group(tests_in_groups) if @print_failed_group
342
354
 
343
- Signal.trap(:INT, old_signal)
355
+ Signal.trap(:INT, old_signal)
344
356
 
345
- statuses = @wait_threads.map(&:value)
357
+ statuses = @wait_threads.map(&:value)
346
358
 
347
- if @reporter.failed_examples.empty? && statuses.all?(&:success?)
348
- flush_successful_worker_output
349
- report_coverage = true
350
- exit_status = 0
351
- else
352
- flush_worker_output unless stream_worker_output?
353
- # From https://github.com/galtzo-floss/turbo_tests2/pull/20/
354
- exit_status = statuses.map(&:exitstatus).max
359
+ if @reporter.failed_examples.empty? && statuses.all?(&:success?)
360
+ flush_successful_worker_output
361
+ report_coverage = true
362
+ exit_status = 0
363
+ else
364
+ flush_worker_output unless stream_worker_output?
365
+ # From https://github.com/galtzo-floss/turbo_tests2/pull/20/
366
+ exit_status = statuses.map(&:exitstatus).max
367
+ end
355
368
  end
356
369
  end
357
- end
358
370
 
359
- flush_coverage_summary if report_coverage
360
- exit_status
371
+ flush_coverage_summary if report_coverage
372
+ exit_status
373
+ end
374
+ ensure
375
+ if pid_file_was_set
376
+ ENV["PARALLEL_PID_FILE"] = pid_file_before
377
+ else
378
+ ENV.delete("PARALLEL_PID_FILE")
379
+ end
361
380
  end
362
381
  end
363
382
 
@@ -447,7 +466,7 @@ module TurboTests
447
466
  FileUtils.mkdir_p(File.dirname(@runtime_log))
448
467
  [
449
468
  "--format",
450
- "ParallelTests::RSpec::RuntimeLogger",
469
+ "TurboTests::RuntimeLogger",
451
470
  "--out",
452
471
  @runtime_log
453
472
  ]
@@ -467,7 +486,7 @@ module TurboTests
467
486
  []
468
487
  end
469
488
 
470
- spec_opts = self.class.worker_spec_opts(ParallelTests::RSpec::Runner.send(:spec_opts))
489
+ spec_opts = self.class.worker_spec_opts(RuntimeGroups::Options.spec_opts)
471
490
 
472
491
  command = [
473
492
  *command_name,
@@ -505,7 +524,7 @@ module TurboTests
505
524
  stdout.each_line do |line|
506
525
  parse_worker_stdout_line(line, output_id, process_id)
507
526
  end
508
- rescue IOError
527
+ rescue IOError, SystemCallError
509
528
  nil
510
529
  end
511
530
 
@@ -536,9 +555,18 @@ module TurboTests
536
555
  # is a deduped fallback for a stdout reader that was force-stopped
537
556
  # before reaching EOF, and being in ensure also prevents a hang if
538
557
  # wait_thr.value raises.
539
- drain_worker_readers(stdout_thread, stdout, stderr_thread, stderr)
540
- @messages << {type: "exit", process_id: process_id}
541
- untrack_parallel_pid(wait_thr.pid, pid_file_path)
558
+ begin
559
+ drain_worker_readers(stdout_thread, stdout, stderr_thread, stderr)
560
+ rescue
561
+ # Thread#join re-raises a dead reader's exception. Teardown
562
+ # errors must never skip the exit message below: with no exit
563
+ # message handle_messages blocks forever (watchdog 0) or until
564
+ # the watchdog fires.
565
+ nil
566
+ ensure
567
+ @messages << {type: "exit", process_id: process_id}
568
+ untrack_parallel_pid(wait_thr.pid, pid_file_path)
569
+ end
542
570
  end
543
571
  end
544
572
  # rubocop:enable ThreadSafety/NewThread
@@ -556,11 +584,11 @@ module TurboTests
556
584
  end
557
585
 
558
586
  def track_parallel_pid(pid, pid_file_path = parallel_pid_file_path)
559
- ParallelTests::Pids.new(pid_file_path).add(pid) if pid && pid_file_path
587
+ RuntimeGroups::Pids.new(pid_file_path).add(pid) if pid && pid_file_path
560
588
  end
561
589
 
562
590
  def untrack_parallel_pid(pid, pid_file_path = parallel_pid_file_path)
563
- ParallelTests::Pids.new(pid_file_path).delete(pid) if pid && pid_file_path
591
+ RuntimeGroups::Pids.new(pid_file_path).delete(pid) if pid && pid_file_path
564
592
  end
565
593
 
566
594
  def start_copy_thread(src, process_id, stream)
@@ -573,7 +601,10 @@ module TurboTests
573
601
  rescue EOFError
574
602
  close_io(src)
575
603
  break
576
- rescue IOError
604
+ rescue IOError, SystemCallError
605
+ # SystemCallError: closing a pipe under a blocked read raises
606
+ # IOError on MRI but Errno::EBADF on TruffleRuby. An unrescued
607
+ # exception here is re-raised by Thread#join in the waiter.
577
608
  break
578
609
  else
579
610
  append_worker_output(process_id, stream, msg)
@@ -817,14 +848,78 @@ module TurboTests
817
848
  (@tests_in_groups || []).each_with_index do |group, idx|
818
849
  lines << "group #{idx + 1}: #{Array(group).join(", ")}" unless group.nil?
819
850
  end
851
+ lines.concat(worker_progress_lines)
820
852
  lines.join("\n")
821
853
  end
822
854
 
855
+ # Per-worker view of a stall: which worker is silent, what it last did,
856
+ # and what the OS says about its process. The group list above cannot
857
+ # say which worker hung or which example it was running.
858
+ def record_worker_progress(message)
859
+ process_id = message[:process_id]
860
+ return unless process_id.is_a?(Integer)
861
+
862
+ now = Process.clock_gettime(Process::CLOCK_MONOTONIC)
863
+ progress = (@worker_progress ||= {})[process_id] ||= {finished: 0, groups: []}
864
+ progress[:last_type] = message[:type]
865
+ progress[:last_at] = now
866
+ case message[:type]
867
+ when "group_started"
868
+ progress[:groups].push(message.dig(:group, :group, :description))
869
+ when "group_finished"
870
+ progress[:groups].pop
871
+ when "example_passed", "example_failed", "example_pending"
872
+ progress[:finished] += 1
873
+ progress[:last_example] = message.dig(:example, :location)
874
+ when "exit"
875
+ progress[:exited] = true
876
+ end
877
+ end
878
+
879
+ def worker_progress_lines
880
+ now = Process.clock_gettime(Process::CLOCK_MONOTONIC)
881
+ (1..(@num_processes || 0)).flat_map do |process_id|
882
+ progress = (@worker_progress || {})[process_id]
883
+ pid = worker_pid(process_id)
884
+ detail = if progress
885
+ "#{progress[:exited] ? "exited" : "no exit message"}; #{progress[:finished]} example(s) finished; " \
886
+ "last message #{progress[:last_type]} #{(now - progress[:last_at]).round}s ago; " \
887
+ "last finished example #{progress[:last_example].inspect}; " \
888
+ "open groups #{progress[:groups].inspect}"
889
+ else
890
+ "no messages received"
891
+ end
892
+ ["worker #{process_id} (pid #{pid.inspect}): #{detail}", *proc_state_lines(pid)]
893
+ end
894
+ end
895
+
896
+ def worker_pid(process_id)
897
+ @wait_threads&.at(process_id - 1)&.pid
898
+ rescue
899
+ nil
900
+ end
901
+
902
+ # Linux only; best effort. State "S" with a wchan like futex/poll_schedule
903
+ # is a blocked process, "R" is spinning, "Z" is a zombie, and a missing
904
+ # /proc entry means the worker is gone (OOM kill or crash).
905
+ def proc_state_lines(pid)
906
+ return [] unless pid
907
+
908
+ dir = "/proc/#{pid}"
909
+ return [" /proc/#{pid}: missing (process is gone)"] unless File.directory?(dir)
910
+
911
+ status = File.read("#{dir}/status").lines.grep(/\A(State|Threads|VmRSS|VmHWM):/).map(&:strip).join(" ")
912
+ wchan = File.read("#{dir}/wchan").strip
913
+ [" /proc/#{pid}: #{status}; wchan=#{wchan}"]
914
+ rescue
915
+ []
916
+ end
917
+
823
918
  def tracked_pids
824
- path = ParallelTests.pid_file_path
919
+ path = parallel_pid_file_path
825
920
  return [] unless path && File.file?(path)
826
921
 
827
- File.read(path).lines.map { |l| l.strip.to_i }.reject(&:zero?)
922
+ RuntimeGroups::Pids.new(path).to_a
828
923
  rescue
829
924
  []
830
925
  end
@@ -861,21 +956,19 @@ module TurboTests
861
956
  warned_silence = false
862
957
  loop do
863
958
  message = pop_message_with_watchdog
959
+ record_worker_progress(message)
864
960
  unless warned_silence
865
961
  silence = Process.clock_gettime(Process::CLOCK_MONOTONIC) - @last_message_monotonic
866
962
  if silence >= 900
867
963
  warn(
868
964
  "turbo_tests2: workers have been silent for #{silence.to_i}s. " \
869
- "In turbo_tests2 4.0 (and now when TURBO_TESTS2_WATCHDOG_SECONDS is set) a stall this long kills the " \
870
- "remaining workers and fails the run. To adopt the kill now set TURBO_TESTS2_WATCHDOG_SECONDS=900 (or " \
871
- "another value). To keep waiting indefinitely set TURBO_TESTS2_WATCHDOG_SECONDS=0; be aware that an " \
872
- "outer process watcher (a CI job timeout, a container orchestrator, or a local supervisor) will then " \
873
- "be what eventually ends the run, usually without a useful stall report. A single long test only " \
874
- "trips this in serial lanes (TURBO_TESTS2_MAX_PROCESSES=1); in parallel lanes other workers keep " \
875
- "messages flowing. Total silence in a PARALLEL lane usually means workers died rather than slowed " \
876
- "down — the most common cause is the kernel OOM killer (each worker is a real spawned process; on " \
877
- "JVM engines each is a full JVM whose default heap is 1/4 of RAM). Cap workers x per-worker memory: " \
878
- "TURBO_TESTS2_MAX_PROCESSES=2 with a capped heap (e.g. JRUBY_OPTS=\"-J-Xmx1280m\")."
965
+ "The stall watchdog is disabled (TURBO_TESTS2_WATCHDOG_SECONDS=0), so this run will keep waiting " \
966
+ "until some outer watcher ends it — a CI job timeout, a container orchestrator, or a local " \
967
+ "supervisor — usually without a useful stall report. Total silence in a PARALLEL lane usually means " \
968
+ "workers died rather than slowed down — the most common cause is the kernel OOM killer (each worker " \
969
+ "is a real spawned process; on JVM engines each is a full JVM whose default heap is 1/4 of RAM). " \
970
+ "Cap workers x per-worker memory: TURBO_TESTS2_MAX_PROCESSES=2 with a capped heap (e.g. " \
971
+ "JRUBY_OPTS=\"-J-Xmx1280m\"), or re-enable the watchdog to convert hangs into fast failures."
879
972
  )
880
973
  warned_silence = true
881
974
  end
@@ -0,0 +1,77 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "rspec/core"
4
+ require "runtime_groups"
5
+
6
+ # RSpec formatter that records per-file runtimes into a runtime log
7
+ # (TurboGroups path:seconds format, read back by RuntimeGroups::Grouping).
8
+ # Semantics retained from parallel_tests' RuntimeLogger:
9
+ # - only records when running in parallel (TEST_ENV_NUMBER is set)
10
+ # - accumulates time across nested example groups per top-level file
11
+ # - appends at dump time, sorted slowest-first
12
+ # Min-merging across re-runs happens in RuntimeGroups::RuntimeLog.read via
13
+ # last-write-wins per line, and worker groups are disjoint, so concurrent
14
+ # workers never write the same file.
15
+ class TurboTests::RuntimeLogger
16
+ RSpec::Core::Formatters.register self, :example_group_started, :example_group_finished, :start_dump
17
+
18
+ def initialize(output)
19
+ @output = output
20
+ @example_times = Hash.new(0)
21
+ @group_nesting = 0
22
+ @time = 0.0
23
+ end
24
+
25
+ def example_group_started(_notification)
26
+ @group_nesting += 1
27
+ @time = monotonic if @group_nesting == 1
28
+ end
29
+
30
+ def example_group_finished(notification)
31
+ @group_nesting -= 1
32
+ if @group_nesting.zero?
33
+ @example_times[notification.group.file_path] += monotonic - @time
34
+ end
35
+ end
36
+
37
+ def seed(*)
38
+ end
39
+
40
+ def dump_summary(*)
41
+ end
42
+
43
+ def dump_failures(*)
44
+ end
45
+
46
+ def dump_pending(*)
47
+ end
48
+
49
+ def message(*)
50
+ end
51
+
52
+ def close(*)
53
+ end
54
+
55
+ def start_dump(*)
56
+ return unless ENV["TEST_ENV_NUMBER"] # only record when running in parallel
57
+
58
+ log_path = output_path
59
+ return unless log_path
60
+
61
+ log = RuntimeGroups::RuntimeLog.new(log_path)
62
+ @example_times.sort_by(&:last).reverse_each do |file, time|
63
+ relative_path = file.sub(%r{^#{Regexp.escape(Dir.pwd)}/}, "").sub(%r{^\./}, "")
64
+ log.log(relative_path, [time, 0].max)
65
+ end
66
+ end
67
+
68
+ private
69
+
70
+ def monotonic
71
+ Process.clock_gettime(Process::CLOCK_MONOTONIC)
72
+ end
73
+
74
+ def output_path
75
+ @output.respond_to?(:path) ? @output.path : @output.to_s
76
+ end
77
+ end
@@ -4,7 +4,7 @@ module TurboTests
4
4
  # Version namespace for this gem.
5
5
  module Version
6
6
  # Current gem version.
7
- VERSION = "3.2.17"
7
+ VERSION = "4.0.1"
8
8
  end
9
9
  # Current gem version exposed at the traditional constant location.
10
10
  VERSION = Version::VERSION # Traditional Constant Location
data/lib/turbo_tests.rb CHANGED
@@ -7,10 +7,10 @@ require "json"
7
7
 
8
8
  require "rspec"
9
9
 
10
- require "parallel_tests"
11
- require "parallel_tests/rspec/runner"
10
+ require "runtime_groups"
12
11
 
13
12
  require "turbo_tests/reporter"
13
+ require "turbo_tests/runtime_logger"
14
14
  require "turbo_tests/runner"
15
15
  require "turbo_tests/json_rows_formatter"
16
16
 
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo_tests2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.17
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Illia
@@ -49,39 +49,39 @@ cert_chain:
49
49
  date: 1980-01-02 00:00:00.000000000 Z
50
50
  dependencies:
51
51
  - !ruby/object:Gem::Dependency
52
- name: parallel_tests
52
+ name: rspec
53
53
  requirement: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - ">="
56
56
  - !ruby/object:Gem::Version
57
- version: 3.3.0
58
- - - "<"
59
- - !ruby/object:Gem::Version
60
- version: '6'
57
+ version: '3.10'
61
58
  type: :runtime
62
59
  prerelease: false
63
60
  version_requirements: !ruby/object:Gem::Requirement
64
61
  requirements:
65
62
  - - ">="
66
63
  - !ruby/object:Gem::Version
67
- version: 3.3.0
68
- - - "<"
69
- - !ruby/object:Gem::Version
70
- version: '6'
64
+ version: '3.10'
71
65
  - !ruby/object:Gem::Dependency
72
- name: rspec
66
+ name: runtime_groups
73
67
  requirement: !ruby/object:Gem::Requirement
74
68
  requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '0.1'
75
72
  - - ">="
76
73
  - !ruby/object:Gem::Version
77
- version: '3.10'
74
+ version: 0.1.3
78
75
  type: :runtime
79
76
  prerelease: false
80
77
  version_requirements: !ruby/object:Gem::Requirement
81
78
  requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '0.1'
82
82
  - - ">="
83
83
  - !ruby/object:Gem::Version
84
- version: '3.10'
84
+ version: 0.1.3
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: version_gem
87
87
  requirement: !ruby/object:Gem::Requirement
@@ -91,7 +91,7 @@ dependencies:
91
91
  version: '1.1'
92
92
  - - ">="
93
93
  - !ruby/object:Gem::Version
94
- version: 1.1.15
94
+ version: 1.1.17
95
95
  type: :runtime
96
96
  prerelease: false
97
97
  version_requirements: !ruby/object:Gem::Requirement
@@ -101,7 +101,7 @@ dependencies:
101
101
  version: '1.1'
102
102
  - - ">="
103
103
  - !ruby/object:Gem::Version
104
- version: 1.1.15
104
+ version: 1.1.17
105
105
  - !ruby/object:Gem::Dependency
106
106
  name: kettle-dev
107
107
  requirement: !ruby/object:Gem::Requirement
@@ -111,7 +111,7 @@ dependencies:
111
111
  version: '3.1'
112
112
  - - ">="
113
113
  - !ruby/object:Gem::Version
114
- version: 3.1.12
114
+ version: 3.1.28
115
115
  type: :development
116
116
  prerelease: false
117
117
  version_requirements: !ruby/object:Gem::Requirement
@@ -121,7 +121,7 @@ dependencies:
121
121
  version: '3.1'
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
- version: 3.1.12
124
+ version: 3.1.28
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: bundler-audit
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -179,7 +179,7 @@ dependencies:
179
179
  version: '0.1'
180
180
  - - ">="
181
181
  - !ruby/object:Gem::Version
182
- version: 0.1.3
182
+ version: 0.1.5
183
183
  type: :development
184
184
  prerelease: false
185
185
  version_requirements: !ruby/object:Gem::Requirement
@@ -189,7 +189,7 @@ dependencies:
189
189
  version: '0.1'
190
190
  - - ">="
191
191
  - !ruby/object:Gem::Version
192
- version: 0.1.3
192
+ version: 0.1.5
193
193
  - !ruby/object:Gem::Dependency
194
194
  name: appraisal2
195
195
  requirement: !ruby/object:Gem::Requirement
@@ -199,7 +199,7 @@ dependencies:
199
199
  version: '3.2'
200
200
  - - ">="
201
201
  - !ruby/object:Gem::Version
202
- version: 3.2.5
202
+ version: 3.2.6
203
203
  type: :development
204
204
  prerelease: false
205
205
  version_requirements: !ruby/object:Gem::Requirement
@@ -209,7 +209,7 @@ dependencies:
209
209
  version: '3.2'
210
210
  - - ">="
211
211
  - !ruby/object:Gem::Version
212
- version: 3.2.5
212
+ version: 3.2.6
213
213
  - !ruby/object:Gem::Dependency
214
214
  name: kettle-test
215
215
  requirement: !ruby/object:Gem::Requirement
@@ -219,7 +219,7 @@ dependencies:
219
219
  version: '2.0'
220
220
  - - ">="
221
221
  - !ruby/object:Gem::Version
222
- version: 2.0.25
222
+ version: 2.0.29
223
223
  type: :development
224
224
  prerelease: false
225
225
  version_requirements: !ruby/object:Gem::Requirement
@@ -229,7 +229,7 @@ dependencies:
229
229
  version: '2.0'
230
230
  - - ">="
231
231
  - !ruby/object:Gem::Version
232
- version: 2.0.25
232
+ version: 2.0.29
233
233
  - !ruby/object:Gem::Dependency
234
234
  name: ruby-progressbar
235
235
  requirement: !ruby/object:Gem::Requirement
@@ -253,7 +253,7 @@ dependencies:
253
253
  version: '1.0'
254
254
  - - ">="
255
255
  - !ruby/object:Gem::Version
256
- version: 1.0.9
256
+ version: 1.0.10
257
257
  type: :development
258
258
  prerelease: false
259
259
  version_requirements: !ruby/object:Gem::Requirement
@@ -263,7 +263,7 @@ dependencies:
263
263
  version: '1.0'
264
264
  - - ">="
265
265
  - !ruby/object:Gem::Version
266
- version: 1.0.9
266
+ version: 1.0.10
267
267
  - !ruby/object:Gem::Dependency
268
268
  name: gitmoji-regex
269
269
  requirement: !ruby/object:Gem::Requirement
@@ -273,7 +273,7 @@ dependencies:
273
273
  version: '2.0'
274
274
  - - ">="
275
275
  - !ruby/object:Gem::Version
276
- version: 2.0.15
276
+ version: 2.0.16
277
277
  type: :development
278
278
  prerelease: false
279
279
  version_requirements: !ruby/object:Gem::Requirement
@@ -283,12 +283,11 @@ dependencies:
283
283
  version: '2.0'
284
284
  - - ">="
285
285
  - !ruby/object:Gem::Version
286
- version: 2.0.15
287
- description: "\U0001F680 turbo_tests2` is an RSpec parallel test runner built on `parallel_tests`.
288
- It uses `parallel_tests` for process counts, file grouping, and runtime balancing,
289
- then replaces interleaved worker output with incremental summarized RSpec reporting.
290
- Source code of `turbo_test2` gem is based on Discourse and Rubygems work in this
291
- area (see README.md)."
286
+ version: 2.0.16
287
+ description: "\U0001F680 turbo_tests2` is an RSpec parallel test runner. It uses runtime_groups
288
+ for process counts, pid bookkeeping, file grouping, and runtime balancing, and replaces
289
+ interleaved worker output with incremental summarized RSpec reporting. Source code
290
+ of `turbo_test2` gem is based on Discourse and Rubygems work in this area (see README.md)."
292
291
  email:
293
292
  - floss@galtzo.com
294
293
  executables:
@@ -305,6 +304,7 @@ files:
305
304
  - lib/turbo_tests/json_rows_formatter.rb
306
305
  - lib/turbo_tests/reporter.rb
307
306
  - lib/turbo_tests/runner.rb
307
+ - lib/turbo_tests/runtime_logger.rb
308
308
  - lib/turbo_tests/shim.rb
309
309
  - lib/turbo_tests/utils/paths.rb
310
310
  - lib/turbo_tests/version.rb
@@ -316,10 +316,10 @@ licenses:
316
316
  - MIT
317
317
  metadata:
318
318
  homepage_uri: https://turbo-tests2.galtzo.com
319
- source_code_uri: https://github.com/galtzo-floss/turbo_tests2/tree/v3.2.17
320
- changelog_uri: https://github.com/galtzo-floss/turbo_tests2/blob/v3.2.17/CHANGELOG.md
319
+ source_code_uri: https://github.com/galtzo-floss/turbo_tests2/tree/v4.0.1
320
+ changelog_uri: https://github.com/galtzo-floss/turbo_tests2/blob/v4.0.1/CHANGELOG.md
321
321
  bug_tracker_uri: https://github.com/galtzo-floss/turbo_tests2/issues
322
- documentation_uri: https://www.rubydoc.info/gems/turbo_tests2/3.2.17
322
+ documentation_uri: https://www.rubydoc.info/gems/turbo_tests2/4.0.1
323
323
  funding_uri: https://github.com/sponsors/pboling
324
324
  wiki_uri: https://github.com/galtzo-floss/turbo_tests2/wiki
325
325
  news_uri: https://www.railsbling.com/tags/turbo_tests2
@@ -328,8 +328,8 @@ metadata:
328
328
  rubygems_mfa_required: 'true'
329
329
  rdoc_options:
330
330
  - "--title"
331
- - "turbo_tests2 - \U0001F680 RSpec parallel test runner built on `parallel_tests`,
332
- with incremental summarized output"
331
+ - "turbo_tests2 - \U0001F680 RSpec parallel test runner with incremental summarized
332
+ output"
333
333
  - "--main"
334
334
  - README.md
335
335
  - "--exclude"
@@ -350,8 +350,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
350
350
  - !ruby/object:Gem::Version
351
351
  version: '0'
352
352
  requirements: []
353
- rubygems_version: 4.0.20
353
+ rubygems_version: 4.0.24
354
354
  specification_version: 4
355
- summary: "\U0001F680 RSpec parallel test runner built on `parallel_tests`, with incremental
356
- summarized output"
355
+ summary: "\U0001F680 RSpec parallel test runner with incremental summarized output"
357
356
  test_files: []
metadata.gz.sig CHANGED
@@ -1,5 +1 @@
1
- N�9.…z���
2
- ��f��iNUd00�]c��GnT��h�\h��� N֭!ξ�<�E}�Rs=��]
3
- 铗X���9��$��t��D}��ل&J &��;=\|!�I�ڈ��ɯoc5#-ơ�
4
- �f�z�3�Ű�O��Ğ9���M�†��X ��ur8
5
- �y�a-�������a�RF�0\� �b
1
+ ������܏]�IF�L��u4�sFIfs�_6&NQ!�敧y!����HV��#IDE��P�/U�]������������P����#�%�x�n����