Filter out invalid emails in Pipeline Emails integrations
What does this MR do and why?
Enhance email validation and logging for GitLab's integration system:
- Add email format validation for pipeline status email integration
- Filter out invalid emails to ensure only correctly formatted addresses receive notifications
- Add logging for integration type to aid monitoring and debugging
- Update documentation to reflect that integrations filter emails
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
- Turn on the Pipeline status emails integration for a GitLab project with CI enabled. For example: https://gdk.test:3000/gitlab-org/gitlab-shell/-/settings/integrations
- Add both a valid and an invalid email to the recipients list, then select all branches.
- Run a pipeline.
- Confirm that an email is received at the valid email address: https://gdk.test:3000/rails/letter_opener.
- Inspect the Sidekiq logs to ensure the
integration_classwas logged for theIntegrations::ExecuteWorkerworker.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Rodrigo Tomonari