Merge branch 'sh-fix-rebase-in-progress-nplus-one' into 'master'

Memoize MergeRequest#rebase_in_progress? to prevent N+1 queries in Gitaly

Closes gitlab-ee#4857

See merge request !16990
90 jobs for master in 31 minutes and 1 second (queued for 8 seconds)
Status Job ID Name Coverage
  Build
manual #51658058
gitlab-org allowed to fail manual
package-qa
manual #51658059
gitlab-org allowed to fail manual
review-docs-deploy
 
  Prepare
passed #51658061
gitlab-org
compile-assets

00:04:28

passed #51658060
gitlab-org
retrieve-tests-metadata

00:00:16

passed #51658062
gitlab-org
setup-test-env

00:04:02

 
  Test
passed #51658150
gitlab-org
cache gems

00:02:05

passed #51658146
codequality

00:21:57

passed #51658137
gitlab-org
db:check-schema-pg

00:04:14

passed #51658136
gitlab-org
db:migrate:reset-mysql

00:04:40

passed #51658135
gitlab-org
db:migrate:reset-pg

00:05:03

passed #51658141
gitlab-org
db:rollback-mysql

00:06:36

passed #51658140
gitlab-org
db:rollback-pg

00:04:35

passed #51658134
gitlab-org
docs lint

00:01:15

passed #51658144
gitlab-org
gitlab:assets:compile

00:11:42

passed #51658143
gitlab-org
gitlab:setup-mysql

00:06:17

passed #51658142
gitlab-org
gitlab:setup-pg

00:05:48

passed #51658151
gitlab-org
gitlab_git_test

00:01:16

passed #51658145
gitlab-org
karma

00:08:03

53.81%
passed #51658139
gitlab-org
migration:path-mysql

00:17:33

passed #51658138
gitlab-org
migration:path-pg

00:11:38

passed #51658148
gitlab-org
qa:internal

00:08:46

passed #51658149
gitlab-org
qa:selectors

00:10:01

passed #51658093
gitlab-org
rspec-mysql 0 27

00:14:26

passed #51658094
gitlab-org
rspec-mysql 1 27

00:13:26

passed #51658104
gitlab-org
rspec-mysql 10 27

00:14:22

passed #51658105
gitlab-org
rspec-mysql 11 27

00:17:17

passed #51658106
gitlab-org
rspec-mysql 12 27

00:11:27

passed #51658107
gitlab-org
rspec-mysql 13 27

00:13:57

passed #51658108
gitlab-org
rspec-mysql 14 27

00:18:26

passed #51658110
gitlab-org
rspec-mysql 15 27

00:12:23

passed #51658112
gitlab-org
rspec-mysql 16 27

00:13:03

passed #51658114
gitlab-org
rspec-mysql 17 27

00:13:00

passed #51658116
gitlab-org
rspec-mysql 18 27

00:14:31

passed #51658117
gitlab-org
rspec-mysql 19 27

00:13:40

passed #51658095
gitlab-org
rspec-mysql 2 27

00:12:30

passed #51658118
gitlab-org
rspec-mysql 20 27

00:13:44

passed #51658119
gitlab-org
rspec-mysql 21 27

00:15:56

passed #51658120
gitlab-org
rspec-mysql 22 27

00:10:47

passed #51658121
gitlab-org
rspec-mysql 23 27

00:16:46

passed #51658122
gitlab-org
rspec-mysql 24 27

00:14:34

passed #51658123
gitlab-org
rspec-mysql 25 27

00:16:05

passed #51658124
gitlab-org
rspec-mysql 26 27

00:16:12

passed #51658096
gitlab-org
rspec-mysql 3 27

00:13:32

passed #51658097
gitlab-org
rspec-mysql 4 27

00:17:04

passed #51658098
gitlab-org
rspec-mysql 5 27

00:11:17

passed #51658099
gitlab-org
rspec-mysql 6 27

00:10:50

passed #51658100
gitlab-org
rspec-mysql 7 27

00:11:47

passed #51658101
gitlab-org
rspec-mysql 8 27

00:11:09

passed #51658102
gitlab-org
rspec-mysql 9 27

00:10:21

passed #51658063
gitlab-org
rspec-pg 0 27

00:13:50

passed #51658064
gitlab-org
rspec-pg 1 27

00:14:49

passed #51658074
gitlab-org
rspec-pg 10 27

00:12:27

passed #51658075
gitlab-org
rspec-pg 11 27

00:19:20

passed #51658076
gitlab-org
rspec-pg 12 27

00:14:03

passed #51658077
gitlab-org
rspec-pg 13 27

00:20:05

passed #51658078
gitlab-org
rspec-pg 14 27

00:13:19

passed #51658079
gitlab-org
rspec-pg 15 27

00:16:17

passed #51658080
gitlab-org
rspec-pg 16 27

00:16:51

passed #51658081
gitlab-org
rspec-pg 17 27

00:19:48

passed #51658082
gitlab-org
rspec-pg 18 27

00:18:36

passed #51658083
gitlab-org
rspec-pg 19 27

00:16:27

passed #51658065
gitlab-org
rspec-pg 2 27

00:12:58

passed #51658085
gitlab-org
rspec-pg 20 27

00:18:16

passed #51658087
gitlab-org
rspec-pg 21 27

00:21:42

passed #51658088
gitlab-org
rspec-pg 22 27

00:16:41

passed #51658089
gitlab-org
rspec-pg 23 27

00:16:15

passed #51658090
gitlab-org
rspec-pg 24 27

00:16:43

passed #51658091
gitlab-org
rspec-pg 25 27

00:12:15

passed #51658092
gitlab-org
rspec-pg 26 27

00:16:52

passed #51658066
gitlab-org
rspec-pg 3 27

00:15:45

passed #51658068
gitlab-org
rspec-pg 4 27

00:14:32

passed #51658069
gitlab-org
rspec-pg 5 27

00:15:19

passed #51658070
gitlab-org
rspec-pg 6 27

00:20:28

passed #51658071
gitlab-org
rspec-pg 7 27

00:11:16

passed #51658072
gitlab-org
rspec-pg 8 27

00:11:31

passed #51658073
gitlab-org
rspec-pg 9 27

00:15:46

passed #51658147
sast

00:03:16

passed #51658130
gitlab-org
spinach-mysql 0 3

00:14:23

passed #51658131
gitlab-org
spinach-mysql 1 3

00:11:58

passed #51658132
gitlab-org
spinach-mysql 2 3

00:12:21

passed #51658126
gitlab-org
spinach-pg 0 3

00:10:41

passed #51658128
gitlab-org
spinach-pg 1 3

00:11:18

passed #51658129
gitlab-org
spinach-pg 2 3

00:12:33

passed #51658133
gitlab-org
static-analysis

00:05:25

 
  Post Test
passed #51658153
gitlab-org
coverage

00:03:45

94.69%
passed #51658154
gitlab-org
lint:javascript:report

00:01:36

passed #51658152
gitlab-org
update-tests-metadata

00:01:54

 
  Pages
passed #51658155
gitlab-org
pages

00:00:38

 
  Post Cleanup
manual #51658157
gitlab-org allowed to fail manual
review-docs-cleanup
 
  Deploy
failed pages:deploy

00:00:00