Title: [250851] trunk/Tools
Revision
250851
Author
[email protected]
Date
2019-10-08 12:38:43 -0700 (Tue, 08 Oct 2019)

Log Message

Unreviewed, rolling out r250784.

Broke running layout tests.

Reverted changeset:

"results.webkit.org: Start reporting results"
https://bugs.webkit.org/show_bug.cgi?id=202639
https://trac.webkit.org/changeset/250784

Modified Paths

Diff

Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/loadConfig.py (250850 => 250851)


--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/loadConfig.py	2019-10-08 19:37:03 UTC (rev 250850)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/loadConfig.py	2019-10-08 19:38:43 UTC (rev 250851)
@@ -49,11 +49,8 @@
         passwords = make_passwords_json.create_mock_slave_passwords_dict()
     else:
         passwords = json.load(open('passwords.json'))
-    results_server_api_key = passwords.get('results-server-api-key')
-    if results_server_api_key:
-        os.environ['RESULTS_SERVER_API_KEY'] = results_server_api_key
+    config = json.load(open('config.json'))
 
-    config = json.load(open('config.json'))
     c['slaves'] = [BuildSlave(slave['name'], passwords[slave['name']], max_builds=1) for slave in config['slaves']]
 
     c['schedulers'] = []

Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/make_passwords_json.py (250850 => 250851)


--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/make_passwords_json.py	2019-10-08 19:37:03 UTC (rev 250850)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/make_passwords_json.py	2019-10-08 19:38:43 UTC (rev 250851)
@@ -31,9 +31,7 @@
 def create_mock_slave_passwords_dict():
     with open('config.json', 'r') as config_json:
         config_dict = json.load(config_json)
-    result = dict([(slave['name'], '1234') for slave in config_dict['slaves']])
-    result['results-server-api-key'] = 'api-key'
-    return result
+    return dict([(slave['name'], '1234') for slave in config_dict['slaves']])
 
 if __name__ == '__main__':
     with open('passwords.json', 'w') as passwords_file:

Modified: trunk/Tools/BuildSlaveSupport/build.webkit.org-config/steps.py (250850 => 250851)


--- trunk/Tools/BuildSlaveSupport/build.webkit.org-config/steps.py	2019-10-08 19:37:03 UTC (rev 250850)
+++ trunk/Tools/BuildSlaveSupport/build.webkit.org-config/steps.py	2019-10-08 19:38:43 UTC (rev 250851)
@@ -35,8 +35,6 @@
 APPLE_WEBKIT_AWS_PROXY = "http://proxy01.webkit.org:3128"
 S3URL = "https://s3-us-west-2.amazonaws.com/"
 WithProperties = properties.WithProperties
-RESULTS_WEBKIT = 'https://results.webkit.org'
-RESULTS_SERVER_API_KEY = 'RESULTS_SERVER_API_KEY'
 
 
 class TestWithFailureCount(shell.Test):
@@ -418,22 +416,13 @@
                "--clobber-old-results",
                "--builder-name", WithProperties("%(buildername)s"),
                "--build-number", WithProperties("%(buildnumber)s"),
-               "--buildbot-worker", WithProperties("%(slavename)s"),
                "--master-name", "webkit.org",
-               "--buildbot-master", "build.webkit.org",
-               "--report", RESULTS_WEBKIT,
                "--test-results-server", "webkit-test-results.webkit.org",
                "--exit-after-n-crashes-or-timeouts", "50",
                "--exit-after-n-failures", "500",
                WithProperties("--%(configuration)s")]
 
-    def __init__(self, *args, **kwargs):
-        kwargs['logEnviron'] = False
-        shell.Test.__init__(self, *args, **kwargs)
-
     def start(self):
-        self.slaveEnvironment[RESULTS_SERVER_API_KEY] = os.getenv(RESULTS_SERVER_API_KEY)
-
         platform = self.getProperty('platform')
         appendCustomTestingFlags(self, platform, self.getProperty('device_model'))
         additionalArguments = self.getProperty('additionalArguments')
@@ -541,26 +530,10 @@
     name = "run-api-tests"
     description = ["api tests running"]
     descriptionDone = ["api-tests"]
-    command = [
-        "python",
-        "./Tools/Scripts/run-api-tests",
-        "--no-build",
-        WithProperties("--%(configuration)s"),
-        "--verbose",
-        "--buildbot-master", "build.webkit.org",
-        "--builder-name", WithProperties("%(buildername)s"),
-        "--build-number", WithProperties("%(buildnumber)s"),
-        "--buildbot-worker", WithProperties("%(slavename)s"),
-        "--report", RESULTS_WEBKIT,
-    ]
+    command = ["python", "./Tools/Scripts/run-api-tests", "--no-build", WithProperties("--%(configuration)s"), "--verbose"]
     failedTestsFormatString = "%d api test%s failed or timed out"
 
