Add endpoint for fetching diverging commit counts

Extract diverging_commit_counts into a service class
97 jobs for id-stale-branches in 67 minutes and 26 seconds (queued for 5 seconds)
Status Job ID Name Coverage
  Build
manual #236185518
gitlab-org allowed to fail manual
review-docs-deploy-manual
 
  Prepare
passed #236185519
gitlab-org
compile-assets pull-cache

00:05:58

passed #236185521
gitlab-org
retrieve-tests-metadata

00:00:38

passed #236185520
gitlab-org
setup-test-env

00:04:08

 
  Test
passed #236185617
docker gitlab-org
build-qa-image

00:05:24

passed #236185536
allowed to fail
code_quality

00:07:44

passed #236185619
gitlab-org
danger-review

00:02:05

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

00:04:09

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

00:02:30

passed #236185614
gitlab-org
db:rollback-pg

00:02:43

passed #236185538
allowed to fail
dependency_scanning

00:17:53

passed #236185523
gitlab-org
docs lint

00:02:47

passed #236185608
gitlab-org
downtime_check

00:01:47

passed #236185609
gitlab-org
ee_compat_check

00:04:47

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

00:15:17

passed #236185616
gitlab-org
gitlab:setup-pg

00:06:34

passed #236185620
gitlab-org
gitlab_git_test

00:00:26

passed #236185526
gitlab-org
jest

00:16:07

passed #236185525
gitlab-org
karma

00:10:29

54.59%
passed #236185625
gitlab-org
lint-ci-gitlab

00:01:29

passed #236185534
gitlab-org
memory-static

00:03:07

passed #236185613
gitlab-org
migration:path-pg

00:03:54

passed #236185622
gitlab-org
no_ee_check

00:00:43

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

00:13:15

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

00:15:03

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

00:12:16

passed #236185528
gitlab-org
qa:internal

00:02:59

passed #236185530
gitlab-org
qa:selectors

00:02:41

passed #236185618
allowed to fail manual
review-build-cng

00:22:49

passed #236185561
gitlab-org
rspec integration pg 1/6

00:14:19

passed #236185562
gitlab-org
rspec integration pg 2/6

00:14:55

passed #236185563
gitlab-org
rspec integration pg 3/6

00:13:55

passed #236185564
gitlab-org
rspec integration pg 4/6

00:15:11

passed #236185565
gitlab-org
rspec integration pg 5/6

00:14:39

passed #236185566
gitlab-org
rspec integration pg 6/6

00:14:45

passed #236185567
gitlab-org
rspec system pg 1/24

00:10:27

passed #236185581
gitlab-org
rspec system pg 10/24

00:12:12

passed #236185583
gitlab-org
rspec system pg 11/24

00:12:35

passed #236185585
gitlab-org
rspec system pg 12/24

00:11:04

passed #236185587
gitlab-org
rspec system pg 13/24

00:09:45

passed #236185588
gitlab-org
rspec system pg 14/24

00:11:23

passed #236185589
gitlab-org
rspec system pg 15/24

00:11:37

passed #236185591
gitlab-org
rspec system pg 16/24

00:11:14

passed #236185593
gitlab-org
rspec system pg 17/24

00:11:32

passed #236185595
gitlab-org
rspec system pg 18/24

00:13:41

passed #236185597
gitlab-org
rspec system pg 19/24

00:12:06

passed #236185568
gitlab-org
rspec system pg 2/24

00:11:43

passed #236185598
gitlab-org
rspec system pg 20/24

00:10:29

passed #236185600
gitlab-org
rspec system pg 21/24

00:12:59

passed #236185601
gitlab-org
rspec system pg 22/24

00:10:52

passed #236185603
gitlab-org
rspec system pg 23/24

00:12:39

passed #236185604
gitlab-org
rspec system pg 24/24

00:10:27

passed #236185569
gitlab-org
rspec system pg 3/24

00:09:54

passed #236185571
gitlab-org
rspec system pg 4/24

00:11:18

passed #236185573
gitlab-org
rspec system pg 5/24

00:10:12

passed #236185574
gitlab-org
rspec system pg 6/24

00:11:57

passed #236185578
gitlab-org
rspec system pg 7/24

00:12:09

passed #236185579
gitlab-org
rspec system pg 8/24

00:12:19

passed #236185580
gitlab-org
rspec system pg 9/24

00:10:29

passed #236185539
gitlab-org
rspec unit pg 1/20

00:13:48

passed #236185550
gitlab-org
rspec unit pg 10/20

00:16:20

passed #236185551
gitlab-org
rspec unit pg 11/20

00:17:21

passed #236185552
gitlab-org
rspec unit pg 12/20

00:15:15

passed #236185553
gitlab-org
rspec unit pg 13/20

00:17:11

passed #236185554
gitlab-org
rspec unit pg 14/20

00:16:32

passed #236185555
gitlab-org
rspec unit pg 15/20

00:15:39

passed #236185556
gitlab-org
rspec unit pg 16/20

00:17:56

passed #236185557
gitlab-org
rspec unit pg 17/20

00:16:18

passed #236185558
gitlab-org
rspec unit pg 18/20

00:15:01

passed #236185559
gitlab-org
rspec unit pg 19/20

00:13:27

passed #236185541
gitlab-org
rspec unit pg 2/20

00:13:43

passed #236185560
gitlab-org
rspec unit pg 20/20

00:14:40

passed #236185542
gitlab-org
rspec unit pg 3/20

00:14:05

passed #236185543
gitlab-org
rspec unit pg 4/20

00:11:17

passed #236185544
gitlab-org
rspec unit pg 5/20

00:11:25

passed #236185545
gitlab-org
rspec unit pg 6/20

00:14:31

passed #236185546
gitlab-org
rspec unit pg 7/20

00:15:58

passed #236185548
gitlab-org
rspec unit pg 8/20

00:17:02

passed #236185549
gitlab-org
rspec unit pg 9/20

00:16:51

passed #236185606
gitlab-org
rspec-fast-spec-helper

00:03:00

failed #236185537
allowed to fail
sast

00:31:19

passed #236185607
gitlab-org
static-analysis

00:12:46

 
  Review
manual #236185629
allowed to fail manual
package-and-qa
failed #236185632
gitlab-org allowed to fail
review-deploy

00:12:32

manual #236185633
gitlab-org allowed to fail manual
review-stop
 
  Qa
failed #236185641
docker gitlab-org allowed to fail
review-performance

00:06:19

manual #236185635
docker gitlab-org allowed to fail manual
review-qa-all 1/5
manual #236185636
docker gitlab-org allowed to fail manual
review-qa-all 2/5
manual #236185637
docker gitlab-org allowed to fail manual
review-qa-all 3/5
manual #236185638
docker gitlab-org allowed to fail manual
review-qa-all 4/5
manual #236185639
docker gitlab-org allowed to fail manual
review-qa-all 5/5
failed #236185634
docker gitlab-org allowed to fail
review-qa-smoke

00:07:04

 
  Post Test
passed #236185645
gitlab-org
coverage

00:03:22

95.73%
passed #236185646
gitlab-org allowed to fail
flaky-examples-check

00:02:06

passed #236185644
gitlab-org
jsdoc

00:01:24

passed #236185642
gitlab-org
lint:javascript:report

00:00:52

 
  Post Cleanup
manual #236185647
gitlab-org allowed to fail manual
review-docs-cleanup
 
Name Stage Failure
failed
review-qa-smoke Qa
  /home/qa/qa/scenario/template.rb:8:in `tap'
/home/qa/qa/scenario/template.rb:8:in `perform'
/home/qa/qa/scenario/bootable.rb:28:in `launch!'
bin/qa:7:in `<top (required)>'
Running after script...
$ date
Thu Jun 20 13:29:48 UTC 2019
Uploading artifacts...
./qa/gitlab-qa-run-*: found 2 matching files
Uploading artifacts to coordinator... ok id=236185634 responseStatus=201 Created token=sp-KuGfi
failed
review-performance Qa
    at processImmediate [as _immediateCallback] (timers.js:722:5)
[2019-06-20 13:28:54] INFO: HTML stored in /sitespeed.io/sitespeed-results
[2019-06-20 13:28:54] INFO: Finished analysing https://gitlab-review-id-stale-b-0i8o0e.ce.gitlab-review.app
Running after script...
$ mv sitespeed-results/data/performance.json performance.json
Uploading artifacts...
performance.json: found 1 matching files
Uploading artifacts to coordinator... ok id=236185641 responseStatus=201 Created token=qPbhmxUg
ERROR: Job failed: exit code 1
failed
review-deploy Review
user	0m12.251s
sys 0m0.346s
Running after script...
$ date
Thu Jun 20 13:22:28 UTC 2019
Uploading artifacts...
review_app_url.txt: found 1 matching files
Uploading artifacts to coordinator... ok id=236185632 responseStatus=201 Created token=8PWzN9Yf
ERROR: Job failed: exit code 1
failed
sast Test
2019/06/20 13:03:34 Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
2019/06/20 13:03:34 Timeout when running the analyzer
Running after script...
$ date
Thu Jun 20 13:03:42 UTC 2019
Uploading artifacts...
WARNING: gl-sast-report.json: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1