Compare commits

...
Author SHA1 Message Date
Andrew Ferlitsch 587da4f70e :wwq
Merge branch 'harden_4' of https://github.com/GoogleCloudPlatform/vertex-ai-samples into harden_4
2023-11-06 16:03:09 +00:00
Andrew Ferlitsch 353edca3c0 fix: harden harness against system failure 2023-11-06 15:58:52 +00:00
Andrew Ferlitsch 56035d3840 feat: add option for files not to index 2023-10-24 18:29:50 +00:00
@@ -165,6 +165,10 @@ else:
accumulative_results = execute_changed_notebooks_helper.load_results(results_bucket, results_file)
notebooks = [changed_notebook for changed_notebook in changed_notebooks if execute_changed_notebooks_helper.select_notebook(changed_notebook, accumulative_results, args.test_percent)]
# cap the number of notebooks to the specified percentage
max_notebooks = int((len(changed_notebooks) * args.test_percent))
if (len(notebooks) > max_notebooks):
notebooks = notebooks[:max_notebooks]
run_first = []
if args.run_first_file: