Bug 1708288 - Don't skip manifests that have sub-manifest information (#7121)

* Remove condition and add a test
This commit is contained in:
Marco Castelluccio 2021-04-29 20:11:05 +02:00 коммит произвёл GitHub
Родитель 8114e5f129
Коммит f16b015412
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 29 добавлений и 1 удалений

Просмотреть файл

@ -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",
{