Compare commits

...
2 Commits
Author SHA1 Message Date
Andrew Ferlitsch 25f8a7b209 tune: comment 2023-05-26 15:32:22 +00:00
Andrew Ferlitsch ebb27ffd66 feat: results viewer 2023-05-26 15:08:56 +00:00
@@ -0,0 +1,22 @@
'''
Viewer for the weekly regression testing of the official notebooks
Cloud Storage location: gs://cloud-build-notebooks-presubmit/build_results/
'''
import argparse
import json
parser = argparse.ArgumentParser()
parser.add_argument('--file', dest='file',
default='build.json', type=str, help='build results file')
import json
with open('build.json', 'r') as f:
results = json.load(f)
for item in results.items():
if item[1]['passed']:
print(f"{item[0]},PASSED")
else:
print(f"{item[0]},FAILED")