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 +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/ask/rails/harness/tools/run_tests.rb +5 -1
- data/lib/ask/rails/harness/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6b7c1f9342c45ef3d4472772717fcc6ff302b35999e74806bd8964510f729f2f
|
|
4
|
+
data.tar.gz: 017c0f1b89629f435bde77c637c96e866caffb3be86f27d99adcf6431cc79cb3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|