execute

in lib/release_tools/security/managed_versioning_notification_service.rb [14:44]


      def execute
        collect_managed_versioning_issues

        if managed_versioning_issues.empty?
          logger.info("None of the linked issues are for projects are under managed versioning.", security_tracking_issue: security_tracking_issue.web_url)
        else
          logger.info('Notifying RMs that issues for projects under managed versioning were linked to patch release tracking issue', security_tracking_issue: security_tracking_issue.web_url)

          notify_release_managers

          logger.info(managed_versioning_log_message)
        end

        send_slack_notification(:success)
      rescue StandardError => ex
        error_message = <<~MSG
          Managed versioning check failed. If this job continues to fail, manually check if there are any issues for
          projects under managed versioning (https://gitlab.com/gitlab-org/release/docs/-/blob/master/components/managed-versioning/security_release.md
          linked to the tracking issue.

          If any of the issues are for https://gitlab.com/gitlab-org/security/gitaly, follow our documentation for gitaly:
          https://gitlab.com/gitlab-org/release/docs/-/blob/master/general/security/how_to_handle_gitaly_kas_security_merge_requests.md.
        MSG

        logger.fatal(error_message, error: ex)

        send_slack_notification(:failed)

        raise
      end