Test failure on master in spec/lib/gitlab/email/handler/create_issue_handler_spec.rb
From https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/43495023:
Failures:
1) Gitlab::Email::Handler::CreateIssueHandler behaves like reply_processing_shared_examples when the user could not be found raises a UserNotFoundError
Failure/Error: throw :abort
UncaughtThrowError:
uncaught throw :abort
Shared Example Group: :reply_processing_shared_examples called from ./spec/lib/gitlab/email/handler/create_issue_handler_spec.rb:6
# ./app/models/project.rb:1754:in `throw'
# ./app/models/project.rb:1754:in `check_repository_absence!'
# ./spec/lib/gitlab/email/handler/create_issue_handler_spec.rb:16:in `block (2 levels) in <top (required)>'
2) Gitlab::Email::Handler::CreateIssueHandler behaves like reply_processing_shared_examples when the user is not authorized to the project raises a ProjectNotFound
Failure/Error: throw :abort
UncaughtThrowError:
uncaught throw :abort
Shared Example Group: :reply_processing_shared_examples called from ./spec/lib/gitlab/email/handler/create_issue_handler_spec.rb:6
# ./app/models/project.rb:1754:in `throw'
# ./app/models/project.rb:1754:in `check_repository_absence!'
# ./spec/lib/gitlab/email/handler/create_issue_handler_spec.rb:16:in `block (2 levels) in <top (required)>'
3) Gitlab::Email::Handler::CreateIssueHandler when everything is fine creates a new issue
Failure/Error: throw :abort
UncaughtThrowError:
uncaught throw :abort
# ./app/models/project.rb:1754:in `throw'
# ./app/models/project.rb:1754:in `check_repository_absence!'
# ./spec/lib/gitlab/email/handler/create_issue_handler_spec.rb:16:in `block (2 levels) in <top (required)>'
4) Gitlab::Email::Handler::CreateIssueHandler when everything is fine when the reply is blank creates a new issue
Failure/Error: throw :abort
UncaughtThrowError:
uncaught throw :abort
# ./app/models/project.rb:1754:in `throw'
# ./app/models/project.rb:1754:in `check_repository_absence!'
# ./spec/lib/gitlab/email/handler/create_issue_handler_spec.rb:16:in `block (2 levels) in <top (required)>'
5) Gitlab::Email::Handler::CreateIssueHandler something is wrong when the issue could not be saved raises an InvalidIssueError
Failure/Error: throw :abort
UncaughtThrowError:
uncaught throw :abort
# ./app/models/project.rb:1754:in `throw'
# ./app/models/project.rb:1754:in `check_repository_absence!'
# ./spec/lib/gitlab/email/handler/create_issue_handler_spec.rb:16:in `block (2 levels) in <top (required)>'
6) Gitlab::Email::Handler::CreateIssueHandler something is wrong when we can't find the incoming_email_token raises an UserNotFoundError
Failure/Error: throw :abort
UncaughtThrowError:
uncaught throw :abort
# ./app/models/project.rb:1754:in `throw'
# ./app/models/project.rb:1754:in `check_repository_absence!'
# ./spec/lib/gitlab/email/handler/create_issue_handler_spec.rb:16:in `block (2 levels) in <top (required)>'
Edited by Stan Hu