Skip to content
Permalink
Browse files

Remove intermittent failure reporting.

  • Loading branch information...
jdm committed Oct 3, 2019
1 parent 7843811 commit 050fcc989daffa966d9cdc3f254789cfcbd5b5d7
Showing with 0 additions and 35 deletions.
  1. +0 −35 python/servo/testing_commands.py
@@ -14,13 +14,11 @@
import sys
import os
import os.path as path
import platform
import copy
from collections import OrderedDict
import time
import json
import urllib2
import urllib
import base64
import shutil
import subprocess
@@ -534,39 +532,6 @@ def filter_intermittents(self, summary, log_filteredsummary, log_intermittents,
else:
intermittents += [failure]

if reporter_api:
if reporter_api == 'default':
reporter_api = "https://build.servo.org/intermittent-failure-tracker"
if reporter_api.endswith('/'):
reporter_api = reporter_api[0:-1]
reported = set()

proc = subprocess.Popen(
["git", "log", "--oneline", "-1"],
stdout=subprocess.PIPE)
(last_merge, _) = proc.communicate()

# Extract the issue reference from "abcdef Auto merge of #NNN"
pull_request = int(last_merge.split(' ')[4][1:])

for intermittent in intermittents:
if intermittent['test'] in reported:
continue
reported.add(intermittent['test'])

data = {
'test_file': intermittent['test'],
'platform': platform.system(),
'builder': os.environ.get('BUILDER_NAME', 'BUILDER NAME MISSING'),
'number': pull_request,
}
request = urllib2.Request("%s/record.py" % reporter_api, urllib.urlencode(data))
request.add_header('Accept', 'application/json')
response = urllib2.urlopen(request)
data = json.load(response)
if data['status'] != "success":
print('Error reporting test failure: ' + data['error'])

if log_intermittents:
with open(log_intermittents, "w") as intermittents_file:
for intermittent in intermittents:

0 comments on commit 050fcc9

Please sign in to comment.
You can’t perform that action at this time.