Use explicitly tracked deployments for MR widgets

When displaying the deployments of a merge request in the MR widget, we
used to rely on the latest CI pipeline to determine what the deployment
was. In this commit we add the ability to use the table
"deployment_merge_requests" to display the deployments of a merge
request. This way the data displayed remains the same, regardless of the
state of any CI pipelines.

These changes are currently hidden behind the
"deployment_merge_requests_widget" project feature flag. We do not
reuse the existing deployments feature flag, as we still want to record
merge requests even if the UI is not able to display the data properly.
176 jobs for !20066 with deployment-merge-requests-widget in 95 minutes and 56 seconds (queued for 7 seconds)
detached
Status Job ID Name Coverage
  Prepare
passed #355037805
docker gitlab-org
build-qa-image

00:06:24

passed #355037802
gitlab-org
compile-assets pull-cache

00:10:27

passed #355037803
gitlab-org
compile-assets pull-cache foss

00:08:19

manual #355037806
gitlab-org allowed to fail manual
manual:review-cleanup
passed #355037808
retrieve-tests-metadata

00:02:37

passed #355037807
gitlab-org
review-stop-failed-deployment

00:00:20

passed #355037804
gitlab-org
setup-test-env

00:07:53

 
  Test
passed #355037828
allowed to fail
code_quality

00:14:14

passed #355038067
gitlab-org
danger-review

00:03:54

passed #355038061
gitlab-org
db:check-schema

00:03:30

passed #355038063
gitlab-org
db:migrate-from-v11.11.0

00:12:45

passed #355038058
gitlab-org
db:migrate:reset

00:03:55

passed #355038064
gitlab-org
db:rollback

00:03:52

passed #355038066
gitlab-org
db:rollback geo

00:03:57

passed #355037840
allowed to fail
dependency_scanning

00:07:47

passed #355038056
gitlab-org
downtime_check

00:02:48

passed #355037810
docker gitlab-org
gitlab:assets:compile pull-cache

00:23:27

passed #355038065
gitlab-org
gitlab:setup

00:03:40

passed #355038068
gitlab-org
gitlab_git_test

00:02:36

passed #355037809
gitlab-org
graphql-reference-verify

00:03:31

passed #355037813
gitlab-org
jest

00:21:15

passed #355037814
gitlab-org
jest-foss

00:17:51

passed #355037811
gitlab-org
karma

00:14:07

66.36%
passed #355037812
gitlab-org
karma-foss

00:11:10

passed #355038069
gitlab-org
lint-ci-gitlab

00:01:01

passed #355037824
gitlab-org
memory-on-boot

00:07:24

passed #355037823
gitlab-org
memory-static

00:04:49

passed #355037817
gitlab-org
qa-frontend-node:10

00:12:36

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

00:18:47

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

00:15:33

passed #355037825
gitlab-org
qa:internal

00:01:54

passed #355037826
gitlab-org
qa:selectors

00:01:46

passed #355037827
gitlab-org
qa:selectors-foss

00:02:07

passed #355038052
gitlab-org
rspec fast_spec_helper

00:06:45

passed #355037918
gitlab-org
rspec integration pg9 1/6

00:20:23

passed #355037921
gitlab-org
rspec integration pg9 2/6

00:18:41

passed #355037922
gitlab-org
rspec integration pg9 3/6

00:18:09

passed #355037925
gitlab-org
rspec integration pg9 4/6

00:27:54

passed #355037928
gitlab-org
rspec integration pg9 5/6

00:21:49

passed #355037930
gitlab-org
rspec integration pg9 6/6

00:22:55

passed #355037932
gitlab-org
rspec integration pg9-foss 1/6

00:19:38

passed #355037935
gitlab-org
rspec integration pg9-foss 2/6

00:17:20

passed #355037937
gitlab-org
rspec integration pg9-foss 3/6

00:22:40

passed #355037938
gitlab-org
rspec integration pg9-foss 4/6

00:17:10

passed #355037939
gitlab-org
rspec integration pg9-foss 5/6

