turbo_tests2 4.0.0 → 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: 7e14a9905e357ba16f5489987c5fc3638078587c35f232443698a02961cacd21
4
- data.tar.gz: 9ea2481ca612f26d150e8514f6ccf12a758d49080a6ddd545a05f558a76dfe9a
3
+ metadata.gz: 24b1f07c3142af3e9771f015bd59d1c52537adfd8c2aa397265c97fa4778c6ec
4
+ data.tar.gz: 1fb164c9ec4ab7fa00c56ff3c9485f533b8fe6ebd55e7ed01a7cfeac56b145d7
5
5
  SHA512:
6
- metadata.gz: 86f70203dd5f5ea3824dbc3ef6acae6b4f469ec4b2c7798e4e6e0c847316a51fb7883a61885df45acc09b01d26373416c381b5632b82e9c27c1dd50d5be03bf5
7
- data.tar.gz: 6ae7d9b0015581bda3e25ee998593becab94daffc2806039e52dc22b73bceb57d3117b95be595380ee9c9bd4db427321aa47cc8971600890256d63e0891fa6f0
6
+ metadata.gz: cc69a66019574a06ca7042588bb0a76fe994daec0ef192c1cf020e098e5d65f3b48f8ec47f6c90c2fd7cce4a4f78b19cd1fd8fdfcd5db42adf420c509c5cdbd6
7
+ data.tar.gz: 7e7e810df18c73105b82dc78459b8083950fda3578036a4f9d98caa8176a385eb6171d90a42c5b779b7486397fdff2f9d6bf663106af29243dfaf87ddf3360d6
checksums.yaml.gz.sig CHANGED
@@ -1,4 +1 @@
1
- �e7��^a����*̄5:����� �l�j��t��B,��Z ���:vS06~"B$��I�S��+���o'���
2
- �0�Yƶw�+Z<[ �r�b���+����F�&x+w�p9�cqd� �����V<?#��3�Jp�'PsE���:���1B/(
3
- hC@�p�~��h����1V�B�� ��u4��pmJ�&<��(�;��Mm����;M #xޝ���t��4���>��$E���l.��e�A|���
4
- �ٶ���O|�J_P�$x5k�zJ��]�*b�
1
+ �����nr��J}W��y�ޱf�_��h����<�A��%��Z�������~���YH�`pn��T�^�˰U�-;6vQ��0E��U�[#���3%�ϼ<+?8I�1W������QWm����.�����)9h�QQ�P��c�vo��µy���ao]�r�\�����Q��Ds*M�0�,@���"H~���K�nФp]ʹw�q-�_�WNt�Y(G�j�'#��u���U��]6�v�CDߦ�6� ��jVS�y�Μ�����+��h��j��32�bR--�%o�Q�=޼B@I�h�Jk�r�;T��83�b��ɝ���=0u���Y
data/CHANGELOG.md CHANGED
@@ -30,6 +30,33 @@ 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
+
33
60
  ## [4.0.0] - 2026-10-15
34
61
 
35
62
  - TAG: [v4.0.0][4.0.0t]
@@ -791,7 +818,9 @@ Please file a bug if you notice a violation of semantic versioning.
791
818
 
792
819
  - Initial release
793
820
 
794
- [Unreleased]: https://github.com/galtzo-floss/turbo_tests2/compare/v4.0.0...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
795
824
  [4.0.0]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.2.17...v4.0.0
796
825
  [4.0.0t]: https://github.com/galtzo-floss/turbo_tests2/releases/tag/v4.0.0
797
826
  [3.2.17]: https://github.com/galtzo-floss/turbo_tests2/compare/v3.2.16...v3.2.17
data/README.md CHANGED
@@ -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
 
@@ -562,19 +529,18 @@ We welcome both individual and corporate sponsors! We also offer a
562
529
  wide array of funding channels to account for your preferences.
563
530
  Currently, [Open Collective][🖇osc] is our preferred funding platform.
564
531
 
532
+ ### Corporate Sponsorship
533
+
565
534
  **If you're working in a company that's making significant use of galtzo-floss tools we'd
566
535
  appreciate it if you suggest to your company to become a galtzo-floss sponsor.**
567
536
 
537
+ ### Individual Support
538
+
568
539
  You can support the development of galtzo-floss tools via
569
540
  [GitHub Sponsors][🖇sponsor],
570
541
  [Liberapay][⛳liberapay],
571
- [PayPal][🖇paypal],
572
- [Open Collective][🖇osc]
573
- and [Tidelift][🏙️entsup-tidelift].
574
-
575
- | 📍 NOTE |
576
- |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
577
- | 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].
578
544
 
579
545
  ### Open Collective for Individuals
580
546
 
@@ -661,7 +627,7 @@ For most applications, prefer the [Pessimistic Version Constraint][📌pvc] with
661
627
  For example:
662
628
 
663
629
  ```ruby
664
- spec.add_dependency("turbo_tests2", "~> 3.0")
630
+ spec.add_dependency("turbo_tests2", "~> 4.0")
665
631
  ```
666
632
 
667
633
  <details markdown="1">
@@ -800,9 +766,6 @@ Thanks for RTFM. ☺️
800
766
  [👨🏼‍🏫expsup-upwork-img]: https://img.shields.io/badge/UpWork-13544E?style=for-the-badge&logo=Upwork&logoColor=white
801
767
  [👨🏼‍🏫expsup-codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
802
768
  [👨🏼‍🏫expsup-codementor-img]: https://img.shields.io/badge/CodeMentor-Get_Help-1abc9c?style=for-the-badge&logo=CodeMentor&logoColor=white
803
- [🏙️entsup-tidelift]: https://tidelift.com/subscription/pkg/rubygems-turbo_tests2?utm_source=rubygems-turbo_tests2&utm_medium=referral&utm_campaign=readme
804
- [🏙️entsup-tidelift-img]: https://img.shields.io/badge/Tidelift_and_Sonar-Enterprise_Support-FD3456?style=for-the-badge&logo=sonar&logoColor=white
805
- [🏙️entsup-tidelift-sonar]: https://blog.tidelift.com/tidelift-joins-sonar
806
769
  [💁🏼‍♂️peterboling]: http://www.peterboling.com
807
770
  [🚂railsbling]: http://www.railsbling.com
808
771
  [📜src-gl-img]: https://img.shields.io/badge/GitLab-FBA326?style=for-the-badge&logo=Gitlab&logoColor=orange
@@ -914,7 +877,7 @@ Thanks for RTFM. ☺️
914
877
  [📌gitmoji]: https://gitmoji.dev
915
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
916
879
  [🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
917
- [🧮kloc-img]: https://img.shields.io/badge/KLOC-1.077-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
918
881
  [🔐security]: https://github.com/galtzo-floss/turbo_tests2/blob/main/SECURITY.md
919
882
  [🔐security-img]: https://img.shields.io/badge/security-policy-259D6C.svg?style=flat
920
883
  [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
@@ -944,5 +907,5 @@ Thanks for RTFM. ☺️
944
907
  | Homepage | https://github.com/galtzo-floss/turbo_tests2 |
945
908
  | Source | https://github.com/galtzo-floss/turbo_tests2 |
946
909
  | License | `MIT` |
947
- | 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 |
948
911
  <!-- kettle-jem:metadata:end -->
@@ -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
  )
@@ -524,7 +524,7 @@ module TurboTests
524
524
  stdout.each_line do |line|
525
525
  parse_worker_stdout_line(line, output_id, process_id)
526
526
  end
527
- rescue IOError
527
+ rescue IOError, SystemCallError
528
528
  nil
529
529
  end
530
530
 
@@ -555,9 +555,18 @@ module TurboTests
555
555
  # is a deduped fallback for a stdout reader that was force-stopped
556
556
  # before reaching EOF, and being in ensure also prevents a hang if
557
557
  # wait_thr.value raises.
558
- drain_worker_readers(stdout_thread, stdout, stderr_thread, stderr)
559
- @messages << {type: "exit", process_id: process_id}
560
- 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
561
570
  end
562
571
  end
563
572
  # rubocop:enable ThreadSafety/NewThread
@@ -592,7 +601,10 @@ module TurboTests
592
601
  rescue EOFError
593
602
  close_io(src)
594
603
  break
595
- 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.
596
608
  break
597
609
  else
598
610
  append_worker_output(process_id, stream, msg)
@@ -836,9 +848,73 @@ module TurboTests
836
848
  (@tests_in_groups || []).each_with_index do |group, idx|
837
849
  lines << "group #{idx + 1}: #{Array(group).join(", ")}" unless group.nil?
838
850
  end
851
+ lines.concat(worker_progress_lines)
839
852
  lines.join("\n")
840
853
  end
841
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
+
842
918
  def tracked_pids
843
919
  path = parallel_pid_file_path
844
920
  return [] unless path && File.file?(path)
@@ -880,6 +956,7 @@ module TurboTests
880
956
  warned_silence = false
881
957
  loop do
882
958
  message = pop_message_with_watchdog
959
+ record_worker_progress(message)
883
960
  unless warned_silence
884
961
  silence = Process.clock_gettime(Process::CLOCK_MONOTONIC) - @last_message_monotonic
885
962
  if silence >= 900
@@ -4,7 +4,7 @@ module TurboTests
4
4
  # Version namespace for this gem.
5
5
  module Version
6
6
  # Current gem version.
7
- VERSION = "4.0.0"
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.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: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Illia
@@ -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,7 +283,7 @@ dependencies:
283
283
  version: '2.0'
284
284
  - - ">="
285
285
  - !ruby/object:Gem::Version
286
- version: 2.0.15
286
+ version: 2.0.16
287
287
  description: "\U0001F680 turbo_tests2` is an RSpec parallel test runner. It uses runtime_groups
288
288
  for process counts, pid bookkeeping, file grouping, and runtime balancing, and replaces
289
289
  interleaved worker output with incremental summarized RSpec reporting. Source code
@@ -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/v4.0.0
320
- changelog_uri: https://github.com/galtzo-floss/turbo_tests2/blob/v4.0.0/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/4.0.0
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
@@ -350,7 +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
355
  summary: "\U0001F680 RSpec parallel test runner with incremental summarized output"
356
356
  test_files: []
metadata.gz.sig CHANGED
Binary file