зеркало из https://github.com/mozilla/treeherder.git
Bug 1708288 - Don't skip manifests that have sub-manifest information (#7121)
* Remove condition and add a test
This commit is contained in:
Родитель
8114e5f129
Коммит
f16b015412
|
@ -197,3 +197,25 @@ def test_get_group_results(activate_responses, test_repository, test_job):
|
|||
task_groups = groups['V3SVuxO8TFy37En_6HcXLs']
|
||||
|
||||
assert task_groups['dom/base/test/browser.ini']
|
||||
|
||||
|
||||
def test_get_group_results_with_colon(activate_responses, test_repository, test_job):
|
||||
log_path = SampleData().get_log_path("xpcshell-errorsummary-with-colon.log")
|
||||
log_url = 'http://my-log.mozilla.org'
|
||||
|
||||
with open(log_path) as log_handler:
|
||||
responses.add(responses.GET, log_url, body=log_handler.read(), status=200)
|
||||
|
||||
log_obj = JobLog.objects.create(job=test_job, name="errorsummary_json", url=log_url)
|
||||
store_failure_lines(log_obj)
|
||||
|
||||
groups = get_group_results(test_job.push)
|
||||
task_groups = groups['V3SVuxO8TFy37En_6HcXLs']
|
||||
|
||||
assert task_groups[
|
||||
'toolkit/components/extensions/test/xpcshell/xpcshell-e10s.ini:toolkit/components/extensions/test/xpcshell/xpcshell-content.ini'
|
||||
]
|
||||
assert task_groups['toolkit/components/places/tests/unit/xpcshell.ini']
|
||||
assert task_groups[
|
||||
'toolkit/components/extensions/test/xpcshell/xpcshell-e10s.ini:toolkit/components/extensions/test/xpcshell/xpcshell-common-e10s.ini'
|
||||
]
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
{"action": "test_groups", "line": 6, "groups": ["toolkit/components/extensions/test/xpcshell/xpcshell-e10s.ini:toolkit/components/extensions/test/xpcshell/xpcshell-content.ini", "toolkit/components/places/tests/unit/xpcshell.ini", "toolkit/components/extensions/test/xpcshell/xpcshell-e10s.ini:toolkit/components/extensions/test/xpcshell/xpcshell-common-e10s.ini", "toolkit/components/normandy/test/unit/xpcshell.ini", "docshell/test/unit/xpcshell.ini"]}
|
||||
{"status": "OK", "duration": 85897, "line": 246, "group": "toolkit/components/extensions/test/xpcshell/xpcshell-e10s.ini:toolkit/components/extensions/test/xpcshell/xpcshell-content.ini", "action": "group_result"}
|
||||
{"status": "OK", "duration": 108553, "line": 246, "group": "toolkit/components/places/tests/unit/xpcshell.ini", "action": "group_result"}
|
||||
{"status": "OK", "duration": 31004, "line": 246, "group": "toolkit/components/extensions/test/xpcshell/xpcshell-e10s.ini:toolkit/components/extensions/test/xpcshell/xpcshell-common-e10s.ini", "action": "group_result"}
|
||||
{"status": "OK", "duration": 27637, "line": 246, "group": "toolkit/components/normandy/test/unit/xpcshell.ini", "action": "group_result"}
|
||||
{"status": "OK", "duration": 36489, "line": 246, "group": "docshell/test/unit/xpcshell.ini", "action": "group_result"}
|
|
@ -118,7 +118,7 @@ def create_group_result(job_log, line):
|
|||
|
||||
# Log to New Relic if it's not in a form we like. We can enter
|
||||
# Bugs to upstream to remedy them.
|
||||
if "\\" in group_path or ":" in group_path or len(group_path) > 255:
|
||||
if "\\" in group_path or len(group_path) > 255:
|
||||
newrelic.agent.record_custom_event(
|
||||
"malformed_test_group",
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче