Add error handling to code analytics

A no access error should be displayed when trying to access
code analytics on a group / project which is not on a premium tier.

A flash error will be displayed for non 403 related responses.
172 jobs for !18898 with add-error-handling-to-code-analytics in 67 minutes and 1 second (queued for 6 seconds)
detached
Status Job ID Name Coverage
  Prepare
passed #329213908
docker gitlab-org
build-qa-image

00:05:38

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

00:08:36

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

00:07:33

passed #329213912
retrieve-tests-metadata

00:01:52

passed #329213911
gitlab-org
review-cleanup-failed-deployment

00:00:43

passed #329213904
gitlab-org
setup-test-env

00:06:57

 
  Test
passed #329213931
allowed to fail
code_quality

00:11:39

passed #329214079
gitlab-org
danger-review

00:02:25

passed #329214074
gitlab-org
db:check-schema

00:05:14

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

00:09:09

passed #329214073
gitlab-org
db:migrate:reset

00:03:07

passed #329214076
gitlab-org
db:rollback

00:04:55

passed #329214078
gitlab-org
db:rollback geo

00:03:10

passed #329213934
allowed to fail
dependency_scanning

00:11:21

passed #329214072
gitlab-org
downtime_check

00:04:37

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

00:20:40

passed #329214077
gitlab-org
gitlab:setup

00:03:56

passed #329214080
gitlab-org
gitlab_git_test

00:00:31

passed #329213916
gitlab-org
jest

00:20:48

passed #329213917
gitlab-org
jest-foss

00:14:43

failed #329213914
gitlab-org
karma

00:18:29

67.68%
passed #329213915
gitlab-org
karma-foss

00:10:38

passed #329213923
gitlab-org
memory-on-boot

00:06:40

passed #329213922
gitlab-org
memory-static

00:04:36

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

00:16:44

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

00:21:27

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

00:19:45

passed #329213924
gitlab-org
qa:internal

00:01:44

passed #329213926
gitlab-org
qa:selectors

00:01:47

passed #329213928
gitlab-org
qa:selectors-foss

00:01:53

passed #329214070
gitlab-org
rspec fast_spec_helper

00:04:03

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

00:16:09

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

00:14:44

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

00:18:46

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

00:15:18

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

00:16:11

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

00:19:00

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

00:15:14

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

00:17:12

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

00:16:52

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

00:17:14

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

00:17:01

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

00:17:07

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

00:12:35

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

00:11:50

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

00:11:49

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

00:13:18

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

00:14:06

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

00:12:02

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

00:16:05

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

00:16:01

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

00:14:36

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

00:15:17

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

00:14:49

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

00:10:48

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

00:14:13

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

00:20:32

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

00:14:21

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

00:12:23

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

00:16:26

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

00:14:31

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

00:11:40

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

00:12:51

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

00:15:02

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

00:13:23

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

00:14:34

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

00:13:01

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

00:14:02

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

00:13:22

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

00:12:29

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

00:11:58

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

00:10:19

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

00:13:35

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

00:12:36

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

00:12:38

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

00:12:54

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

00:12:07

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

00:13:01

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

00:12:38

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

00:11:14

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

00:13:26

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

00:12:31

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

00:15:17

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

00:12:09

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

00:13:17

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

00:12:37

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

00:14:09

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

00:10:45

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

00:14:16

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

00:12:57

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

00:11:29

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

00:20:30

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

00:16:12

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

00:16:54

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

00:16:56

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

00:19:51

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

00:16:11

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

00:15:08

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

00:17:31

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

00:16:10

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

00:14:13

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

00:23:16

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

00:14:14

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

00:17:44

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

00:13:41

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

00:15:33

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

00:16:19

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

00:13:39

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

00:16:13

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

00:15:36

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

00:20:26

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

00:15:11

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

00:11:47

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

00:16:21

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

00:17:39

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

00:16:52

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

00:14:30

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

00:17:05

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

00:12:52

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

00:14:00

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

00:13:56

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

00:13:45

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

00:11:40

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

00:15:12

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

00:12:07

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

00:14:09

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

00:15:06

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

00:17:53

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

00:15:43

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

00:16:34

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

00:17:32

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

00:08:24

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

00:13:11

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

00:13:36

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

00:16:00

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

00:07:46

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

00:06:21

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

00:17:24

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

00:17:01

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

00:16:43

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

00:15:07

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

00:17:33

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

00:06:43

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

00:13:43

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

00:14:04

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

00:18:52

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

00:16:22

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

00:13:57

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

00:14:46

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

00:16:53

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

00:16:16

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

00:16:53

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

00:14:01

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

00:13:57

passed #329213932
allowed to fail
sast

00:10:44

passed #329214071
gitlab-org
static-analysis

00:29:39

passed #329213921
gitlab-org
webpack-dev-server

00:04:20

 
  Review Prepare
passed #329214081
review-build-cng

00:30:01

 
  Review
failed #329214082
gitlab-org allowed to fail
review-deploy

00:00:58

manual #329214083
gitlab-org allowed to fail manual
review-stop
 
  Qa
passed #329214085
allowed to fail
dast

00:06:46

manual #329214084
allowed to fail manual
package-and-qa-manual
failed #329214101
docker gitlab-org allowed to fail
review-performance

00:07:02

manual #329214089
docker gitlab-org allowed to fail manual
review-qa-all 1/5
manual #329214091
docker gitlab-org allowed to fail manual
review-qa-all 2/5
manual #329214093
docker gitlab-org allowed to fail manual
review-qa-all 3/5
manual #329214096
docker gitlab-org allowed to fail manual
review-qa-all 4/5
manual #329214099
docker gitlab-org allowed to fail manual
review-qa-all 5/5
failed #329214086
docker gitlab-org allowed to fail
review-qa-smoke

00:08:18

 
  Post Test
skipped #329214102
gitlab-org
coverage
skipped #329214104
gitlab-org allowed to fail
flaky-examples-check
skipped #329214103
gitlab-org allowed to fail manual
parallel-spec-reports
 
Name Stage Failure
failed
review-qa-smoke Qa
	 1: from /usr/local/lib/ruby/2.6.0/net/protocol.rb:191:in `readuntil'
/usr/local/lib/ruby/2.6.0/net/protocol.rb:217:in `rbuf_fill':
Net::ReadTimeout with #<TCPSocket:(closed)> (Net::ReadTimeout)
Running after script...
$ date
Tue Oct 22 20:12:48 UTC 2019
Uploading artifacts...
./qa/gitlab-qa-run-*: found 2 matching files
Uploading artifacts to coordinator... ok
id=329214086 responseStatus=201 Created token=_PiSxpM_
ERROR: Job failed: exit code 1
failed
review-performance Qa
    at processImmediate [as _immediateCallback] (timers.js:722:5)
[2019-10-22 20:11:32] INFO: HTML stored in /sitespeed.io/sitespeed-results
[2019-10-22 20:11:32] INFO: Finished analysing https://gitlab-review-add-error-koekyq.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=329214101 responseStatus=201 Created token=rciDkt_a
ERROR: Job failed: exit code 1
failed
review-deploy Review
Deleting newly downloaded charts, restoring pre-update state
Error: could not download https://gitlab-charts.s3.amazonaws.com/gitlab-runner-0.9.1.tgz: Get https://gitlab-charts.s3.amazonaws.com/gitlab-runner-0.9.1.tgz: dial tcp: lookup gitlab-charts.s3.amazonaws.com on 169.254.169.254:53: server misbehaving
Running after script...
$ date
Tue Oct 22 20:04:31 UTC 2019
Uploading artifacts...
review_app_url.txt: found 1 matching files
Uploading artifacts to coordinator... ok
id=329214082 responseStatus=201 Created token=zrt-xRVz
ERROR: Job failed: exit code 1
failed
karma Test
Uploading artifacts...
chrome_debug.log: found 1 matching files
coverage-javascript/: found 4749 matching files

tmp/tests/frontend/: found 107 matching files

Uploading artifacts to coordinator... ok
id=329213914 responseStatus=201 Created token=UxQZNdBM
Uploading artifacts...
junit_karma.xml: found 1 matching files

Uploading artifacts to coordinator... ok
id=329213914 responseStatus=201 Created token=UxQZNdBM
ERROR: Job failed: exit code 1