Commit 168266e
Load vendored persistent before activating Artifice in-process
Artifice replaces Gem::Net::HTTP, so when bundler/vendored_persistent
gets lazily required while Artifice is active, the vendored Persistent
classes are defined under the Artifice replacement. After deactivation
Gem::Net::HTTP::Persistent becomes unresolvable, and the vendored
connection_pool fork hook then raises NameError on any later
Process.fork in the same rspec worker, failing worker_spec whenever it
shares a process with parallel_installer_spec. Load it up front like
gem_remote_fetcher_spec already does, before requiring
support/artifice/compact_index, which activates Artifice on load.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent ae0296a commit 168266e
2 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
101 | 111 | | |
102 | 112 | | |
103 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
12 | 20 | | |
13 | 21 | | |
14 | 22 | | |
| |||
0 commit comments