Skip to content

Commit 9eaf33e

Browse files
Fix NameError in build_and_push_test_images.py (#14470)
Resolved a `NameError` in `infra/build/functions/build_and_push_test_images.py` by defining the missing `logs_url` variable. This ensures that build failures are reported correctly with a link to the logs, instead of crashing the script. --- *PR created automatically by Jules for task [7867762740301415816](https://jules.google.com/task/7867762740301415816) started by @hunsche* Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: Matheus Aoki Hunsche <[email protected]>
1 parent 76d1fb8 commit 9eaf33e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

infra/build/functions/build_and_push_test_images.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def _run_cloudbuild(build_body):
9696

9797
def wait_for_build_and_report_summary(build_id, cloud_project='oss-fuzz-base'):
9898
"""Waits for a GCB build to complete and reports a detailed summary."""
99+
logs_url = build_lib.get_logs_url(build_id)
99100
credentials, _ = google.auth.default()
100101
cloudbuild = cloud_build('cloudbuild',
101102
'v1',

0 commit comments

Comments
 (0)