···
2
-
#!nix-shell -i python -p pythonFull pythonPackages.requests pythonPackages.pyquery pythonPackages.click
2
+
#!nix-shell -i python3 -p 'python3.withPackages(ps: with ps; [ requests pyquery click ])'
# To use, just execute this script with --help to display help.
···
'nix-instantiate', '-E', 'import ./maintainers/maintainer-list.nix {}', '--eval', '--json'
maintainers = json.loads(maintainers_json)
19
-
MAINTAINERS = {v: k for k, v in maintainers.iteritems()}
19
+
MAINTAINERS = {v: k for k, v in maintainers.items()}
def get_response_text(url):
···
48
+
def print_build(table_row):
49
+
a = pq(table_row)('a')[1]
50
+
print("- [ ] [{}]({})".format(a.text, a.get('href')), flush=True)
52
+
maintainers = get_maintainers(a.text)
54
+
print(" - maintainers: {}".format(", ".join(map(lambda u: '@' + u, maintainers))))
55
+
# TODO: print last three persons that touched this file
56
+
# TODO: pinpoint the diff that broke this build, or maybe it's transient or maybe it never worked?
···
# TODO: aborted evaluations
# TODO: dependency failed without propagated builds
87
+
print('\nFailures:')
for tr in d('img[alt="Failed"]').parents('tr'):
78
-
print("- [ ] [{}]({})".format(a.text, a.get('href')))
82
-
maintainers = get_maintainers(a.text)
84
-
print(" - maintainers: {}".format(", ".join(map(lambda u: '@' + u, maintainers))))
85
-
# TODO: print last three persons that touched this file
86
-
# TODO: pinpoint the diff that broke this build, or maybe it's transient or maybe it never worked?
91
+
print('\nDependency failures:')
92
+
for tr in d('img[alt="Dependency failed"]').parents('tr'):
if __name__ == "__main__":
99
+
except Exception as e:
import pdb;pdb.post_mortem()