Add support for two-step Gitaly Rebase RPC

The new two-step Gitaly `Rebase` RPC yields the rebase commit SHA to the
client before proceeding with the rebase.

This avoids an issue where the rebase commit SHA was returned when the
RPC had fully completed, and in some cases this would be after the Rails
`post_receive` worker services had already run. In these situations,
the merge request did not yet have its rebase_commit_sha attribute set
introducing the possibility for bugs (such as previous approvals being
reset).

gitlab-ee#5966
97 jobs for <span class="ref-name">5966-rebase-with-block</span> in 60 minutes and 25 seconds (queued for 8 seconds)
Status Job ID Name Coverage
  Build
manual #199329317
gitlab-org allowed to fail manual
review-docs-deploy-manual
 
  Prepare
passed #199329320
docker gitlab-org
build-qa-image

00:04:44

passed #199329318
gitlab-org
compile-assets

00:09:17

passed #199329321
gitlab-org
retrieve-tests-metadata

00:01:51

passed #199329319
gitlab-org
setup-test-env

00:07:44

 
  Test
passed #199329332
allowed to fail
code_quality

00:14:06

passed #199329407
gitlab-org
danger-review

00:03:09

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

00:04:58

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

00:06:39

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

00:05:28

passed #199329398
gitlab-org
db:rollback-mysql

00:06:39

passed #199329397
gitlab-org
db:rollback-pg

00:05:31

passed #199329334
allowed to fail
dependency_scanning

00:26:39

passed #199329322
gitlab-org
docs lint

00:02:46

passed #199329390
gitlab-org
downtime_check

00:04:39

passed #199329391
gitlab-org
ee_compat_check

00:05:33

passed #199329323
gitlab-org docker
gitlab:assets:compile

00:18:33

passed #199329400
gitlab-org
gitlab:setup-mysql

00:08:03

passed #199329399
gitlab-org
gitlab:setup-pg

00:07:23

passed #199329408
gitlab-org
gitlab_git_test

00:01:56

passed #199329325
gitlab-org
jest

00:13:59

passed #199329324
gitlab-org
karma

00:13:15

57.57%
passed #199329396
gitlab-org
migration:path-mysql

00:17:14

passed #199329395
gitlab-org
migration:path-pg

00:15:01

passed #199329409
gitlab-org
no_ee_check

00:01:55

manual #199329331
allowed to fail manual
package-and-qa
passed #199329329
gitlab-org
qa-frontend-node:10

00:12:41

passed #199329328
gitlab-org
qa-frontend-node:8

00:13:53

passed #199329330
gitlab-org allowed to fail
qa-frontend-node:latest

00:10:09

passed #199329326
gitlab-org
qa:internal

00:03:35

passed #199329327
gitlab-org
qa:selectors

00:05:41

failed #199329401
review-build-cng

00:28:16

failed #199329402
gitlab-org allowed to fail
review-deploy

00:46:16

passed #199329405
docker gitlab-org allowed to fail
review-performance

00:48:14

manual #199329404
docker gitlab-org allowed to fail manual
review-qa-all
failed #199338576
docker gitlab-org allowed to fail
review-qa-smoke

00:02:52

manual #199329406
gitlab-org allowed to fail manual
review-stop
passed #199329388
gitlab-org
rspec-fast-spec-helper

00:05:45

passed #199329335
gitlab-org
rspec-pg 1/50

00:17:54

passed #199329344
gitlab-org
rspec-pg 10/50

00:13:51

passed #199329345
gitlab-org
rspec-pg 11/50

00:19:02

passed #199329346
gitlab-org
rspec-pg 12/50

00:17:52

passed #199329347
gitlab-org
rspec-pg 13/50

00:18:48

passed #199329348
gitlab-org
rspec-pg 14/50

00:18:32

passed #199329349
gitlab-org
rspec-pg 15/50

00:19:15

passed #199329350
gitlab-org
rspec-pg 16/50

00:16:18

passed #199329351
gitlab-org
rspec-pg 17/50

00:20:54

passed #199329352
gitlab-org
rspec-pg 18/50

00:19:50

passed #199329353
gitlab-org
rspec-pg 19/50

00:18:40

passed #199329336
gitlab-org
rspec-pg 2/50

00:20:52

passed #199329354
gitlab-org
rspec-pg 20/50

00:19:51

passed #199329355
gitlab-org
rspec-pg 21/50

00:16:55

passed #199329356
gitlab-org
rspec-pg 22/50

00:14:51

passed #199329357
gitlab-org
rspec-pg 23/50

00:21:54

passed #199329360
gitlab-org
rspec-pg 24/50

00:21:41

passed #199329361
gitlab-org
rspec-pg 25/50

00:16:45

passed #199329363
gitlab-org
rspec-pg 26/50

00:18:32

passed #199329364
gitlab-org
rspec-pg 27/50

