gitlab-org--gitlab-foss/spec/workers
Dmitriy Zaporozhets c1b490d6ef Merge branch 'handle-smtp-input-errors' into 'master'
Gracefully handle SMTP user input errors (e.g. incorrect email addresses) to prevent Sidekiq retries

### What does this MR do?

This MR gracefully handles SMTP input errors (e.g. incorrect or invalid e-mail addresses) to prevent these types of exceptions from causing Sidekiq to retry the task. If these specific exceptions occur, they will be logged, and the e-mail will be dropped from the queue.

### Why was this MR needed?

If you include an author that has a misspelled e-mail address, Sidekiq will keep sending e-mail to all the recipients even if they have already received the e-mail. The only way to recover is to clear the Sidekiq queue.

Note that other exceptions can still be thrown (e.g. `IOError`, `Net::SMTPAuthenticationError`, `Net::SMTPServerBusy`, `Net::SMTPUnknownError`, and `TimeoutError`). If the worker encounters these, Sidekiq should retry the task.

### What are the relevant issue numbers?

Closes https://github.com/gitlabhq/gitlabhq/issues/9560

See merge request !1163
2015-08-25 09:23:43 +00:00
..
email_receiver_worker_spec.rb Add fixture_file helper. 2015-08-20 12:41:47 -07:00
emails_on_push_worker_spec.rb Gracefully handle SMTP user input errors (e.g. incorrect email addresses) to prevent Sidekiq retries 2015-08-19 23:18:34 -07:00
fork_registration_worker_spec.rb
post_receive_spec.rb Update mock and stub syntax for specs 2015-06-22 12:13:46 +02:00
repository_archive_worker_spec.rb Fix Style/TrailingBlankLines cop violations 2015-06-22 14:38:33 -04:00