gitlab-org--gitlab-foss/spec/workers
Stan Hu 1625979653 Properly expire all pipeline caches when pipeline is deleted
When deleting a pipeline, only some of the cache structures were being
expired, but not the full pipeline list. We have to synchronously
schedule a pipeline cache expiration because the pipeline will be
deleted if the Sidekiq expiration job picks it up. To do this, properly
extract all the logic buried in the Sidekiq worker into a service, and
then call the service.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/60469
2019-04-15 08:10:10 -07:00
..
auto_devops
ci Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
concerns Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
deployments Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
gitlab/github_import Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
hashed_storage Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
mail_scheduler Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
object_pool Leave object pools when destroying projects 2018-12-19 13:21:56 +01:00
repository_check Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
todos_destroyer Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
admin_email_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
archive_trace_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
authorized_projects_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
background_migration_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
build_coverage_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
build_finished_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
build_hooks_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
build_success_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
build_trace_sections_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
chat_notification_worker_spec.rb Move ChatOps to Core 2019-02-20 21:29:48 +00:00
cleanup_container_repository_worker_spec.rb Add Container Registry API 2019-01-25 13:13:48 +01:00
cluster_configure_worker_spec.rb Add feature flag for build preparing state 2019-03-20 12:04:46 +11:00
cluster_project_configure_worker_spec.rb Add feature flag for build preparing state 2019-03-20 12:04:46 +11:00
cluster_provision_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
cluster_wait_for_ingress_ip_address_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
create_gpg_signature_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
create_note_diff_file_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
create_pipeline_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
delete_container_repository_worker_spec.rb
delete_diff_files_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
delete_merged_branches_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
delete_user_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
detect_repository_languages_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
email_receiver_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
emails_on_push_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
every_sidekiq_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
expire_build_artifacts_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
expire_build_instance_artifacts_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
expire_job_cache_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
expire_pipeline_cache_worker_spec.rb Properly expire all pipeline caches when pipeline is deleted 2019-04-15 08:10:10 -07:00
git_garbage_collect_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
gitlab_shell_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
gitlab_usage_ping_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
group_destroy_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
import_issues_csv_worker_spec.rb Import CSV Backend 2019-01-07 11:16:58 +08:00
invalid_gpg_signature_update_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
issue_due_scheduler_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
merge_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
migrate_external_diffs_worker_spec.rb Allow external diffs to be used conditionally 2019-03-27 16:51:33 +00:00
namespaceless_project_destroy_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
new_issue_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
new_merge_request_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
new_note_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
pages_domain_verification_cron_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
pages_domain_verification_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
pipeline_hooks_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
pipeline_metrics_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
pipeline_notification_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
pipeline_process_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
pipeline_schedule_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
pipeline_success_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
pipeline_update_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
plugin_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
post_receive_spec.rb Process at most 4 pipelines during push 2019-04-10 11:51:19 +02:00
process_commit_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
project_cache_worker_spec.rb Refactor: extract duplicate steps to a service class 2019-04-05 22:47:20 +09:00
project_daily_statistics_worker_spec.rb Add project http fetch statistics API 2019-02-27 11:52:35 +01:00
project_destroy_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
project_export_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
project_service_worker_spec.rb
propagate_service_template_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
prune_old_events_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
prune_web_hook_logs_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
reactive_caching_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
rebase_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
remote_mirror_notification_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
remove_expired_group_links_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
remove_expired_members_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
remove_unreferenced_lfs_objects_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
repository_cleanup_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
repository_fork_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
repository_import_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
repository_remove_remote_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
repository_update_remote_mirror_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
run_pipeline_schedule_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
schedule_migrate_external_diffs_worker_spec.rb Allow external diffs to be used conditionally 2019-03-27 16:51:33 +00:00
stage_update_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
stuck_ci_jobs_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
stuck_import_jobs_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
stuck_merge_jobs_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
system_hook_push_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
trending_projects_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
update_head_pipeline_for_merge_request_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
update_merge_requests_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
update_project_statistics_worker_spec.rb Refactor: extract duplicate steps to a service class 2019-04-05 22:47:20 +09:00
upload_checksum_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00
wait_for_cluster_creation_worker_spec.rb Add frozen_string_literal to spec/workers 2019-04-01 13:35:22 -03:00