shipit-engine 0.33.0 → 0.34.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -2
  3. data/app/assets/stylesheets/_pages/_deploy.scss +0 -2
  4. data/app/controllers/shipit/api/ccmenu_controller.rb +1 -1
  5. data/app/controllers/shipit/api/deploys_controller.rb +2 -0
  6. data/app/controllers/shipit/api/rollbacks_controller.rb +2 -1
  7. data/app/controllers/shipit/api/stacks_controller.rb +1 -0
  8. data/app/controllers/shipit/deploys_controller.rb +1 -1
  9. data/app/controllers/shipit/stacks_controller.rb +2 -2
  10. data/app/controllers/shipit/tasks_controller.rb +2 -2
  11. data/app/controllers/shipit/webhooks_controller.rb +23 -4
  12. data/app/helpers/shipit/shipit_helper.rb +0 -1
  13. data/app/jobs/shipit/deliver_hook_job.rb +1 -1
  14. data/app/jobs/shipit/github_sync_job.rb +13 -9
  15. data/app/jobs/shipit/update_github_last_deployed_ref_job.rb +1 -1
  16. data/app/models/shipit/anonymous_user.rb +6 -2
  17. data/app/models/shipit/check_run.rb +36 -0
  18. data/app/models/shipit/commit.rb +20 -9
  19. data/app/models/shipit/commit_checks.rb +13 -13
  20. data/app/models/shipit/commit_deployment.rb +3 -3
  21. data/app/models/shipit/commit_deployment_status.rb +3 -3
  22. data/app/models/shipit/deploy.rb +16 -11
  23. data/app/models/shipit/deploy_spec/lerna_discovery.rb +12 -4
  24. data/app/models/shipit/duration.rb +2 -0
  25. data/app/models/shipit/hook.rb +26 -2
  26. data/app/models/shipit/merge_request.rb +9 -7
  27. data/app/models/shipit/pull_request.rb +1 -1
  28. data/app/models/shipit/release_status.rb +1 -1
  29. data/app/models/shipit/repository.rb +9 -3
  30. data/app/models/shipit/review_stack.rb +16 -2
  31. data/app/models/shipit/stack.rb +59 -25
  32. data/app/models/shipit/status/group.rb +1 -1
  33. data/app/models/shipit/task.rb +6 -2
  34. data/app/models/shipit/task_execution_strategy/default.rb +4 -5
  35. data/app/models/shipit/team.rb +4 -2
  36. data/app/models/shipit/user.rb +4 -0
  37. data/app/models/shipit/webhooks/handlers/pull_request/review_stack_adapter.rb +1 -1
  38. data/app/models/shipit/webhooks/handlers/push_handler.rb +4 -1
  39. data/app/serializers/shipit/merge_request_serializer.rb +1 -1
  40. data/app/validators/subset_validator.rb +1 -1
  41. data/app/views/layouts/merge_status.html.erb +1 -1
  42. data/app/views/shipit/stacks/_banners.html.erb +2 -1
  43. data/app/views/shipit/stacks/new.html.erb +1 -1
  44. data/config/secrets.development.example.yml +24 -0
  45. data/config/secrets.development.shopify.yml +20 -9
  46. data/db/migrate/20210325194053_remove_stacks_branch_default.rb +5 -0
  47. data/db/migrate/20210504200438_add_github_updated_at_to_check_runs.rb +5 -0
  48. data/lib/shipit.rb +39 -15
  49. data/lib/shipit/command.rb +7 -6
  50. data/lib/shipit/commands.rb +9 -2
  51. data/lib/shipit/engine.rb +2 -0
  52. data/lib/shipit/flock.rb +8 -1
  53. data/lib/shipit/github_app.rb +7 -5
  54. data/lib/shipit/octokit_iterator.rb +3 -3
  55. data/lib/shipit/simple_message_verifier.rb +2 -2
  56. data/lib/shipit/stack_commands.rb +28 -4
  57. data/lib/shipit/task_commands.rb +6 -0
  58. data/lib/shipit/version.rb +1 -1
  59. data/lib/snippets/publish-lerna-independent-packages +35 -34
  60. data/lib/snippets/publish-lerna-independent-packages-legacy +39 -0
  61. data/test/controllers/api/ccmenu_controller_test.rb +1 -1
  62. data/test/controllers/api/deploys_controller_test.rb +17 -0
  63. data/test/controllers/api/stacks_controller_test.rb +21 -7
  64. data/test/controllers/webhooks_controller_test.rb +26 -11
  65. data/test/dummy/app/assets/config/manifest.js +3 -0
  66. data/test/dummy/config/application.rb +1 -1
  67. data/test/dummy/config/database.yml +9 -0
  68. data/test/dummy/config/environments/development.rb +1 -1
  69. data/test/dummy/config/secrets_double_github_app.yml +79 -0
  70. data/test/dummy/db/schema.rb +5 -4
  71. data/test/dummy/db/seeds.rb +1 -0
  72. data/test/fixtures/payloads/check_suite_master.json +2 -30
  73. data/test/fixtures/payloads/push_master.json +1 -1
  74. data/test/fixtures/payloads/push_not_master.json +1 -1
  75. data/test/fixtures/shipit/commits.yml +2 -2
  76. data/test/fixtures/shipit/hooks.yml +1 -0
  77. data/test/fixtures/shipit/tasks.yml +1 -1
  78. data/test/helpers/json_helper.rb +5 -1
  79. data/test/jobs/github_sync_job_test.rb +2 -1
  80. data/test/models/commit_deployment_status_test.rb +3 -3
  81. data/test/models/commits_test.rb +2 -0
  82. data/test/models/deploy_spec_test.rb +7 -0
  83. data/test/models/deploys_test.rb +18 -0
  84. data/test/models/hook_test.rb +30 -1
  85. data/test/models/merge_request_test.rb +19 -4
  86. data/test/models/shipit/check_run_test.rb +124 -5
  87. data/test/models/shipit/review_stack_test.rb +38 -6
  88. data/test/models/shipit/stacks_test.rb +42 -4
  89. data/test/models/shipit/webhooks/handlers/pull_request/review_stack_adapter_test.rb +24 -0
  90. data/test/models/tasks_test.rb +22 -0
  91. data/test/test_helper.rb +15 -0
  92. data/test/unit/anonymous_user_serializer_test.rb +1 -1
  93. data/test/unit/command_test.rb +5 -0
  94. data/test/unit/commit_serializer_test.rb +1 -1
  95. data/test/unit/deploy_commands_test.rb +70 -14
  96. data/test/unit/deploy_serializer_test.rb +1 -1
  97. data/test/unit/github_app_test.rb +2 -3
  98. data/test/unit/github_apps_test.rb +416 -0
  99. data/test/unit/shipit_deployment_checks_test.rb +77 -0
  100. data/test/unit/shipit_test.rb +14 -0
  101. data/test/unit/user_serializer_test.rb +1 -1
  102. metadata +202 -191
