[releng] isolate the tag in batches to work around a bug in koji
Dennis Gilmore
ausil at fedoraproject.org
Wed Feb 11 10:11:42 UTC 2015
commit 3ca9afe870fb5ccacde271f35b187a32480cc0fa
Author: Dennis Gilmore <dennis at ausil.us>
Date: Wed Feb 11 04:11:19 2015 -0600
isolate the tag in batches to work around a bug in koji
scripts/isolate-tag.py | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/scripts/isolate-tag.py b/scripts/isolate-tag.py
index 54266da..befc786 100755
--- a/scripts/isolate-tag.py
+++ b/scripts/isolate-tag.py
@@ -42,11 +42,22 @@ for build in allbuilds:
tagbuilds.append(build['nvr'])
kojisession.multicall = True
-
+pkgcount = 0
+batch = 1
# tag builds
for build in tagbuilds:
- print "tag %s itno %s" % (build, tag)
+ pkgcount += 1
+ print "tag %s into %s" % (build, tag)
kojisession.tagBuildBypass(tag, build)
+ if pkgcount == 1000:
+ batch += 1
+ print 'tagging %s builds' % pkgcount
+ result = kojisession.multiCall()
+ pkgcount = 0
+ kojisession.multicall = True
+
+print 'Tagging %s builds.' % pkgcount
+print 'Tagged %s batches' % batch
result = kojisession.multiCall()
More information about the rel-eng
mailing list