Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix NameError for run_details variable
Corrects a NameError in the `main` function when calling
`_process_and_display_logs_for_failed_jobs`. The script was
attempting to use `run.get('html_url')` where it should have been
`run_details.get('html_url')` after a previous refactor.

This fix ensures the correct variable is used, allowing the script
to properly pass the workflow run's HTML URL to the log processing
function.
  • Loading branch information
google-labs-jules[bot] committed Jun 30, 2025
commit 15531c53271ebad22bc208c4caf15466b94ab1f0
2 changes: 1 addition & 1 deletion scripts/print_workflow_run_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def parse_repo_url_arg(url_string):
sys.stderr.write(f"INFO: Found {len(failed_jobs_this_pattern)} failed job(s) for pattern '{current_pattern_str}'.\n")

# Call the refactored processing function
_process_and_display_logs_for_failed_jobs(args, failed_jobs_this_pattern, run.get('html_url'), current_pattern_str)
_process_and_display_logs_for_failed_jobs(args, failed_jobs_this_pattern, run_details.get('html_url'), current_pattern_str)

found_failures_and_processed = True
sys.stderr.write(f"INFO: Failures processed for pattern '{current_pattern_str}'. Subsequent patterns will not be checked.\n")
Expand Down
Loading