Commit graph

17 commits

Author SHA1 Message Date
GitLab Bot
eb1f5a3e08 Add latest changes from gitlab-org/gitlab@master 2020-02-17 18:09:00 +00:00
GitLab Bot
e4ea43b2b8 Add latest changes from gitlab-org/gitlab@master 2020-01-27 21:08:47 +00:00
GitLab Bot
fda8735029 Add latest changes from gitlab-org/gitlab@master 2019-12-23 15:07:48 +00:00
Stan Hu
f11030173b Batch insert CI rspec_profiling data
Instead of inserting a row after each example to an external database,
we save the CI profiling reports into the `rspec_profiling` directory
and insert the data in the update-tests-metadata CI stage.  This should
make each spec run faster and also reduce the number of PostgreSQL
connections needed by concurrent CI builds.

`scripts/insert-rspec-profiling-data` also inserts one file at a time
via the PostgreSQL COPY command for faster inserts. The one side effect
is that the `created_at` and `updated_at` timestamps aren't available
since they aren't generated in the CSV.

Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/10154
2019-03-12 09:51:37 +00:00
Lin Jen-Shin
07d3d44775 Move ModuleWithInstanceVariables to Gitlab namespace
And use .rubocop.yml to exclude paths we don't care,
rather than using the cop itself to exclude.
2017-11-22 17:06:57 +08:00
Lin Jen-Shin
9ac0c76b78 Use StrongMemoize and enable/disable cops properly 2017-11-18 01:01:53 +08:00
Lin Jen-Shin
9ae92b8caa Add cop to make sure we don't use ivar in a module 2017-09-18 21:23:45 +08:00
Rémy Coutable
29c268ee4e
Enable RSpec profiling only if RSPEC_PROFILING_POSTGRES_URL is not empty
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-19 12:15:49 +02:00
Stan Hu
e08130223c Revert "Merge branch 'fix-rspec_profiling-establish_connection-string-deprecation' into 'master'"
This reverts merge request !11150
2017-05-07 22:35:20 +00:00
Luke "Jared" Bennett
e6f008bb84 Cast ENV['RSPEC_PROFILING_POSTGRES_URL'] to symbol in establish_connection call of rspec_profiling.rb 2017-05-07 15:34:27 +00:00
Rémy Coutable
fe57708e6a Resolve "rspec_profiling is enabled for MySQL" 2017-04-28 18:05:39 +00:00
Lin Jen-Shin
76e7d2564d Set profiler only for postgresql not mysql
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10156#note_26812609
2017-04-10 19:21:45 +08:00
Rémy Coutable
f23b35b012
RSpec profiling: Prepend the branch name with ce or ee
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-24 19:57:27 +01:00
Z.J. van de Weg
3ebd29b538 Futher rename the CI variables 2017-03-16 08:49:01 +01:00
Nick Thomas
b1116a9018 Swallow collection errors in RspecProfiling 2017-03-07 16:21:59 +00:00
Nick Thomas
fd38397027 rspec_profiling: Discover the correct branch name in GitLab CI 2017-02-10 15:34:23 +00:00
Nick Thomas
f83b8bd42c Add the rspec_profiling gem and documentation to the GitLab development environment 2017-01-27 12:41:16 +00:00