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
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
services
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
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
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
devise_helpers.rb
drag_to_helper.rb
dropzone_helper.rb
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
fake_u2f_device.rb
filter_item_select_helper.rb
filter_spec_helper.rb
filtered_search_helpers.rb
fixture_helpers.rb Adds Rubocop rule for line break after guard clause 2017-11-16 17:58:29 +01:00
forgery_protection.rb
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
issuables_list_metadata_shared_examples.rb
issue_helpers.rb
issue_tracker_service_shared_example.rb
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
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
markdown_feature.rb
mentionable_shared_examples.rb
merge_request_helpers.rb
migrations_helpers.rb Reset all connection schema cache after migration tests 2017-09-12 02:49:32 +08:00
milestone_tabs_examples.rb
mobile_helpers.rb
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
project_forks_helper.rb Backport EE change for setting up forked project 2017-10-11 14:11:33 +00:00
prometheus_helpers.rb
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
rake_helpers.rb
reactive_caching_helpers.rb
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
repo_helpers.rb
routing_helpers.rb
search_helpers.rb
seed_helper.rb Migrate creating/deleting a branch to Gitaly 2017-09-06 17:25:17 +02:00
seed_repo.rb
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
setup_builds_storage.rb
sidekiq.rb
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
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
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
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
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
upload_helpers.rb
user_activities_helpers.rb
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