Skip to content

Commit ece1f30

Browse files
committed
⏪️ revert: downgrade JRuby fixture to Rack 2.x for performance
Rack 3.x causes JRuby integration tests to exceed CloudFoundry's 180s startup timeout. Reverting to Rack 2.x significantly improves startup time: - Rack: 3.2.4 → 2.2.21 - Sinatra: 4.2.1 → 3.2.0 - rack-protection: 4.2.1 → 3.2.0 - rackup: 2.3.1 → 1.0.1 - Remove: rack-session, logger (not needed with Rack 2) JRuby has slower JVM startup and warmup with Rack 3's increased overhead.
1 parent 5e0e1d6 commit ece1f30

12 files changed

Lines changed: 11 additions & 17 deletions

fixtures/default/sinatra_jruby/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ source 'https://rubygems.org'
33
ruby '3.1.7', :engine => 'jruby', :engine_version => '9.4.14.0'
44

55
gem 'rackup'
6-
gem 'sinatra'
6+
gem 'sinatra', '~> 3.0'
77
gem 'webrick'

fixtures/default/sinatra_jruby/Gemfile.lock

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,20 @@ GEM
22
remote: https://rubygems.org/
33
specs:
44
base64 (0.3.0)
5-
logger (1.7.0)
65
mustermann (3.0.4)
76
ruby2_keywords (~> 0.0.1)
8-
rack (3.2.4)
9-
rack-protection (4.2.1)
7+
rack (2.2.21)
8+
rack-protection (3.2.0)
109
base64 (>= 0.1.0)
11-
logger (>= 1.6.0)
12-
rack (>= 3.0.0, < 4)
13-
rack-session (2.1.1)
14-
base64 (>= 0.1.0)
15-
rack (>= 3.0.0)
16-
rackup (2.3.1)
17-
rack (>= 3)
10+
rack (~> 2.2, >= 2.2.4)
11+
rackup (1.0.1)
12+
rack (< 3)
13+
webrick
1814
ruby2_keywords (0.0.5)
19-
sinatra (4.2.1)
20-
logger (>= 1.6.0)
15+
sinatra (3.2.0)
2116
mustermann (~> 3.0)
22-
rack (>= 3.0.0, < 4)
23-
rack-protection (= 4.2.1)
24-
rack-session (>= 2.0.0, < 3)
17+
rack (~> 2.2, >= 2.2.4)
18+
rack-protection (= 3.2.0)
2519
tilt (~> 2.0)
2620
tilt (2.7.0)
2721
webrick (1.9.2)
@@ -34,7 +28,7 @@ PLATFORMS
3428

3529
DEPENDENCIES
3630
rackup
37-
sinatra
31+
sinatra (~> 3.0)
3832
webrick
3933

4034
RUBY VERSION
-16.5 KB
Binary file not shown.
152 KB
Binary file not shown.
-116 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
-15.5 KB
Binary file not shown.
5.5 KB
Binary file not shown.
-17.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)