00:20:20

passed #199329365
gitlab-org
rspec-pg 28/50

00:20:14

passed #199329366
gitlab-org
rspec-pg 29/50

00:15:51

passed #199329337
gitlab-org
rspec-pg 3/50

00:18:29

passed #199329367
gitlab-org
rspec-pg 30/50

00:24:42

passed #199329368
gitlab-org
rspec-pg 31/50

00:19:06

passed #199329369
gitlab-org
rspec-pg 32/50

00:19:31

passed #199329370
gitlab-org
rspec-pg 33/50

00:22:05

passed #199329371
gitlab-org
rspec-pg 34/50

00:18:56

passed #199329372
gitlab-org
rspec-pg 35/50

00:19:40

passed #199329373
gitlab-org
rspec-pg 36/50

00:17:52

passed #199329374
gitlab-org
rspec-pg 37/50

00:22:51

passed #199329375
gitlab-org
rspec-pg 38/50

00:18:08

passed #199329376
gitlab-org
rspec-pg 39/50

00:17:38

passed #199329338
gitlab-org
rspec-pg 4/50

00:17:35

passed #199329377
gitlab-org
rspec-pg 40/50

00:17:55

passed #199329378
gitlab-org
rspec-pg 41/50

00:22:08

passed #199329379
gitlab-org
rspec-pg 42/50

00:16:04

passed #199329380
gitlab-org
rspec-pg 43/50

00:16:06

passed #199329381
gitlab-org
rspec-pg 44/50

00:22:07

passed #199329382
gitlab-org
rspec-pg 45/50

00:18:34

passed #199329383
gitlab-org
rspec-pg 46/50

00:21:53

passed #199329384
gitlab-org
rspec-pg 47/50

00:20:36

passed #199329385
gitlab-org
rspec-pg 48/50

00:19:43

passed #199329386
gitlab-org
rspec-pg 49/50

00:17:21

passed #199329339
gitlab-org
rspec-pg 5/50

00:15:57

passed #199329387
gitlab-org
rspec-pg 50/50

00:18:13

passed #199329340
gitlab-org
rspec-pg 6/50

00:26:10

passed #199329341
gitlab-org
rspec-pg 7/50

00:20:53

passed #199329342
gitlab-org
rspec-pg 8/50

00:18:01

passed #199329343
gitlab-org
rspec-pg 9/50

00:15:47

failed #199329333
allowed to fail
sast

00:34:05

failed #199329389
gitlab-org
static-analysis

00:23:31

failed #199338184
gitlab-org docker allowed to fail
review-qa-smoke

00:02:53

failed #199329403
docker gitlab-org allowed to fail
review-qa-smoke

00:48:43

 
  Post Test
skipped #199329412
gitlab-org
coverage
skipped #199329413
gitlab-org allowed to fail
flaky-examples-check
skipped #199329411
gitlab-org
jsdoc
skipped #199329410
gitlab-org
lint:javascript:report
 
  Post Cleanup
skipped #199329414
gitlab-org allowed to fail manual
review-docs-cleanup
 
Name Stage Failure
failed
review-qa-smoke Test
  /home/qa/qa/scenario/bootable.rb:28:in `launch!'
bin/qa:7:in `<top (required)>'
Running after script...
$ date
Fri Apr 19 05:55:25 UTC 2019
Uploading artifacts...
./qa/gitlab-qa-run-*: found 2 matching files
Uploading artifacts to coordinator... ok id=199338576 responseStatus=201 Created token=nrzSKQP3
ERROR: Job failed: exit code 1
failed
review-deploy Test

real 12m4.327s
user 0m10.380s
sys 0m0.485s
.............................................................The Review App at https://gitlab-review-5966-rebas-hcx0ti.ce.gitlab-review.app isn't ready after 5 minutes of polling...
Running after script...
$ date
Fri Apr 19 05:47:09 UTC 2019
ERROR: Job failed: exit code 1
failed
sast Test
2019/04/19 05:34:59 Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2019/04/19 05:34:59 Timeout when running the analyzer
Running after script...
$ date
Fri Apr 19 05:35:07 UTC 2019
Uploading artifacts...
WARNING: gl-sast-report.json: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
failed
review-build-cng Test
Waiting for downstream pipeline status
........../scripts/trigger-build:203:in `block in wait!': Pipeline did not succeed! (RuntimeError)
from ./scripts/trigger-build:192:in `loop'
from ./scripts/trigger-build:192:in `wait!'
from ./scripts/trigger-build:233:in `<main>'
Running after script...
$ date
Fri Apr 19 05:29:10 UTC 2019
ERROR: Job failed: exit code 1
failed
static-analysis Test
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

8390 files inspected, 1 offense detected


Running after script...
$ date
Fri Apr 19 05:24:28 UTC 2019
ERROR: Job failed: exit code 1