@@ -0,0 +1,77 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'test_helper'
4
+
5
+ module Shipit
6
+ class ShipitDeploymentChecksTest < ActiveSupport::TestCase
7
+ setup do
8
+ class FakeDeploymentChecks
9
+ def self.call(_stack)
10
+ true
11
+ end
12
+ end
13
+ end
14
+
15
+ teardown do
16
+ Shipit.deployment_checks = nil
17
+
18
+ Object.send(:remove_const, :FakeDeploymentChecks) if Object.const_defined?(:FakeDeploymentChecks)
19
+ end
20
+
21
+ test "allows registration of deployment checks" do
22
+ deployment_checks = FakeDeploymentChecks
23
+
24
+ Shipit.deployment_checks = deployment_checks
25
+
26
+ assert_equal(
27
+ deployment_checks,
28
+ Shipit.deployment_checks
29
+ )
30
+ end
31
+
32
+ test "allows deployments and continuous delivery when checks are not present" do
33
+ stack = shipit_stacks(:review_stack)
34
+ stack.update(continuous_deployment: true)
35
+
36
+ Shipit.deployment_checks = nil
37
+
38
+ assert stack.deployable?
39
+
40
+ stack.trigger_continuous_delivery
41
+
42
+ refute stack.continuous_delivery_delayed?
43
+ end
44
+
45
+ test "allows deployments and continuous delivery when checks pass" do
46
+ stack = shipit_stacks(:review_stack)
47
+ stack.update(continuous_deployment: true)
48
+
49
+ Shipit.deployment_checks = FakeDeploymentChecks
50
+
51
+ assert stack.deployable?
52
+
53
+ stack.trigger_continuous_delivery
54
+
55
+ refute stack.continuous_delivery_delayed?
56
+ end
57
+
58
+ test "prevents deployments and delays continuous delivery when checks fail" do
59
+ class FakeDeploymentChecks
60
+ def self.call(_stack)
61
+ false
62
+ end
63
+ end
64
+
65
+ stack = shipit_stacks(:review_stack)
66
+ stack.update(continuous_deployment: true)
67
+
68
+ Shipit.deployment_checks = FakeDeploymentChecks
69
+
70
+ refute stack.deployable?
71
+
72
+ stack.trigger_continuous_delivery
73
+
74
+ assert stack.continuous_delivery_delayed?
75
+ end
76
+ end
77
+ end
@@ -7,6 +7,20 @@ module Shipit
7
7
  Shipit.instance_variables.each(&Shipit.method(:remove_instance_variable))
8
8
  end
9
9
 
10
+ test ".github uses indifferent access to search through the Github applications" do
11
+ secrets = ActiveSupport::OrderedOptions.new
12
+ secrets.merge!(Rails::Secrets.parse(['test/dummy/config/secrets.yml'], env: Rails.env))
13
+ secrets.merge!(YAML.load_file('test/dummy/config/secrets_double_github_app.yml'))
14
+ secrets.deep_symbolize_keys!
15
+ Shipit.stubs(:secrets).returns(secrets)
16
+ assert_instance_of(Shipit::GitHubApp, Shipit.github(organization: 'OrgOne'))
17
+ assert_instance_of(Shipit::GitHubApp, Shipit.github(organization: :OrgOne))
18
+ assert_instance_of(Shipit::GitHubApp, Shipit.github(organization: 'orgone'))
19
+ assert_instance_of(Shipit::GitHubApp, Shipit.github(organization: :orgone))
20
+ assert_instance_of(Shipit::GitHubApp, Shipit.github(organization: :OrgTwo))
21
+ Shipit.unstub(:secrets)
22
+ end
23
+
10
24
  test ".github_teams returns an empty array if there's no team" do
