mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-11-25 06:20:40 +08:00
upload fix and priority
This commit is contained in:
parent
79a4a7e1d7
commit
09f037c0eb
2 changed files with 2 additions and 1 deletions
|
@ -276,6 +276,7 @@ class jobsManager:
|
||||||
pkg_update_list.append(fpath)
|
pkg_update_list.append(fpath)
|
||||||
sizes = [f.stat().st_size / 1000 / 1000 for f in f_to_upload]
|
sizes = [f.stat().st_size / 1000 / 1000 for f in f_to_upload]
|
||||||
pkg_update_list_human = " ".join([f.name for f in pkg_update_list])
|
pkg_update_list_human = " ".join([f.name for f in pkg_update_list])
|
||||||
|
assert pkg_update_list
|
||||||
max_tries = 10
|
max_tries = 10
|
||||||
for tries in range(max_tries):
|
for tries in range(max_tries):
|
||||||
timeouts = rrun('push_start', args=([f.name for f in f_to_upload], sizes))
|
timeouts = rrun('push_start', args=([f.name for f in f_to_upload], sizes))
|
||||||
|
|
2
extra.py
2
extra.py
|
@ -30,7 +30,7 @@ def gen_pkglist(pkgconfigs, pkgvers, pkgerrs):
|
||||||
# namelist is a list of pkgnames
|
# namelist is a list of pkgnames
|
||||||
pkgall = dict()
|
pkgall = dict()
|
||||||
for pc in pkgconfigs:
|
for pc in pkgconfigs:
|
||||||
ps = ('type', 'cleanbuild', 'timeout')
|
ps = ('type', 'cleanbuild', 'timeout', 'priority')
|
||||||
hps = ('prebuild', 'postbuild', 'update', 'failure')
|
hps = ('prebuild', 'postbuild', 'update', 'failure')
|
||||||
dps = {p:getattr(pc, p, None) for p in ps}
|
dps = {p:getattr(pc, p, None) for p in ps}
|
||||||
dhps = {p:'\n'.join([str(cmd) for cmd in getattr(pc, p, None)]) for p in hps}
|
dhps = {p:'\n'.join([str(cmd) for cmd in getattr(pc, p, None)]) for p in hps}
|
||||||
|
|
Loading…
Reference in a new issue