00:19:54

passed #355037940
gitlab-org
rspec integration pg9-foss 6/6

00:15:43

passed #355037941
gitlab-org
rspec system pg9 1/24

00:13:52

passed #355037969
gitlab-org
rspec system pg9 10/24

00:20:05

passed #355037971
gitlab-org
rspec system pg9 11/24

00:17:37

passed #355037973
gitlab-org
rspec system pg9 12/24

00:17:26

passed #355037974
gitlab-org
rspec system pg9 13/24

00:17:31

passed #355037976
gitlab-org
rspec system pg9 14/24

00:16:33

passed #355037978
gitlab-org
rspec system pg9 15/24

00:17:49

passed #355037980
gitlab-org
rspec system pg9 16/24

00:18:07

passed #355037982
gitlab-org
rspec system pg9 17/24

00:21:28

passed #355037984
gitlab-org
rspec system pg9 18/24

00:16:59

passed #355037986
gitlab-org
rspec system pg9 19/24

00:19:26

passed #355037944
gitlab-org
rspec system pg9 2/24

00:16:27

passed #355037988
gitlab-org
rspec system pg9 20/24

00:15:30

passed #355037990
gitlab-org
rspec system pg9 21/24

00:16:08

passed #355037992
gitlab-org
rspec system pg9 22/24

00:17:03

passed #355037994
gitlab-org
rspec system pg9 23/24

00:16:59

passed #355037995
gitlab-org
rspec system pg9 24/24

00:15:04

passed #355037948
gitlab-org
rspec system pg9 3/24

00:16:38

passed #355037951
gitlab-org
rspec system pg9 4/24

00:15:09

passed #355037954
gitlab-org
rspec system pg9 5/24

00:14:36

passed #355037958
gitlab-org
rspec system pg9 6/24

00:18:36

passed #355037961
gitlab-org
rspec system pg9 7/24

00:16:49

passed #355037964
gitlab-org
rspec system pg9 8/24

00:17:51

passed #355037967
gitlab-org
rspec system pg9 9/24

00:17:55

passed #355037996
gitlab-org
rspec system pg9-foss 1/24

00:14:26

passed #355038006
gitlab-org
rspec system pg9-foss 10/24

00:15:48

passed #355038008
gitlab-org
rspec system pg9-foss 11/24

00:14:49

passed #355038011
gitlab-org
rspec system pg9-foss 12/24

00:14:58

passed #355038012
gitlab-org
rspec system pg9-foss 13/24

00:14:26

passed #355038013
gitlab-org
rspec system pg9-foss 14/24

00:12:05

passed #355038014
gitlab-org
rspec system pg9-foss 15/24

00:14:21

passed #355038016
gitlab-org
rspec system pg9-foss 16/24

00:12:36

passed #355038017
gitlab-org
rspec system pg9-foss 17/24

00:14:58

passed #355038018
gitlab-org
rspec system pg9-foss 18/24

00:14:19

passed #355038019
gitlab-org
rspec system pg9-foss 19/24

00:17:40

passed #355037997
gitlab-org
rspec system pg9-foss 2/24

00:11:32

passed #355038020
gitlab-org
rspec system pg9-foss 20/24

00:13:13

passed #355038021
gitlab-org
rspec system pg9-foss 21/24

00:17:04

passed #355038022
gitlab-org
rspec system pg9-foss 22/24

00:13:42

passed #355038023
gitlab-org
rspec system pg9-foss 23/24

00:14:05

passed #355038025
gitlab-org
rspec system pg9-foss 24/24

00:12:54

passed #355037998
gitlab-org
rspec system pg9-foss 3/24

00:16:05

passed #355037999
gitlab-org
rspec system pg9-foss 4/24

00:12:22

passed #355038000
gitlab-org
rspec system pg9-foss 5/24

00:12:22

passed #355038001
gitlab-org
rspec system pg9-foss 6/24

00:13:42

passed #355038002
gitlab-org
rspec system pg9-foss 7/24

00:15:05

passed #355038003
gitlab-org
rspec system pg9-foss 8/24

00:14:50

passed #355038004
gitlab-org
rspec system pg9-foss 9/24

00:15:55

passed #355037842
gitlab-org
rspec unit pg9 1/20

00:19:33

passed #355037857
gitlab-org
rspec unit pg9 10/20

00:18:17

passed #355037858
gitlab-org
rspec unit pg9 11/20

00:23:34

passed #355037859
gitlab-org
rspec unit pg9 12/20

00:17:59

passed #355037860
gitlab-org
rspec unit pg9 13/20

00:22:59

passed #355037863
gitlab-org
rspec unit pg9 14/20

00:21:43

passed #355037864
gitlab-org
rspec unit pg9 15/20

00:15:56

passed #355037866
gitlab-org
rspec unit pg9 16/20

00:17:44

passed #355037868
gitlab-org
rspec unit pg9 17/20

00:19:30

passed #355037870
gitlab-org
rspec unit pg9 18/20

00:18:48

passed #355037873
gitlab-org
rspec unit pg9 19/20

00:19:18

passed #355037845
gitlab-org
rspec unit pg9 2/20

00:15:00

passed #355037876
gitlab-org
rspec unit pg9 20/20

00:17:03

passed #355037848
gitlab-org
rspec unit pg9 3/20

00:18:03

passed #355037850
gitlab-org
rspec unit pg9 4/20

00:15:27

passed #355037852
gitlab-org
rspec unit pg9 5/20

00:14:58

passed #355037853
gitlab-org
rspec unit pg9 6/20

00:16:42

passed #355037854
gitlab-org
rspec unit pg9 7/20

00:17:45

passed #355037855
gitlab-org
rspec unit pg9 8/20

00:21:40

passed #355037856
gitlab-org
rspec unit pg9 9/20

00:17:38

passed #355037879
gitlab-org
rspec unit pg9-foss 1/20

00:18:07

passed #355037894
gitlab-org
rspec unit pg9-foss 10/20

00:14:15

passed #355037896
gitlab-org
rspec unit pg9-foss 11/20

00:20:15

passed #355037897
gitlab-org
rspec unit pg9-foss 12/20

00:15:58

passed #355037901
gitlab-org
rspec unit pg9-foss 13/20

00:19:32

passed #355037904
gitlab-org
rspec unit pg9-foss 14/20

00:15:43

passed #355037906
gitlab-org
rspec unit pg9-foss 15/20

00:16:07

passed #355037909
gitlab-org
rspec unit pg9-foss 16/20

00:16:26

passed #355037911
gitlab-org
rspec unit pg9-foss 17/20

00:16:03

passed #355037913
gitlab-org
rspec unit pg9-foss 18/20

00:17:18

passed #355037914
gitlab-org
rspec unit pg9-foss 19/20

00:16:16

passed #355037881
gitlab-org
rspec unit pg9-foss 2/20

00:11:49

passed #355037916
gitlab-org
rspec unit pg9-foss 20/20

00:15:26

passed #355037882
gitlab-org
rspec unit pg9-foss 3/20

00:18:13

passed #355037884
gitlab-org
rspec unit pg9-foss 4/20

00:14:31

passed #355037885
gitlab-org
rspec unit pg9-foss 5/20

00:14:59

passed #355037886
gitlab-org
rspec unit pg9-foss 6/20

00:15:40

passed #355037888
gitlab-org
rspec unit pg9-foss 7/20

00:15:11

passed #355037891
gitlab-org
rspec unit pg9-foss 8/20

00:16:34

passed #355037892
gitlab-org
rspec unit pg9-foss 9/20

00:17:30

passed #355038050
gitlab-org
rspec-ee integration pg10 geo

00:10:38

passed #355038034
gitlab-org
rspec-ee integration pg9 1/3

00:18:51

passed #355038035
gitlab-org
rspec-ee integration pg9 2/3

00:18:08

passed #355038037
gitlab-org
rspec-ee integration pg9 3/3

00:19:32

passed #355038046
gitlab-org
rspec-ee integration pg9 geo

