gitlab-org--gitlab-foss/spec/support
Bob Van Landuyt f1ae1e39ce Move the circuitbreaker check out in a separate process
Moving the check out of the general requests, makes sure we don't have
any slowdown in the regular requests.

To keep the process performing this checks small, the check is still
performed inside a unicorn. But that is called from a process running
on the same server.

Because the checks are now done outside normal request, we can have a
simpler failure strategy:

The check is now performed in the background every
`circuitbreaker_check_interval`. Failures are logged in redis. The
failures are reset when the check succeeds. Per check we will try
`circuitbreaker_access_retries` times within
`circuitbreaker_storage_timeout` seconds.

When the number of failures exceeds
`circuitbreaker_failure_count_threshold`, we will block access to the
storage.

After `failure_reset_time` of no checks, we will clear the stored
failures. This could happen when the process that performs the checks
is not running.
2017-12-08 09:11:39 +01:00
..
api Refactor have_http_status into have_gitlab_http_status in the specs 2017-10-20 10:13:18 +02:00
banzai
controllers Rewrite the GitHub importer from scratch 2017-11-07 23:24:59 +01:00
cycle_analytics_helpers
features Fix merge_request_spec 2017-11-07 10:27:20 -07:00
gitlab-git-test.git Fix encoding issue with Repository.ls_files 2017-11-02 08:29:03 +00:00
gitlab_stubs Remove private_token from API user entity 2017-11-02 11:39:01 +01:00
google_api Rename GKE as Kubernetes Engine 2017-12-06 15:09:30 -06:00
helpers Fixed click events 2017-10-09 15:21:19 -05:00
import_export fix typo 2017-08-28 17:11:28 +02:00
matchers Allow password authentication to be disabled entirely 2017-11-23 13:16:14 +00:00
prometheus Aling shared_exmaples to "same behavior between KubernetesService and Platform::Kubernetes" 2017-11-28 20:47:59 +09:00
protected_tags Deduplicate protected ref human_access_levels 2017-11-24 13:47:03 +00:00
redis Enable the RSpec/HookArgument cop and auto-correct offenses 2017-08-10 19:29:42 -04:00
services Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
shared_examples Support uploads for groups 2017-12-07 12:27:52 +01:00
api_helpers.rb Remove authentication using user.private_token 2017-11-02 11:39:02 +01:00
background_migrations_matchers.rb Move stages status migration to the background worker 2017-07-05 10:54:48 +02:00
bare_repo_operations.rb Migrate Gitlab::Git::Wiki#file to Gitaly 2017-10-31 20:49:41 +02:00
board_helpers.rb backport for gitlab-ee!2869 2017-10-13 11:11:02 +11:00
capybara.rb add logging back to capybara config and clean up selenium option instantiation 2017-11-29 14:07:52 -06:00
capybara_helpers.rb modified clear_browser_session method to use the manage method for deleting cookies 2017-09-29 13:06:38 -05:00
carrierwave.rb
chat_slash_commands_shared_examples.rb Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
cookie_helper.rb add set_cookie helper 2017-09-22 14:42:43 -05:00
cycle_analytics_helpers.rb Fix cycle analytics specs 2017-11-06 11:36:11 +01:00
database_connection_helpers.rb
db_cleaner.rb Invalidate cache before cleaning db in tests after context 2017-08-23 14:09:29 +02:00
devise_helpers.rb Extract "@request.env['devise.mapping'] = Devise.mappings[:user]" to a test helper 2017-07-20 18:36:53 +02:00
drag_to_helper.rb
dropzone_helper.rb Replace 'browse_files.feature' spinach test with an rspec analog 2017-07-12 23:45:42 +11:00
email_format_shared_examples.rb
email_helpers.rb fix a wrong method call in the refactor 2017-10-12 09:18:15 -04:00
factory_girl.rb
fake_migration_classes.rb Use the migration name as a key in redis 2017-06-26 17:49:30 +02:00
fake_u2f_device.rb
filter_item_select_helper.rb Replaces 'dashboard/merge_requests' spinach with rspec 2017-06-26 14:27:36 +00:00
filter_spec_helper.rb
filtered_search_helpers.rb Add filter by my reaction 2017-08-30 07:48:55 +00:00
fixture_helpers.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
forgery_protection.rb Add specs 2017-07-27 10:32:44 +02:00
generate-seed-repo-rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
git_http_helpers.rb
gitaly.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
gpg_helpers.rb Add more specs. 2017-10-05 22:43:44 -05:00
group_members_shared_example.rb Optimize SQL queries used in Groups::GroupMembersController#create 2017-09-05 15:54:07 -05:00
import_spec_helper.rb
input_helper.rb fix trailing whitespace 2017-10-21 23:20:46 +03:00
inspect_requests.rb refactor wait_for_requests, add slow_requests block helper 2017-11-02 16:36:36 -05:00
issuable_shared_examples.rb Create system notes for group milestone changes 2017-08-07 11:55:00 +01:00
issuables_list_metadata_shared_examples.rb Fix some tests and report the error message 2017-08-09 21:41:45 +08:00
issue_helpers.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
issue_tracker_service_shared_example.rb Improve support for external issue references 2017-06-30 14:47:53 +02:00
javascript_fixtures_helpers.rb Cleaning up repositories for javascript fixture specs to work correctly 2017-08-30 20:22:48 +02:00
jira_service_helper.rb Update factories for git push service 2017-10-24 13:40:22 +03:00
json_response_helpers.rb Remove superfluous type defs in specs 2017-07-27 14:31:52 +02:00
kubernetes_helpers.rb Fix some tests 2017-11-03 03:37:32 +09:00
ldap_helpers.rb Fix SAML error 500 when no groups are defined for user 2017-10-18 10:17:14 +02:00
ldap_shared_examples.rb Leave bad DNs alone instead of raising errors 2017-10-07 10:28:13 -07:00
legacy_path_redirect_shared_examples.rb Add helper methods to redirect legacy paths 2017-11-07 19:52:09 +01:00
live_debugger.rb Address Douwe's feedback 2017-11-02 12:02:51 +01:00
login_helpers.rb Merge branch 'patch-28' into 'master' 2017-11-02 11:58:54 +00:00
malicious_regexp_shared_examples.rb Merge branch '24570-use-re2-for-user-supplied-regexp-9-3' into 'security-9-3' 2017-07-19 22:28:41 -05:00
markdown_feature.rb Support references to group milestones 2017-08-07 11:55:00 +01:00
mentionable_shared_examples.rb Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
merge_request_helpers.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
migrations_helpers.rb Reset all connection schema cache after migration tests 2017-09-12 02:49:32 +08:00
milestone_tabs_examples.rb Correct RSpec/SingleLineHook cop offenses 2017-06-14 13:18:56 -05:00
mobile_helpers.rb Fix implementation of resize_window for Selenium 2017-08-09 22:32:30 -07:00
notify_shared_examples.rb Optimize notification emails specs 2017-09-01 12:34:20 +02:00
omni_auth.rb
prepare-gitlab-git-test-for-commit Vendor the gitlab-git-test repo 2017-06-28 09:30:02 +00:00
project_forks_helper.rb Backport EE change for setting up forked project 2017-10-11 14:11:33 +00:00
prometheus_helpers.rb Fix prometheus service tests 2017-06-06 11:16:15 +02:00
query_recorder.rb Count occurrences of a specific query in the query recorder. 2017-12-04 17:43:48 +01:00
quick_actions_helpers.rb Uncomments tests 2017-08-12 00:14:45 +01:00
rake_helpers.rb Properly set the expectation on the main object 2017-08-09 01:43:33 +08:00
reactive_caching_helpers.rb Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
redis_without_keys.rb Don't use Redis#keys in the circuitbreaker 2017-10-17 12:47:20 +02:00
reference_parser_helpers.rb
reference_parser_shared_examples.rb Correct RSpec/SingleLineHook cop offenses 2017-06-14 13:18:56 -05:00
repo_helpers.rb
routing_helpers.rb Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
search_helpers.rb
seed_helper.rb Migrate creating/deleting a branch to Gitaly 2017-09-06 17:25:17 +02:00
seed_repo.rb Handle missing .gitmodules when getting submodule urls 2017-08-14 10:53:02 +02:00
select2_helper.rb remove unused capybara_select2 helper 2017-11-01 16:16:59 -05:00
selection_helper.rb Fix reply quote keyboard shortcut on MRs 2017-11-21 14:27:16 -06:00
services_shared_context.rb Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
setup_builds_storage.rb
sidekiq.rb Implement draining scheduled sets of background migrations 2017-07-13 11:44:52 +02:00
slack_mattermost_notifications_shared_examples.rb Replaces 'WikiPage::CreateService' calls with 'wiki_page' factory 2017-10-13 14:42:52 +02:00
snippets_shared_examples.rb
sorting_helper.rb Replaces dashboard/dashboard.feature spinach with rspec 2017-07-17 11:16:41 +03:00
stored_repositories.rb Move the circuitbreaker check out in a separate process 2017-12-08 09:11:39 +01:00
stub_configuration.rb Move the circuitbreaker check out in a separate process 2017-12-08 09:11:39 +01:00
stub_env.rb current_application_settings belongs on Gitlab::CurrentSettings 2017-08-31 13:38:33 +01:00
stub_feature_flags.rb Enable all feature flags by default in specs 2017-07-13 13:00:34 +02:00
stub_gitlab_calls.rb Set pipeline config source attribute in a build step 2017-10-11 14:48:28 +02:00
stub_gitlab_data.rb
taskable_shared_examples.rb
test_env.rb Fix legacy migration test 2017-12-03 12:04:49 +01:00
time_tracking_shared_examples.rb Convert variants of trigger('click') -> click 2017-06-16 23:08:27 -07:00
track_untracked_uploads_helpers.rb Fix specs after rebase 2017-12-06 09:34:25 -08:00
unique_ip_check_shared_examples.rb Refactor have_http_status into have_gitlab_http_status in the specs 2017-10-20 10:13:18 +02:00
unpack-gitlab-git-test Vendor the gitlab-git-test repo 2017-06-28 09:30:02 +00:00
update_invalid_issuable.rb Revert "Merge branch '36670-remove-edit-form' into 'master'" 2017-10-26 15:53:55 +01:00
updating_mentions_shared_examples.rb Don't include EmailHelpers manually, pick with rspec 2017-08-03 21:55:48 +08:00
upload_helpers.rb
user_activities_helpers.rb Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
wait_for_requests.rb refactor wait_for_requests, add slow_requests block helper 2017-11-02 16:36:36 -05:00
webmock.rb
workhorse_helpers.rb