Skip to content

Commit 9b9e8e7

Browse files
committed
Remove unused command for Discourse against Rails head.
1 parent aa7f5d2 commit 9b9e8e7

File tree

3 files changed

+0
-41
lines changed

3 files changed

+0
-41
lines changed

app/jobs/remote_server_job.rb

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -86,23 +86,6 @@ def ruby_releases_discourse(ssh, ruby_version, options)
8686
)
8787
end
8888

89-
def discourse_rails_head_bench(ssh, commit_hash, options)
90-
execute_ssh_commands(ssh,
91-
[
92-
"docker pull rubybench/discourse_rails_head_bench",
93-
"docker run --name discourse_redis -d redis:2.8.19",
94-
"docker run --name discourse_postgres -d postgres:9.3.5",
95-
"docker run --rm --link discourse_postgres:postgres
96-
--link discourse_redis:redis -e \"RAILS_COMMIT_HASH=#{commit_hash}\"
97-
-e \"API_NAME=#{Rails.application.secrets.api_name}\"
98-
-e \"API_PASSWORD=#{Rails.application.secrets.api_password}\"
99-
rubybench/discourse_rails_head_bench".squish,
100-
"docker stop discourse_postgres discourse_redis",
101-
"docker rm discourse_postgres discourse_redis"
102-
]
103-
)
104-
end
105-
10689
def ruby_trunk_discourse(ssh, commit_hash, options)
10790
execute_ssh_commands(ssh,
10891
[

config/initializers/github_event_subscribers.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@
22
RemoteServerJob.perform_later(payload[:commit_sha1], 'ruby_trunk')
33
RemoteServerJob.perform_later(payload[:commit_sha1], 'ruby_trunk_discourse')
44
end
5-
6-
ActiveSupport::Notifications.subscribe('rails') do |name, start, finish, id, payload|
7-
RemoteServerJob.perform_later(payload[:commit_sha1], 'discourse_rails_head_bench')
8-
end

test/jobs/remote_server_job_test.rb

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -78,26 +78,6 @@ class RemoteServerJobTest < ActiveJob::TestCase
7878
RemoteServerJob.new.perform('2.2.0', 'ruby_releases_discourse')
7979
end
8080

81-
test "#perform discourse_rails_head_bench" do
82-
[
83-
"tsp docker pull rubybench/discourse_rails_head_bench",
84-
"tsp docker run --name discourse_redis -d redis:2.8.19",
85-
"tsp docker run --name discourse_postgres -d postgres:9.3.5",
86-
"tsp docker run --rm --link discourse_postgres:postgres
87-
--link discourse_redis:redis -e \"RAILS_COMMIT_HASH=commit_hash\"
88-
-e \"API_NAME=#{Rails.application.secrets.api_name}\"
89-
-e \"API_PASSWORD=#{Rails.application.secrets.api_password}\"
90-
rubybench/discourse_rails_head_bench".squish,
91-
"tsp docker stop discourse_postgres discourse_redis",
92-
"tsp docker rm discourse_postgres discourse_redis"
93-
].each do |command|
94-
95-
@ssh.expects(:exec!).with(command)
96-
end
97-
98-
RemoteServerJob.new.perform('commit_hash', 'discourse_rails_head_bench')
99-
end
100-
10181
test "#perform ruby_trunk_discourse" do
10282
[
10383
"tsp docker pull rubybench/ruby_trunk_discourse",

0 commit comments

Comments
 (0)