00:10:08

passed #355038051
gitlab-org
rspec-ee system pg10 geo

00:10:08

passed #355038039
gitlab-org
rspec-ee system pg9 1/5

00:17:25

passed #355038040
gitlab-org
rspec-ee system pg9 2/5

00:23:04

passed #355038041
gitlab-org
rspec-ee system pg9 3/5

00:18:01

passed #355038042
gitlab-org
rspec-ee system pg9 4/5

00:19:13

passed #355038043
gitlab-org
rspec-ee system pg9 5/5

00:21:45

passed #355038047
gitlab-org
rspec-ee system pg9 geo

00:12:05

passed #355038048
gitlab-org
rspec-ee unit pg10 geo 1/2

00:16:27

passed #355038049
gitlab-org
rspec-ee unit pg10 geo 2/2

00:14:30

passed #355038027
gitlab-org
rspec-ee unit pg9 1/7

00:17:44

passed #355038028
gitlab-org
rspec-ee unit pg9 2/7

00:17:10

passed #355038029
gitlab-org
rspec-ee unit pg9 3/7

00:16:46

passed #355038030
gitlab-org
rspec-ee unit pg9 4/7

00:18:59

passed #355038031
gitlab-org
rspec-ee unit pg9 5/7

00:19:50

passed #355038032
gitlab-org
rspec-ee unit pg9 6/7

00:27:36

passed #355038033
gitlab-org
rspec-ee unit pg9 7/7

00:18:51

passed #355038044
gitlab-org
rspec-ee unit pg9 geo 1/2

00:15:16

passed #355038045
gitlab-org
rspec-ee unit pg9 geo 2/2

00:20:45

passed #355037830
allowed to fail
sast

00:08:24

passed #355038053
gitlab-org
static-analysis 1/2

00:15:48

passed #355038054
gitlab-org
static-analysis 2/2

00:11:39

passed #355037821
gitlab-org
webpack-dev-server

00:05:04

 
  Review Prepare
passed #355038070
gitlab-org
review-build-cng

00:36:48

 
  Review
passed #355038071
gitlab-org allowed to fail
review-deploy

00:09:10

failed #355038072
gitlab-org allowed to fail manual
review-stop

00:00:26

 
  Qa
passed #355038074
allowed to fail
dast

00:10:30

manual #355038073
allowed to fail manual
package-and-qa-manual
passed #355038081
docker gitlab-org allowed to fail
review-performance

00:03:50

manual #355038076
docker gitlab-org allowed to fail manual
review-qa-all 1/5
manual #355038077
docker gitlab-org allowed to fail manual
review-qa-all 2/5
manual #355038078
docker gitlab-org allowed to fail manual
review-qa-all 3/5
manual #355038079
docker gitlab-org allowed to fail manual
review-qa-all 4/5
manual #355038080
docker gitlab-org allowed to fail manual
review-qa-all 5/5
passed #355038075
docker gitlab-org allowed to fail
review-qa-smoke

00:05:56

 
  Post Test
passed #355038082
gitlab-org
coverage

00:07:35

97.29%
failed #355038084
gitlab-org allowed to fail
flaky-examples-check

00:03:55

manual #355038083
gitlab-org allowed to fail manual
parallel-spec-reports
 
Name Stage Failure
failed
flaky-examples-check Post Test
    "first_flaky_at": "2019-11-19 14:42:20 +0000",
"last_flaky_at": "2019-11-19 14:42:20 +0000",
"last_flaky_job": "https://gitlab.com/gitlab-org/gitlab/-/jobs/355038006"
}
}
Running after script...
$ date
Tue Nov 19 15:51:45 UTC 2019
ERROR: Job failed: exit code 1
failed
review-stop Review
$ source review-apps.sh
$ delete_release

** Deleting release 'review-deployment-sftvxg'... **
Error: release: "review-deployment-sftvxg" not found
Running after script...
$ date
Thu Nov 21 16:12:35 UTC 2019
ERROR: Job failed: exit code 1