Use without_count for records paginated with paginate_without_counts

This change adds .without_count to queries of records
that will be paginated using paginate_without_counts,
so that a count query is not triggered during pagination.
185 jobs for !21232 with gitlab-pagination-without-count-fix in 70 minutes and 53 seconds (queued for 11 seconds)
detached
Status Job ID Name Coverage
  Prepare
passed #371617792
docker gitlab-org
build-qa-image

00:05:45

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

00:08:45

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

00:06:57

manual #371617793
gitlab-org allowed to fail manual
manual:review-cleanup
passed #371617795
retrieve-tests-metadata

00:02:15

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

00:00:22

passed #371617791
gitlab-org
setup-test-env

00:07:11

 
  Test
passed #371617821
allowed to fail
code_quality

00:11:51

passed #371618066
gitlab-org
danger-review

00:02:56

passed #371618061
gitlab-org
db:check-schema

00:03:34

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

00:11:52

passed #371618060
gitlab-org
db:migrate:reset

00:04:18

passed #371618063
gitlab-org
db:rollback

00:04:24

passed #371618065
gitlab-org
db:rollback geo

00:03:50

passed #371617824
allowed to fail
dependency_scanning

00:10:36

passed #371618057
gitlab-org
downtime_check

00:02:47

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

00:20:44

passed #371618064
gitlab-org
gitlab:setup

00:03:54

passed #371618068
gitlab-org
gitlab_git_test

00:00:44

passed #371617796
gitlab-org
graphql-reference-verify

00:06:03

passed #371617801
gitlab-org
jest

00:24:43

passed #371617802
gitlab-org
jest-foss

00:17:29

passed #371617799
gitlab-org
karma

00:15:52

64.7%
passed #371617800
gitlab-org
karma-foss

00:13:12

passed #371618069
gitlab-org
lint-ci-gitlab

00:01:17

passed #371617812
gitlab-org
memory-on-boot

00:07:06

passed #371617811
gitlab-org
memory-static

00:05:12

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

00:14:35

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

00:17:09

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

00:17:04

passed #371617813
gitlab-org
qa:internal

00:02:01

passed #371617816
gitlab-org
qa:selectors

00:02:21

passed #371617818
gitlab-org
qa:selectors-foss

00:01:42

passed #371618054
gitlab-org
rspec fast_spec_helper

00:04:33

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

00:18:30

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

00:20:17

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

00:18:40

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

00:17:09

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

00:21:04

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

00:20:07

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

00:14:42

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

00:15:54

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

00:15:03

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

00:18:52

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

00:16:25

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

00:17:10

passed #371617826
gitlab-org
rspec migration pg9 1/4

00:09:25

passed #371617827
gitlab-org
rspec migration pg9 2/4

00:11:38

passed #371617828
gitlab-org
rspec migration pg9 3/4

00:19:21

passed #371617829
gitlab-org
rspec migration pg9 4/4

00:24:23

passed #371617830
gitlab-org
rspec migration pg9-foss 1/4

00:07:55

passed #371617831
gitlab-org
rspec migration pg9-foss 2/4

00:10:36

passed #371617832
gitlab-org
rspec migration pg9-foss 3/4

00:19:50

passed #371617833
gitlab-org
rspec migration pg9-foss 4/4

00:18:55

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

00:15:35

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

00:15:52

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

00:13:41

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

00:17:47

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

00:11:59

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

00:15:36

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

00:16:33

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

00:15:37

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

00:17:40

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

00:14:51

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

00:14:59

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

00:13:57

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

00:16:01

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

00:14:31

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

00:14:34

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

00:16:59

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

00:15:33

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

00:17:49

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

00:16:11

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

00:13:30

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

00:15:34

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

00:14:12

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

00:16:21

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

00:14:42

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

00:12:15

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

00:11:43

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

00:11:44

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

00:15:53

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

00:11:56

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

00:14:57

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

00:13:46

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

00:13:01

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

00:16:18

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

00:14:41

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

00:15:14

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

00:14:42

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

00:13:39

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

00:13:28

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

00:13:59

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

00:15:16

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

00:15:57

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

00:12:48

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

00:16:13

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

00:15:56

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

