Skip to content

Commit

Permalink
maintainers/hydra-eval-failures: flush stdout more often
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed Mar 2, 2017
1 parent 0b7861d commit c5367a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions maintainers/scripts/hydra-eval-failures.py
Expand Up @@ -5,6 +5,7 @@

import subprocess
import json
import sys

import click
import requests
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit c5367a4

Please sign in to comment.