[ews-build] Get master_hostname dynamically in master.cfg
authoraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Mar 2019 18:13:37 +0000 (18:13 +0000)
committeraakash_jain@apple.com <aakash_jain@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Mar 2019 18:13:37 +0000 (18:13 +0000)
https://bugs.webkit.org/show_bug.cgi?id=196255

Reviewed by Lucas Forschler.

* BuildSlaveSupport/ews-build/master.cfg: Get hostname dynamically. Also do not
send events data in test mode.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243508 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/BuildSlaveSupport/ews-build/master.cfg
Tools/ChangeLog

index 0f11129..d5b755f 100644 (file)
@@ -1,4 +1,5 @@
 import os
+import socket
 
 import loadConfig
 from events import Events
@@ -27,5 +28,7 @@ c['buildbotNetUsageData'] = None
 
 loadConfig.loadBuilderConfig(c, is_test_mode_enabled=is_test_mode_enabled)
 
-event_reporter = Events(master_hostname='ews-build.webkit.org', type_prefix='ews')
-c['services'] = [event_reporter]
+if not is_test_mode_enabled:
+    hostname =  socket.gethostname().strip()
+    event_reporter = Events(master_hostname=hostname, type_prefix='ews')
+    c['services'] = [event_reporter]
index bf2db8e..cc5ae56 100644 (file)
@@ -1,5 +1,15 @@
 2019-03-26  Aakash Jain  <aakash_jain@apple.com>
 
+        [ews-build] Get master_hostname dynamically in master.cfg
+        https://bugs.webkit.org/show_bug.cgi?id=196255
+
+        Reviewed by Lucas Forschler.
+
+        * BuildSlaveSupport/ews-build/master.cfg: Get hostname dynamically. Also do not
+        send events data in test mode.
+
+2019-03-26  Aakash Jain  <aakash_jain@apple.com>
+
         [ews-app] Set db_constraint to False for Foreign Keys
         https://bugs.webkit.org/show_bug.cgi?id=196252