00:13:23

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

00:13:20

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

00:13:09

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

00:14:56

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

00:16:35

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

00:20:59

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

00:17:09

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

00:19:28

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

00:20:24

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

00:17:08

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

00:22:47

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

00:19:06

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

00:19:03

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

00:22:02

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

00:15:45

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

00:14:56

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

00:21:12

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

00:17:55

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

00:14:24

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

00:16:48

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

00:14:32

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

00:18:29

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

00:16:30

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

00:18:54

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

00:17:12

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

00:14:12

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

00:14:23

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

00:15:44

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

00:14:39

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

00:16:09

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

00:15:35

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

00:16:03

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

00:15:45

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

00:19:13

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

00:15:47

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

00:15:30

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

00:18:03

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

00:13:01

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

00:13:52

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

00:15:28

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

00:15:46

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

00:14:40

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

00:17:35

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

00:14:18

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

00:07:42

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

00:16:17

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

00:15:52

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

00:13:49

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

00:07:05

passed #371618029
gitlab-org
rspec-ee migration pg9 1/2

00:06:05

passed #371618030
gitlab-org
rspec-ee migration pg9 2/2

00:07:05

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

00:07:50

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

00:17:51

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

00:18:12

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

00:17:30

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

00:17:13

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

00:17:40

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

00:06:31

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

00:11:45

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

00:20:03

passed #371618031
gitlab-org
rspec-ee unit pg9 1/5

00:20:16

passed #371618032
gitlab-org
rspec-ee unit pg9 2/5

00:26:10

passed #371618033
gitlab-org
rspec-ee unit pg9 3/5

00:24:41

passed #371618034
gitlab-org
rspec-ee unit pg9 4/5

00:21:15

passed #371618035
gitlab-org
rspec-ee unit pg9 5/5

00:28:07

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

00:11:00

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

00:17:16

passed #371617823
allowed to fail
sast

00:11:37

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

00:12:11

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

00:09:14

passed #371617810
gitlab-org
webpack-dev-server

00:05:25

failed #371617939
gitlab-org
rspec system pg9 7/24

00:25:33

 
  Post Test
passed #371618070
gitlab-org
coverage

00:07:46

97.38%
failed #371618071
gitlab-org allowed to fail
flaky-examples-check

00:03:43

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

00:26:40

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

00:02:55

passed #371618074
gitlab-org allowed to fail manual
review-stop

00:00:33

 
  Qa
passed #371618076
allowed to fail
dast

00:03:35

manual #371618075
allowed to fail manual
package-and-qa-manual
passed #371618083
docker gitlab-org allowed to fail
review-performance

00:03:33

manual #371618078
docker gitlab-org allowed to fail manual
review-qa-all 1/5
manual #371618079
docker gitlab-org allowed to fail manual
review-qa-all 2/5
manual #371618080
docker gitlab-org allowed to fail manual
review-qa-all 3/5
manual #371618081
docker gitlab-org allowed to fail manual
review-qa-all 4/5
manual #371618082
docker gitlab-org allowed to fail manual
review-qa-all 5/5
failed #371618077
docker gitlab-org allowed to fail
review-qa-smoke

00:03:34

 
  Post Qa
manual #371618084
gitlab-org allowed to fail manual
parallel-spec-reports
 
Name Stage Failure
failed
flaky-examples-check Post Test
    "first_flaky_at": "2019-12-06 12:19:02 +0000",
"last_flaky_at": "2019-12-06 12:19:02 +0000",
"last_flaky_job": "https://gitlab.com/gitlab-org/gitlab/-/jobs/371617917"
}
}
Running after script...
$ date
Fri Dec 6 12:55:23 UTC 2019
ERROR: Job failed: exit code 1
failed
review-qa-smoke Qa
	from /usr/local/bundle/bin/gitlab-qa:23:in `<main>'
bin/qa:7:in `<top (required)>'
Running after script...
$ date
Fri Dec 6 13:05:57 UTC 2019
Uploading artifacts...
./qa/gitlab-qa-run-*: found 2 matching files
Uploading artifacts to coordinator... ok
id=371618077 responseStatus=201 Created token=_KYeczKy
ERROR: Job failed: exit code 1