Bug 1688026 - Enhance restrictions on what Fenix commits to test. r=acreskey

Differential Revision: https://phabricator.services.mozilla.com/D102632
This commit is contained in:
Gregory Mierzwinski 2021-01-21 21:07:22 +00:00
Родитель 2260b7c845
Коммит cb32ea357c
1 изменённых файлов: 10 добавлений и 2 удалений

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

@ -75,8 +75,16 @@ def before_iterations(kw):
for revision in revisions:
try:
commit = fenix_repo.commit(revision)
if "remotes/origin" not in str(commit.name_rev):
print("Commit %s is a release-branch commit, it won't be tested.")
name_rev = str(commit.name_rev)
if (
"remotes/origin" not in name_rev
or "release" in name_rev
or "tag" in name_rev
):
print(
"Commit %s is a release-branch commit, it won't be tested."
% revision
)
continue
commitdate = commit.committed_date