ask-rails-harness 0.2.0 → 0.2.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: 3215cf3ae063b9066a65877e5eb501b3daec422ac1a6639a9286b384b2af3e8b
4
- data.tar.gz: ba4b4347b86fd7dd944bfc5ac9b2031140081717721737cb9fcdce51badea17b
3
+ metadata.gz: 6b7c1f9342c45ef3d4472772717fcc6ff302b35999e74806bd8964510f729f2f
4
+ data.tar.gz: 017c0f1b89629f435bde77c637c96e866caffb3be86f27d99adcf6431cc79cb3
5
5
  SHA512:
6
- metadata.gz: 0eac35130da6e2a11713105cf07856c381f540487a3654b7385e1414920671831e568de01eafd8437286bb9537573aa42ca1287a2bfd2c2114c5cbde9ca9a9da
7
- data.tar.gz: 7bb18027c9b38131db8d706fbdb19601449de9444b870441cd31684cb962063b08ddc78fd4f7dcbbcdbab0b977f8f81f5fe94f39ec15d0efd2e240da76278236
6
+ metadata.gz: 4a3c0d99ae4b7f7725365827e4707fc56ca680bcee0fe7d0617c03bc7aa4e8c14039ee858016ad867648e4c5dec545acaec1b1b7934f6b3ed20d72d6a9d122db
7
+ data.tar.gz: 0b9c8b0b65b3baab555bde4c7e938c447b6b0527ea073a0abc3f9179d3ce8836e4f49221b601b20fd95446d33b40571f49f61bc25380baeba2cfe162a087b7bc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## [0.2.1] — 2026-08-10
2
+
3
+ ### Fixed
4
+
5
+ - **`run_tests` strips `RAILS_MAX_THREADS` for spawned test runs** — harness
6
+ servers may run with a deliberately small pool (e.g. `RAILS_MAX_THREADS=1`
7
+ in their MCP config). Without this, the cap leaked into `bin/rails test`
8
+ children, where it would serialize parallel tests on a single connection.
9
+ Test runs now always get the app's normal pool sizes.
10
+
1
11
  ## [0.2.0] — 2026-08-10
2
12
 
3
13
  ### Added
@@ -115,7 +115,11 @@ module Ask
115
115
  end
116
116
 
117
117
  def run(command, env, log_path, timeout)
118
- pid = Process.spawn(env, *command, chdir: rails_root.to_s,
118
+ # The harness server may run with a deliberately small pool
119
+ # (e.g. RAILS_MAX_THREADS=1 in its MCP config). Test runs are a
120
+ # separate concern — let them use the app's normal pool sizes.
121
+ child_env = env.merge("RAILS_MAX_THREADS" => nil)
122
+ pid = Process.spawn(child_env, *command, chdir: rails_root.to_s,
119
123
  out: [log_path.to_s, "w"], err: [:child, :out])
120
124
  status = nil
121
125
  timed_out = false
@@ -3,7 +3,7 @@
3
3
  module Ask
4
4
  module Rails
5
5
  module Harness
6
- VERSION = "0.2.0"
6
+ VERSION = "0.2.1"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ask-rails-harness
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kaka Ruto