зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1778818 - Add index to are-we-esmified-yet job, and add commit hash and date to the JSON. r=marco
Differential Revision: https://phabricator.services.mozilla.com/D151426
This commit is contained in:
Родитель
516034b726
Коммит
0cd8ca1ac9
|
@ -18,6 +18,9 @@ jobs:
|
|||
run-on-projects: []
|
||||
attributes:
|
||||
cron: true
|
||||
index:
|
||||
product: firefox
|
||||
job-name: are-we-esmified-yet
|
||||
treeherder:
|
||||
platform: lint/opt
|
||||
kind: other
|
||||
|
|
|
@ -154,9 +154,27 @@ def to_stat(files):
|
|||
return stat
|
||||
|
||||
|
||||
if mode == "hg":
|
||||
cmd = ["hg", "parent", "--template", "{node}"]
|
||||
commit_hash = list(run(cmd))[0]
|
||||
|
||||
cmd = ["hg", "parent", "--template", "{date|shortdate}"]
|
||||
date = list(run(cmd))[0]
|
||||
else:
|
||||
cmd = ["git", "log", "-1", "--pretty=%H"]
|
||||
git_hash = list(run(cmd))[0]
|
||||
cmd = ["git", "cinnabar", "git2hg", git_hash]
|
||||
commit_hash = list(run(cmd))[0]
|
||||
|
||||
cmd = ["git", "log", "-1", "--pretty=%cs"]
|
||||
date = list(run(cmd))[0]
|
||||
|
||||
files = new_files_struct()
|
||||
collect_jsm(files)
|
||||
collect_esm(files)
|
||||
|
||||
stat = to_stat(files)
|
||||
stat["hash"] = commit_hash
|
||||
stat["date"] = date
|
||||
|
||||
print(json.dumps(stat, indent=2))
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче