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/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=""