-    def __init__(self, *args, **kwargs):
-        kwargs['logEnviron'] = False
-        TestWithFailureCount.__init__(self, *args, **kwargs)
-
     def start(self):
-        self.slaveEnvironment[RESULTS_SERVER_API_KEY] = os.getenv(RESULTS_SERVER_API_KEY)
         appendCustomTestingFlags(self, self.getProperty('platform'), self.getProperty('device_model'))
         return shell.Test.start(self)
 
@@ -577,26 +550,10 @@
     name = "webkitpy-test"
     description = ["python-tests running"]
     descriptionDone = ["python-tests"]
-    command = [
-        "python",
-        "./Tools/Scripts/test-webkitpy",
-        "--verbose",
-        WithProperties("--%(configuration)s"),
-        "--buildbot-master", "build.webkit.org",
-        "--builder-name", WithProperties("%(buildername)s"),
-        "--build-number", WithProperties("%(buildnumber)s"),
-        "--buildbot-worker", WithProperties("%(slavename)s"),
-        "--report", RESULTS_WEBKIT,
-    ]
+    command = ["python", "./Tools/Scripts/test-webkitpy", "--verbose", WithProperties("--%(configuration)s")]
     failedTestsFormatString = "%d python test%s failed"
 
-    def __init__(self, *args, **kwargs):
-        kwargs['logEnviron'] = False
-        TestWithFailureCount.__init__(self, *args, **kwargs)
-
     def start(self):
-        self.slaveEnvironment[RESULTS_SERVER_API_KEY] = os.getenv(RESULTS_SERVER_API_KEY)
-
         platform = self.getProperty('platform')
         # Python tests are flaky on the GTK builders, running them serially
         # helps and does not significantly prolong the cycle time.

Modified: trunk/Tools/ChangeLog (250850 => 250851)


--- trunk/Tools/ChangeLog	2019-10-08 19:37:03 UTC (rev 250850)
+++ trunk/Tools/ChangeLog	2019-10-08 19:38:43 UTC (rev 250851)
@@ -1,5 +1,17 @@
 2019-10-08  Matt Lewis  <[email protected]>
 
+        Unreviewed, rolling out r250784.
+
+        Broke running layout tests.
+
+        Reverted changeset:
+
+        "results.webkit.org: Start reporting results"
+        https://bugs.webkit.org/show_bug.cgi?id=202639
+        https://trac.webkit.org/changeset/250784
+
+2019-10-08  Matt Lewis  <[email protected]>
+
         Make iPhone simulators pass --iPhone-simulator instead of --iOS
         https://bugs.webkit.org/show_bug.cgi?id=202701
 

Modified: trunk/Tools/Scripts/webkitpy/results/upload.py (250850 => 250851)


--- trunk/Tools/Scripts/webkitpy/results/upload.py	2019-10-08 19:37:03 UTC (rev 250850)
+++ trunk/Tools/Scripts/webkitpy/results/upload.py	2019-10-08 19:38:43 UTC (rev 250851)
@@ -22,7 +22,6 @@
 
 import webkitpy.thirdparty.autoinstalled.requests
 
-import os
 import json
 import requests
 import sys
@@ -32,7 +31,6 @@
 
 
 class Upload(object):
-    API_KEY = os.getenv('RESULTS_SERVER_API_KEY')
     UPLOAD_ENDPOINT = '/api/upload'
     ARCHIVE_UPLOAD_ENDPOINT = '/api/upload/archive'
     BUILDBOT_DETAILS = ['buildbot-master', 'builder-name', 'build-number', 'buildbot-worker']
@@ -171,10 +169,7 @@
 
     def upload(self, hostname, log_line_func=lambda val: sys.stdout.write(val + '\n')):
         try:
-            data = ""
-            if self.API_KEY:
-                data['api_key'] = self.API_KEY
-            response = requests.post('{}{}'.format(hostname, self.UPLOAD_ENDPOINT), data=""
+            response = requests.post('{}{}'.format(hostname, self.UPLOAD_ENDPOINT), data="" cls=Upload.Encoder))
         except requests.exceptions.ConnectionError:
             log_line_func(' ' * 4 + 'Failed to upload to {}, results server not online'.format(hostname))
             return False
@@ -200,8 +195,6 @@
             )
             if self.timestamp:
                 meta_data['timestamp'] = self.timestamp
-            if self.API_KEY:
-                meta_data['api_key'] = self.API_KEY
             response = requests.post(
                 '{}{}'.format(hostname, self.ARCHIVE_UPLOAD_ENDPOINT),
                 data=""
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to