@@ -6,24 +6,24 @@ class RemoteServerJobTest < ActiveJob::TestCase
6
6
Net ::SSH . stubs ( :start ) . yields ( @ssh )
7
7
end
8
8
9
- test "#perform ruby_bench " do
9
+ test "#perform ruby_trunk " do
10
10
[
11
- 'tsp docker pull tgxworld/ruby_bench ' ,
11
+ 'tsp docker pull rubybench/ruby_trunk ' ,
12
12
"tsp docker run --rm
13
13
-e \" RUBY_BENCHMARKS=true\"
14
14
-e \" RUBY_MEMORY_BENCHMARKS=false\"
15
15
-e \" RUBY_COMMIT_HASH=commit_hash\"
16
16
-e \" API_NAME=#{ Rails . application . secrets . api_name } \"
17
17
-e \" API_PASSWORD=#{ Rails . application . secrets . api_password } \"
18
18
-e \" INCLUDE_PATTERNS=bm_app_answer,bm_abc\"
19
- tgxworld/ruby_bench " . squish
19
+ rubybench/ruby_trunk " . squish
20
20
] . each do |command |
21
21
22
22
@ssh . expects ( :exec! ) . with ( command )
23
23
end
24
24
25
25
RemoteServerJob . new . perform (
26
- 'commit_hash' , 'ruby_bench ' ,
26
+ 'commit_hash' , 'ruby_trunk ' ,
27
27
{
28
28
ruby_benchmarks : true , ruby_memory_benchmarks : false ,
29
29
include_patterns : 'bm_app_answer,bm_abc'
@@ -33,15 +33,15 @@ class RemoteServerJobTest < ActiveJob::TestCase
33
33
34
34
test "#perform ruby_releases" do
35
35
[
36
- 'tsp docker pull tgxworld /ruby_releases' ,
36
+ 'tsp docker pull rubybench /ruby_releases' ,
37
37
"tsp docker run --rm
38
38
-e \" RUBY_BENCHMARKS=true\"
39
39
-e \" RUBY_MEMORY_BENCHMARKS=false\"
40
40
-e \" RUBY_VERSION=2.2.0\"
41
41
-e \" API_NAME=#{ Rails . application . secrets . api_name } \"
42
42
-e \" API_PASSWORD=#{ Rails . application . secrets . api_password } \"
43
43
-e \" INCLUDE_PATTERNS=bm_app_answer,bm_abc\"
44
- tgxworld /ruby_releases" . squish
44
+ rubybench /ruby_releases" . squish
45
45
] . each do |command |
46
46
47
47
@ssh . expects ( :exec! ) . with ( command )
@@ -58,7 +58,7 @@ class RemoteServerJobTest < ActiveJob::TestCase
58
58
59
59
test "#perform ruby_releases_discourse" do
60
60
[
61
- "tsp docker pull tgxworld /ruby_releases_discourse" ,
61
+ "tsp docker pull rubybench /ruby_releases_discourse" ,
62
62
"tsp docker run --name discourse_redis -d redis:2.8.19" ,
63
63
"tsp docker run --name discourse_postgres -d postgres:9.3.5" ,
64
64
"tsp docker run --rm
@@ -67,7 +67,7 @@ class RemoteServerJobTest < ActiveJob::TestCase
67
67
-e \" RUBY_VERSION=2.2.0\"
68
68
-e \" API_NAME=#{ Rails . application . secrets . api_name } \"
69
69
-e \" API_PASSWORD=#{ Rails . application . secrets . api_password } \"
70
- tgxworld /ruby_releases_discourse" . squish ,
70
+ rubybench /ruby_releases_discourse" . squish ,
71
71
"tsp docker stop discourse_postgres discourse_redis" ,
72
72
"tsp docker rm discourse_postgres discourse_redis"
73
73
] . each do |command |
@@ -80,14 +80,14 @@ class RemoteServerJobTest < ActiveJob::TestCase
80
80
81
81
test "#perform discourse_rails_head_bench" do
82
82
[
83
- "tsp docker pull tgxworld /discourse_rails_head_bench" ,
83
+ "tsp docker pull rubybench /discourse_rails_head_bench" ,
84
84
"tsp docker run --name discourse_redis -d redis:2.8.19" ,
85
85
"tsp docker run --name discourse_postgres -d postgres:9.3.5" ,
86
86
"tsp docker run --rm --link discourse_postgres:postgres
87
87
--link discourse_redis:redis -e \" RAILS_COMMIT_HASH=commit_hash\"
88
88
-e \" API_NAME=#{ Rails . application . secrets . api_name } \"
89
89
-e \" API_PASSWORD=#{ Rails . application . secrets . api_password } \"
90
- tgxworld /discourse_rails_head_bench" . squish ,
90
+ rubybench /discourse_rails_head_bench" . squish ,
91
91
"tsp docker stop discourse_postgres discourse_redis" ,
92
92
"tsp docker rm discourse_postgres discourse_redis"
93
93
] . each do |command |
@@ -98,23 +98,23 @@ class RemoteServerJobTest < ActiveJob::TestCase
98
98
RemoteServerJob . new . perform ( 'commit_hash' , 'discourse_rails_head_bench' )
99
99
end
100
100
101
- test "#perform ruby_bench_discourse " do
101
+ test "#perform ruby_trunk_discourse " do
102
102
[
103
- "tsp docker pull tgxworld/ruby_bench_discourse " ,
103
+ "tsp docker pull rubybench/ruby_trunk_discourse " ,
104
104
"tsp docker run --name discourse_redis -d redis:2.8.19" ,
105
105
"tsp docker run --name discourse_postgres -d postgres:9.3.5" ,
106
106
"tsp docker run --rm --link discourse_postgres:postgres
107
107
--link discourse_redis:redis -e \" RUBY_COMMIT_HASH=commit_hash\"
108
108
-e \" API_NAME=#{ Rails . application . secrets . api_name } \"
109
109
-e \" API_PASSWORD=#{ Rails . application . secrets . api_password } \"
110
- tgxworld/ruby_bench_discourse " . squish ,
110
+ rubybench/ruby_trunk_discourse " . squish ,
111
111
"tsp docker stop discourse_postgres discourse_redis" ,
112
112
"tsp docker rm discourse_postgres discourse_redis"
113
113
] . each do |command |
114
114
115
115
@ssh . expects ( :exec! ) . with ( command )
116
116
end
117
117
118
- RemoteServerJob . new . perform ( 'commit_hash' , 'ruby_bench_discourse ' )
118
+ RemoteServerJob . new . perform ( 'commit_hash' , 'ruby_trunk_discourse ' )
119
119
end
120
120
end
0 commit comments