summaryrefslogtreecommitdiff
path: root/config/initializers/rspec_profiling.rb
Commit message (Collapse)AuthorAgeFilesLines
* Batch insert CI rspec_profiling dataStan Hu2019-03-121-15/+35
| | | | | | | | | | | | | | | 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
* Move ModuleWithInstanceVariables to Gitlab namespaceLin Jen-Shin2017-11-221-2/+2
| | | | | And use .rubocop.yml to exclude paths we don't care, rather than using the cop itself to exclude.
* Use StrongMemoize and enable/disable cops properlyLin Jen-Shin2017-11-181-3/+2
|
* Add cop to make sure we don't use ivar in a moduleLin Jen-Shin2017-09-181-0/+1
|
* Enable RSpec profiling only if RSPEC_PROFILING_POSTGRES_URL is not empty31933-improve-rspec-profiling-enablingRémy Coutable2017-05-191-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Revert "Merge branch ↵revert-58d1cd6bStan Hu2017-05-071-1/+1
| | | | | 'fix-rspec_profiling-establish_connection-string-deprecation' into 'master'" This reverts merge request !11150
* Cast ENV['RSPEC_PROFILING_POSTGRES_URL'] to symbol in establish_connection ↵fix-rspec_profiling-establish_connection-string-deprecationLuke "Jared" Bennett2017-05-071-1/+1
| | | | call of rspec_profiling.rb
* Resolve "rspec_profiling is enabled for MySQL"Rémy Coutable2017-04-281-4/+4
|
* Set profiler only for postgresql not mysqlLin Jen-Shin2017-04-101-1/+1
| | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10156#note_26812609
* RSpec profiling: Prepend the branch name with `ce` or `ee`Rémy Coutable2017-03-241-1/+5
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Futher rename the CI variableszj-rename-ci-varsZ.J. van de Weg2017-03-161-1/+1
|
* Swallow collection errors in RspecProfilingNick Thomas2017-03-071-9/+28
|
* rspec_profiling: Discover the correct branch name in GitLab CINick Thomas2017-02-101-0/+8
|
* Add the rspec_profiling gem and documentation to the GitLab development ↵23034-enable-rspec-profilingNick Thomas2017-01-271-0/+14
environment