Bug 1687792 - Don't test Fenix commits that come from a release channel. r=acreskey

This patch prevents the view-fenix tests from testing commits that come from release-channels. It filters out commits that don't have "remotes/origin" in their name_rev field which indicates if they have a release tag.

Differential Revision: https://phabricator.services.mozilla.com/D102477
This commit is contained in:
Gregory Mierzwinski 2021-01-20 21:56:30 +00:00
Родитель d5e20890a4
Коммит cee4e48087
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -74,7 +74,12 @@ def before_iterations(kw):
tasks = []
for revision in revisions:
try:
commitdate = fenix_repo.commit(revision).committed_date
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.")
continue
commitdate = commit.committed_date
except ValueError:
print("Commit %s is not from the Fenix master branch" % revision)
continue