11
25
  assert_equal([], Shipit.github_teams)
12
26
  end
@@ -8,7 +8,7 @@ module Shipit
8
8
  serializer = ActiveModel::Serializer.serializer_for(user)
9
9
  assert_equal UserSerializer, serializer
10
10
  serialized = serializer.new(user).to_json
11
- assert_json("anonymous", false, document: serialized)
11
+ assert_json_document(serialized, "anonymous", false)
12
12
  end
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shipit-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.0
4
+ version: 0.34.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Boussier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-12 00:00:00.000000000 Z
11
+ date: 2021-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: active_model_serializers
@@ -100,28 +100,28 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '0.15'
103
+ version: '1.3'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '0.15'
110
+ version: '1.3'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: faraday-http-cache
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.2.2
117
+ version: '2.2'
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: 1.2.2
124
+ version: '2.2'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: gemoji
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -142,42 +142,42 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 4.1.0
145
+ version: '4.4'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: 4.1.0
152
+ version: '4.4'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: lodash-rails
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 4.6.1
159
+ version: '4.17'
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
- version: 4.6.1
166
+ version: '4.17'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: octokit
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: '4.15'
173
+ version: '4.20'
174
174
  type: :runtime
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: '4.15'
180
+ version: '4.20'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: omniauth-github
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -212,14 +212,14 @@ dependencies:
212
212
  requirements:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: 6.0.0
215
+ version: 6.1.0
216
216
  type: :runtime
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - "~>"
221
221
  - !ruby/object:Gem::Version
222
- version: 6.0.0
222
+ version: 6.1.0
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: rails-timeago
225
225
  requirement: !ruby/object:Gem::Requirement
@@ -262,34 +262,20 @@ dependencies:
262
262
  - - ">="
263
263
  - !ruby/object:Gem::Version
264
264
  version: '0'
265
- - !ruby/object:Gem::Dependency
266
- name: redis-namespace
267
- requirement: !ruby/object:Gem::Requirement
268
- requirements:
269
- - - "~>"
270
- - !ruby/object:Gem::Version
271
- version: 1.6.0
272
- type: :runtime
273
- prerelease: false
274
- version_requirements: !ruby/object:Gem::Requirement
275
- requirements:
276
- - - "~>"
277
- - !ruby/object:Gem::Version
278
- version: 1.6.0
279
265
  - !ruby/object:Gem::Dependency
280
266
  name: redis-objects
281
267
  requirement: !ruby/object:Gem::Requirement
282
268
  requirements:
283
269
  - - "~>"
284
270
  - !ruby/object:Gem::Version
285
- version: 1.4.3
271
+ version: '1.5'
286
272
  type: :runtime
287
273
  prerelease: false
288
274
  version_requirements: !ruby/object:Gem::Requirement
289
275
  requirements:
290
276
  - - "~>"
291
277
  - !ruby/object:Gem::Version
292
- version: 1.4.3
278
+ version: '1.5'
293
279
  - !ruby/object:Gem::Dependency
294
280
  name: responders
295
281
  requirement: !ruby/object:Gem::Requirement
@@ -322,14 +308,14 @@ dependencies:
322
308
  name: sass-rails
323
309
  requirement: !ruby/object:Gem::Requirement
324
310
  requirements:
325
- - - "~>"
311
+ - - ">="
326
312
  - !ruby/object:Gem::Version
327
313
  version: '5.0'
328
314
  type: :runtime
329
315
  prerelease: false
330
316
  version_requirements: !ruby/object:Gem::Requirement
331
317
  requirements:
332
- - - "~>"
318
+ - - ">="
333
319
  - !ruby/object:Gem::Version
334
320
  version: '5.0'
335
321
  - !ruby/object:Gem::Dependency
@@ -360,20 +346,34 @@ dependencies:
360
346
  - - ">="
361
347
  - !ruby/object:Gem::Version
362
348
  version: 2.3.2
349
+ - !ruby/object:Gem::Dependency
350
+ name: sprockets
351
+ requirement: !ruby/object:Gem::Requirement
352
+ requirements:
353
+ - - "<"
354
+ - !ruby/object:Gem::Version
355
+ version: '4'
356
+ type: :runtime
357
+ prerelease: false
358
+ version_requirements: !ruby/object:Gem::Requirement
359
+ requirements:
360
+ - - "<"
361
+ - !ruby/object:Gem::Version
362
+ version: '4'
363
363
  - !ruby/object:Gem::Dependency
364
364
  name: state_machines-activerecord
365
365
  requirement: !ruby/object:Gem::Requirement
366
366
  requirements:
367
367
  - - "~>"
368
368
  - !ruby/object:Gem::Version
369
- version: 0.6.0
369
+ version: 0.8.0
370
370
  type: :runtime
371
371
  prerelease: false
372
372
  version_requirements: !ruby/object:Gem::Requirement
373
373
  requirements:
374
374
  - - "~>"
375
375
  - !ruby/object:Gem::Version
376
- version: 0.6.0
376
+ version: 0.8.0
377
377
  - !ruby/object:Gem::Dependency
378
378
  name: validate_url
379
379
  requirement: !ruby/object:Gem::Requirement
@@ -766,6 +766,8 @@ files:
766
766
  - db/migrate/20201001125502_add_provision_pr_stacks_flag_to_repositories.rb
767
767
  - db/migrate/20201008145809_add_retry_attempt_to_tasks.rb
768
768
  - db/migrate/20201008152744_add_max_retries_to_tasks.rb
769
+ - db/migrate/20210325194053_remove_stacks_branch_default.rb
770
+ - db/migrate/20210504200438_add_github_updated_at_to_check_runs.rb
769
771
  - lib/shipit-engine.rb
770
772
  - lib/shipit.rb
771
773
  - lib/shipit/cast_value.rb
@@ -805,6 +807,7 @@ files:
805
807
  - lib/snippets/git-askpass
806
808
  - lib/snippets/misconfigured-npm-publish-config
807
809
  - lib/snippets/publish-lerna-independent-packages
810
+ - lib/snippets/publish-lerna-independent-packages-legacy
808
811
  - lib/snippets/push-to-heroku
809
812
  - lib/snippets/release-gem
810
813
  - lib/tasks/cron.rake
@@ -839,6 +842,7 @@ files:
839
842
  - test/controllers/tasks_controller_test.rb
840
843
  - test/controllers/webhooks_controller_test.rb
841
844
  - test/dummy/Rakefile
845
+ - test/dummy/app/assets/config/manifest.js
842
846
  - test/dummy/app/assets/javascripts/application.js
843
847
  - test/dummy/app/assets/stylesheets/application.css
844
848
  - test/dummy/app/controllers/application_controller.rb
@@ -870,6 +874,7 @@ files:
870
874
  - test/dummy/config/locales/en.yml
871
875
  - test/dummy/config/routes.rb
872
876
  - test/dummy/config/secrets.yml
877
+ - test/dummy/config/secrets_double_github_app.yml
873
878
  - test/dummy/db/schema.rb
874
879
  - test/dummy/db/seeds.rb
875
880
  - test/dummy/public/404.html
@@ -994,9 +999,11 @@ files:
994
999
  - test/unit/deploy_serializer_test.rb
995
1000
  - test/unit/environment_variables_test.rb
996
1001
  - test/unit/github_app_test.rb
1002
+ - test/unit/github_apps_test.rb
997
1003
  - test/unit/github_url_helper_test.rb
998
1004
  - test/unit/line_buffer_test.rb
999
1005
  - test/unit/rollback_commands_test.rb
1006
+ - test/unit/shipit_deployment_checks_test.rb
1000
1007
  - test/unit/shipit_helper_test.rb
1001
1008
  - test/unit/shipit_task_execution_strategy_test.rb
1002
1009
  - test/unit/shipit_test.rb
@@ -1028,199 +1035,203 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1028
1035
  - !ruby/object:Gem::Version
1029
1036
  version: '0'
1030
1037
  requirements: []
1031
- rubygems_version: 3.0.3
1038
+ rubygems_version: 3.2.20
1032
1039
  signing_key:
1033
1040
  specification_version: 4
1034
1041
  summary: Application deployment software
1035
1042
  test_files:
1036
- - test/jobs/deliver_hook_job_test.rb
1037
- - test/jobs/chunk_rollup_job_test.rb
1038
- - test/jobs/cache_deploy_spec_job_test.rb
1039
- - test/jobs/mark_deploy_healthy_job_test.rb
1043
+ - test/jobs/reap_dead_tasks_job_test.rb
1040
1044
  - test/jobs/fetch_commit_stats_job_test.rb
1041
- - test/jobs/purge_old_deliveries_job_test.rb
1042
- - test/jobs/perform_task_job_test.rb
1045
+ - test/jobs/emit_event_job_test.rb
1046
+ - test/jobs/github_sync_job_test.rb
1043
1047
  - test/jobs/unique_job_test.rb
1044
- - test/jobs/destroy_repository_job_test.rb
1048
+ - test/jobs/cache_deploy_spec_job_test.rb
1045
1049
  - test/jobs/destroy_stack_job_test.rb
1046
- - test/jobs/update_github_last_deployed_ref_job_test.rb
1047
- - test/jobs/refresh_status_job_test.rb
1048
- - test/jobs/github_sync_job_test.rb
1049
- - test/jobs/reap_dead_tasks_job_test.rb
1050
+ - test/jobs/perform_task_job_test.rb
1050
1051
  - test/jobs/refresh_github_user_job_test.rb
