maintainers/hydra-eval-failures: flush stdout more often

This commit is contained in:
Robin Gloster 2017-03-02 11:45:36 +01:00
parent 0b7861dc7f
commit c5367a4409
No known key found for this signature in database
GPG Key ID: 5E4C836C632C2882

View File

@ -5,6 +5,7 @@
import subprocess
import json
import sys
import click
import requests
@ -75,12 +76,16 @@ def cli(jobset):
a = pq(tr)('a')[1]
print "- [ ] [{}]({})".format(a.text, a.get('href'))
sys.stdout.flush()
maintainers = get_maintainers(a.text)
if maintainers:
print " - maintainers: {}".format(", ".join(map(lambda u: '@' + u, maintainers)))
# TODO: print last three persons that touched this file
# TODO: pinpoint the diff that broke this build, or maybe it's transient or maybe it never worked?
sys.stdout.flush()
if __name__ == "__main__":
try: