⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 269106 in webkit


Ignore:
Timestamp:
Oct 28, 2020, 9:17:10 AM (6 years ago)
Author:
aakash_jain@apple.com
Message:

[ews] Ensure that uat instance doesn't send emails
​https://bugs.webkit.org/show_bug.cgi?id=218227

Reviewed by Jonathan Bedard.

  • CISupport/ews-build/send_email.py:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/CISupport/ews-build/send_email.py

    r267705 r269106  
    2424import os
    2525import smtplib
     26import socket
    2627
    2728from email.mime.text import MIMEText
    … …  
    2930is_test_mode_enabled = os.getenv('BUILDBOT_PRODUCTION') is None
    3031
     32CURRENT_HOSTNAME = socket.gethostname().strip()
     33EWS_BUILD_HOSTNAME = 'ews-build.webkit.org'
    3134FROM_EMAIL = 'ews@webkit.org'
    3235IGALIA_JSC_QUEUES_PATTERNS = ['armv7', 'mips', 'i386']
    … …  
    4750def send_email(to_emails, subject, text, reference=''):
    4851    if is_test_mode_enabled:
     52        return
     53    if CURRENT_HOSTNAME != EWS_BUILD_HOSTNAME:
     54        # Only allow EWS production instance to send emails.
    4955        return
    5056    if not to_emails:
  • trunk/Tools/ChangeLog

    r269105 r269106  
     12020-10-28  Aakash Jain  <aakash_jain@apple.com>
     2
     3        [ews] Ensure that uat instance doesn't send emails
     4        https://bugs.webkit.org/show_bug.cgi?id=218227
     5
     6        Reviewed by Jonathan Bedard.
     7
     8        * CISupport/ews-build/send_email.py:
     9
    1102020-10-28  Sam Weinig  <weinig@apple.com>
    211
Note: See TracChangeset for help on using the changeset viewer.