1052
+ - test/jobs/mark_deploy_healthy_job_test.rb
1053
+ - test/jobs/purge_old_deliveries_job_test.rb
1051
1054
  - test/jobs/process_merge_requests_job_test.rb
1055
+ - test/jobs/chunk_rollup_job_test.rb
1056
+ - test/jobs/destroy_repository_job_test.rb
1057
+ - test/jobs/refresh_status_job_test.rb
1052
1058
  - test/jobs/fetch_deployed_revision_job_test.rb
1053
- - test/jobs/emit_event_job_test.rb
1054
- - test/lib/shipit/deploy_commands_test.rb
1055
- - test/lib/shipit/task_commands_test.rb
1056
- - test/unit/shipit_helper_test.rb
1059
+ - test/jobs/update_github_last_deployed_ref_job_test.rb
1060
+ - test/jobs/deliver_hook_job_test.rb
1061
+ - test/middleware/same_site_cookie_middleware_test.rb
1062
+ - test/unit/commands_test.rb
1063
+ - test/unit/github_url_helper_test.rb
1057
1064
  - test/unit/shipit_test.rb
1065
+ - test/unit/deploy_commands_test.rb
1066
+ - test/unit/shipit_deployment_checks_test.rb
1058
1067
  - test/unit/github_app_test.rb
1059
- - test/unit/rollback_commands_test.rb
1060
- - test/unit/command_test.rb
1061
- - test/unit/variable_definition_test.rb
1068
+ - test/unit/shipit_task_execution_strategy_test.rb
1062
1069
  - test/unit/csv_serializer_test.rb
1063
- - test/unit/line_buffer_test.rb
1070
+ - test/unit/github_apps_test.rb
1071
+ - test/unit/command_test.rb
1072
+ - test/unit/anonymous_user_serializer_test.rb
1064
1073
  - test/unit/environment_variables_test.rb
1074
+ - test/unit/line_buffer_test.rb
1075
+ - test/unit/shipit_helper_test.rb
1076
+ - test/unit/deploy_serializer_test.rb
1077
+ - test/unit/variable_definition_test.rb
1065
1078
  - test/unit/user_serializer_test.rb
1066
- - test/unit/github_url_helper_test.rb
1067
- - test/unit/commands_test.rb
1068
- - test/unit/anonymous_user_serializer_test.rb
1069
- - test/unit/deploy_commands_test.rb
1070
- - test/unit/shipit_task_execution_strategy_test.rb
1079
+ - test/unit/rollback_commands_test.rb
1071
1080
  - test/unit/commit_serializer_test.rb
1072
- - test/unit/deploy_serializer_test.rb
1073
- - test/fixtures/payloads/push_not_master.json
1074
- - test/fixtures/payloads/pull_request_opened.json
1075
- - test/fixtures/payloads/pull_request_assigned.json
1076
- - test/fixtures/payloads/pull_request_closed.json
1077
- - test/fixtures/payloads/pull_request_unlabeled.json
1078
- - test/fixtures/payloads/pull_request_reopened.json
1079
- - test/fixtures/payloads/push_master.json
1080
- - test/fixtures/payloads/provision_disabled_pull_request.json
1081
- - test/fixtures/payloads/status_master.json
1082
- - test/fixtures/payloads/check_suite_master.json
1083
- - test/fixtures/payloads/pull_request_labeled.json
1084
- - test/fixtures/payloads/pull_request_with_no_repo.json
1085
- - test/fixtures/payloads/invalid_pull_request.json
1086
- - test/fixtures/timeout
1087
- - test/fixtures/shipit/tasks.yml
1088
- - test/fixtures/shipit/teams.yml
1089
- - test/fixtures/shipit/release_statuses.yml
1090
- - test/fixtures/shipit/deliveries.yml
1091
- - test/fixtures/shipit/commit_deployments.yml
1092
- - test/fixtures/shipit/commits.yml
1093
- - test/fixtures/shipit/statuses.yml
1094
- - test/fixtures/shipit/api_clients.yml
1095
- - test/fixtures/shipit/memberships.yml
1096
- - test/fixtures/shipit/repositories.yml
1097
- - test/fixtures/shipit/stacks.yml
1098
- - test/fixtures/shipit/commit_deployment_statuses.yml
1099
- - test/fixtures/shipit/github_hooks.yml
1100
- - test/fixtures/shipit/check_runs.yml
1101
- - test/fixtures/shipit/merge_requests.yml
1102
- - test/fixtures/shipit/pull_request_assignments.yml
1103
- - test/fixtures/shipit/hooks.yml
1104
- - test/fixtures/shipit/pull_requests.yml
1105
- - test/fixtures/shipit/users.yml
1106
- - test/controllers/rollbacks_controller_test.rb
1107
- - test/controllers/ccmenu_controller_test.rb
1108
- - test/controllers/stacks_controller_test.rb
1109
- - test/controllers/deploys_controller_test.rb
1110
- - test/controllers/merge_status_controller_test.rb
1111
- - test/controllers/api/ccmenu_controller_test.rb
1112
- - test/controllers/api/stacks_controller_test.rb
1113
- - test/controllers/api/rollback_controller_test.rb
1114
- - test/controllers/api/base_controller_test.rb
1115
- - test/controllers/api/deploys_controller_test.rb
1116
- - test/controllers/api/hooks_controller_test.rb
1117
- - test/controllers/api/locks_controller_test.rb
1118
- - test/controllers/api/release_statuses_controller_test.rb
1119
- - test/controllers/api/merge_requests_controller_test.rb
1120
- - test/controllers/api/outputs_controller_test.rb
1121
- - test/controllers/api/tasks_controller_test.rb
1122
- - test/controllers/api/commits_controller_test.rb
1123
- - test/controllers/release_statuses_controller_test.rb
1124
- - test/controllers/status_controller_test.rb
1125
- - test/controllers/github_authentication_controller_test.rb
1126
- - test/controllers/merge_requests_controller_test.rb
1127
- - test/controllers/tasks_controller_test.rb
1128
- - test/controllers/commits_controller_test.rb
1129
- - test/controllers/api_clients_controller_test.rb
1130
- - test/controllers/repositories_controller_test.rb
1131
- - test/controllers/commit_checks_controller_test.rb
1132
- - test/controllers/webhooks_controller_test.rb
1133
- - test/helpers/payloads_helper.rb
1134
- - test/helpers/api_helper.rb
1135
- - test/helpers/hooks_helper.rb
1136
- - test/helpers/links_helper.rb
1137
- - test/helpers/queries_helper.rb
1138
- - test/helpers/fixture_aliases_helper.rb
1139
- - test/helpers/json_helper.rb
1140
- - test/middleware/same_site_cookie_middleware_test.rb
1141
- - test/models/team_test.rb
1142
- - test/models/api_client_test.rb
1143
1081
  - test/models/commits_test.rb
1144
- - test/models/membership_test.rb
1145
- - test/models/rollbacks_test.rb
1146
1082
  - test/models/deploy_spec_test.rb
1147
- - test/models/commit_deployment_status_test.rb
1148
- - test/models/commit_checks_test.rb
1149
- - test/models/deploy_stats_test.rb
1150
- - test/models/pull_request_assignment_test.rb
1151
- - test/models/hook_test.rb
1152
- - test/models/merge_request_test.rb
1153
1083
  - test/models/release_statuses_test.rb
1154
- - test/models/task_definitions_test.rb
1155
- - test/models/status_test.rb
1156
- - test/models/status/group_test.rb
1157
- - test/models/status/missing_test.rb
1084
+ - test/models/commit_checks_test.rb
1158
1085
  - test/models/github_hook_test.rb
1159
- - test/models/commit_deployment_test.rb
1160
- - test/models/delivery_test.rb
1161
- - test/models/deploys_test.rb
1162
- - test/models/duration_test.rb
1163
- - test/models/tasks_test.rb
1164
- - test/models/undeployed_commits_test.rb
1165
- - test/models/users_test.rb
1166
- - test/models/shipit/check_run_test.rb
1167
- - test/models/shipit/provisioning_handler_test.rb
1168
- - test/models/shipit/review_stack_provisioning_queue_test.rb
1169
1086
  - test/models/shipit/review_stack_test.rb
1170
- - test/models/shipit/provisioning_handler/unregistered_provisioning_handler_test.rb
1171
- - test/models/shipit/provisioning_handler/base_test.rb
1172
- - test/models/shipit/stacks_test.rb
1173
- - test/models/shipit/repository_test.rb
1174
- - test/models/shipit/review_stack_provision_status_test.rb
1175
1087
  - test/models/shipit/webhooks/handlers_test.rb
1176
- - test/models/shipit/webhooks/handlers/pull_request/edited_handler_test.rb
1177
1088
  - test/models/shipit/webhooks/handlers/pull_request/review_stack_adapter_test.rb
1089
+ - test/models/shipit/webhooks/handlers/pull_request/opened_handler_test.rb
1178
1090
  - test/models/shipit/webhooks/handlers/pull_request/assigned_handler_test.rb
1179
- - test/models/shipit/webhooks/handlers/pull_request/unlabeled_handler_test.rb
1180
1091
  - test/models/shipit/webhooks/handlers/pull_request/label_capturing_handler_test.rb
1181
- - test/models/shipit/webhooks/handlers/pull_request/labeled_handler_test.rb
1182
- - test/models/shipit/webhooks/handlers/pull_request/opened_handler_test.rb
1092
+ - test/models/shipit/webhooks/handlers/pull_request/unlabeled_handler_test.rb
1183
1093
  - test/models/shipit/webhooks/handlers/pull_request/reopened_handler_test.rb
1094
+ - test/models/shipit/webhooks/handlers/pull_request/labeled_handler_test.rb
1184
1095
  - test/models/shipit/webhooks/handlers/pull_request/closed_handler_test.rb
1096
+ - test/models/shipit/webhooks/handlers/pull_request/edited_handler_test.rb
1097
+ - test/models/shipit/provisioning_handler_test.rb
1098
+ - test/models/shipit/review_stack_provisioning_queue_test.rb
1099
+ - test/models/shipit/stacks_test.rb
1100
+ - test/models/shipit/provisioning_handler/unregistered_provisioning_handler_test.rb
1101
+ - test/models/shipit/provisioning_handler/base_test.rb
1185
1102
  - test/models/shipit/pull_request_test.rb
1186
- - test/test_command_integration.rb
1187
- - test/serializers/shipit/pull_request_serializer_test.rb
1103
+ - test/models/shipit/check_run_test.rb
1104
+ - test/models/shipit/repository_test.rb
1105
+ - test/models/shipit/review_stack_provision_status_test.rb
1106
+ - test/models/delivery_test.rb
1107
+ - test/models/rollbacks_test.rb
1108
+ - test/models/merge_request_test.rb
1109
+ - test/models/status_test.rb
1110
+ - test/models/api_client_test.rb
1111
+ - test/models/commit_deployment_status_test.rb
1112
+ - test/models/commit_deployment_test.rb
1113
+ - test/models/hook_test.rb
1114
+ - test/models/duration_test.rb
1115
+ - test/models/deploy_stats_test.rb
1116
+ - test/models/status/missing_test.rb
1117
+ - test/models/status/group_test.rb
1118
+ - test/models/membership_test.rb
1119
+ - test/models/deploys_test.rb
1120
+ - test/models/task_definitions_test.rb
1121
+ - test/models/team_test.rb
1122
+ - test/models/pull_request_assignment_test.rb
1123
+ - test/models/undeployed_commits_test.rb
1124
+ - test/models/users_test.rb
1125
+ - test/models/tasks_test.rb
1188
1126
  - test/test_helper.rb
1189
- - test/dummy/db/seeds.rb
1190
- - test/dummy/db/schema.rb
1191
- - test/dummy/app/assets/stylesheets/application.css
1192
- - test/dummy/app/assets/javascripts/application.js
1193
- - test/dummy/app/controllers/application_controller.rb
1194
- - test/dummy/app/helpers/application_helper.rb
1195
- - test/dummy/app/views/layouts/application.html.erb
1196
- - test/dummy/config/database.postgresql.yml
1197
- - test/dummy/config/secrets.yml
1198
- - test/dummy/config/initializers/cookies_serializer.rb
1199
- - test/dummy/config/initializers/backtrace_silencers.rb
1200
- - test/dummy/config/initializers/mime_types.rb
1201
- - test/dummy/config/initializers/filter_parameter_logging.rb
1127
+ - test/dummy/public/422.html
1128
+ - test/dummy/public/404.html
1129
+ - test/dummy/public/favicon.ico
1130
+ - test/dummy/public/500.html
1131
+ - test/dummy/Rakefile
1132
+ - test/dummy/config/initializers/assets.rb
1133
+ - test/dummy/config/initializers/0_load_development_secrets.rb
1202
1134
  - test/dummy/config/initializers/wrap_parameters.rb
1135
+ - test/dummy/config/initializers/mime_types.rb
1203
1136
  - test/dummy/config/initializers/inflections.rb
1137
+ - test/dummy/config/initializers/cookies_serializer.rb
1138
+ - test/dummy/config/initializers/filter_parameter_logging.rb
1139
+ - test/dummy/config/initializers/backtrace_silencers.rb
1204
1140
  - test/dummy/config/initializers/session_store.rb
1205
- - test/dummy/config/initializers/0_load_development_secrets.rb
1206
- - test/dummy/config/initializers/assets.rb
1207
- - test/dummy/config/routes.rb
1208
1141
  - test/dummy/config/database.yml
1209
- - test/dummy/config/database.mysql.yml
1210
- - test/dummy/config/environment.rb
1211
- - test/dummy/config/locales/en.yml
1212
1142
  - test/dummy/config/environments/development.rb
1213
- - test/dummy/config/environments/test.rb
1214
1143
  - test/dummy/config/environments/production.rb
1215
- - test/dummy/config/boot.rb
1144
+ - test/dummy/config/environments/test.rb
1216
1145
  - test/dummy/config/application.rb
1146
+ - test/dummy/config/boot.rb
1147
+ - test/dummy/config/database.mysql.yml
1148
+ - test/dummy/config/locales/en.yml
1149
+ - test/dummy/config/secrets.yml
1150
+ - test/dummy/config/environment.rb
1151
+ - test/dummy/config/database.postgresql.yml
1152
+ - test/dummy/config/routes.rb
1153
+ - test/dummy/config/secrets_double_github_app.yml
1217
1154
  - test/dummy/config.ru
1218
- - test/dummy/bin/rails
1219
1155
  - test/dummy/bin/rake
1220
- - test/dummy/bin/setup
1221
1156
  - test/dummy/bin/bundle
1222
- - test/dummy/Rakefile
1223
- - test/dummy/public/404.html
1224
- - test/dummy/public/422.html
1225
- - test/dummy/public/favicon.ico
1226
- - test/dummy/public/500.html
1157
+ - test/dummy/bin/rails
1158
+ - test/dummy/bin/setup
1159
+ - test/dummy/db/schema.rb
1160
+ - test/dummy/db/seeds.rb
1161
+ - test/dummy/app/views/layouts/application.html.erb
1162
+ - test/dummy/app/controllers/application_controller.rb
1163
+ - test/dummy/app/helpers/application_helper.rb
1164
+ - test/dummy/app/assets/config/manifest.js
1165
+ - test/dummy/app/assets/javascripts/application.js
1166
+ - test/dummy/app/assets/stylesheets/application.css
1167
+ - test/serializers/shipit/pull_request_serializer_test.rb
1168
+ - test/test_command_integration.rb
1169
+ - test/controllers/stacks_controller_test.rb
1170
+ - test/controllers/github_authentication_controller_test.rb
1171
+ - test/controllers/status_controller_test.rb
1172
+ - test/controllers/api/outputs_controller_test.rb
1173
+ - test/controllers/api/stacks_controller_test.rb
1174
+ - test/controllers/api/release_statuses_controller_test.rb
1175
+ - test/controllers/api/ccmenu_controller_test.rb
1176
+ - test/controllers/api/merge_requests_controller_test.rb
1177
+ - test/controllers/api/commits_controller_test.rb
1178
+ - test/controllers/api/base_controller_test.rb
1179
+ - test/controllers/api/tasks_controller_test.rb
1180
+ - test/controllers/api/deploys_controller_test.rb
1181
+ - test/controllers/api/hooks_controller_test.rb
1182
+ - test/controllers/api/locks_controller_test.rb
1183
+ - test/controllers/api/rollback_controller_test.rb
1184
+ - test/controllers/rollbacks_controller_test.rb
1185
+ - test/controllers/release_statuses_controller_test.rb
1186
+ - test/controllers/ccmenu_controller_test.rb
1187
+ - test/controllers/merge_requests_controller_test.rb
1188
+ - test/controllers/commit_checks_controller_test.rb
1189
+ - test/controllers/commits_controller_test.rb
1190
+ - test/controllers/merge_status_controller_test.rb
1191
+ - test/controllers/tasks_controller_test.rb
1192
+ - test/controllers/api_clients_controller_test.rb
1193
+ - test/controllers/deploys_controller_test.rb
1194
+ - test/controllers/repositories_controller_test.rb
1195
+ - test/controllers/webhooks_controller_test.rb
1196
+ - test/helpers/hooks_helper.rb
1197
+ - test/helpers/api_helper.rb
1198
+ - test/helpers/links_helper.rb
1199
+ - test/helpers/json_helper.rb
1200
+ - test/helpers/payloads_helper.rb
1201
+ - test/helpers/queries_helper.rb
1202
+ - test/helpers/fixture_aliases_helper.rb
1203
+ - test/fixtures/shipit/deliveries.yml
1204
+ - test/fixtures/shipit/stacks.yml
1205
+ - test/fixtures/shipit/users.yml
1206
+ - test/fixtures/shipit/check_runs.yml
1207
+ - test/fixtures/shipit/teams.yml
1208
+ - test/fixtures/shipit/memberships.yml
1209
+ - test/fixtures/shipit/release_statuses.yml
1210
+ - test/fixtures/shipit/repositories.yml
1211
+ - test/fixtures/shipit/commits.yml
1212
+ - test/fixtures/shipit/pull_request_assignments.yml
1213
+ - test/fixtures/shipit/tasks.yml
1214
+ - test/fixtures/shipit/pull_requests.yml
1215
+ - test/fixtures/shipit/statuses.yml
1216
+ - test/fixtures/shipit/api_clients.yml
1217
+ - test/fixtures/shipit/merge_requests.yml
1218
+ - test/fixtures/shipit/commit_deployment_statuses.yml
1219
+ - test/fixtures/shipit/hooks.yml
1220
+ - test/fixtures/shipit/github_hooks.yml
1221
+ - test/fixtures/shipit/commit_deployments.yml
1222
+ - test/fixtures/payloads/pull_request_with_no_repo.json
1223
+ - test/fixtures/payloads/status_master.json
1224
+ - test/fixtures/payloads/pull_request_assigned.json
1225
+ - test/fixtures/payloads/provision_disabled_pull_request.json
1226
+ - test/fixtures/payloads/check_suite_master.json
1227
+ - test/fixtures/payloads/pull_request_unlabeled.json
1228
+ - test/fixtures/payloads/pull_request_closed.json
1229
+ - test/fixtures/payloads/pull_request_reopened.json
1230
+ - test/fixtures/payloads/pull_request_opened.json
1231
+ - test/fixtures/payloads/push_master.json
1232
+ - test/fixtures/payloads/pull_request_labeled.json
1233
+ - test/fixtures/payloads/push_not_master.json
1234
+ - test/fixtures/payloads/invalid_pull_request.json
1235
+ - test/fixtures/timeout
1236
+ - test/lib/shipit/deploy_commands_test.rb
1237
+ - test/lib/shipit/task_commands_test.rb