Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix (abr-testing): Checks that most recent run is completed in abr_scale script #15661

Merged
merged 3 commits into from
Jul 19, 2024

Conversation

rclarke0
Copy link
Contributor

Overview

Checks that run being pulled is completed. Adds error handling if no new runs need to be added.

Test Plan

Changelog

Review requests

Risk assessment

@rclarke0 rclarke0 requested a review from a team as a code owner July 15, 2024 19:27
Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Spidey-sense tingles at that UnboundLocalError, I think that should be optionally None instead

try:
num_of_runs_added = len(runs_and_robots)
print(f"{num_of_runs_added} run(s) added.")
except UnboundLocalError:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is usually not an exception you want to be catching. Maybe make runs_and_robots optionally None instead and always exist?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

runs_and_robots is defined at the beginning so i think i can get rid of the error handling

@rclarke0 rclarke0 requested a review from sfoster1 July 16, 2024 12:18
@rclarke0 rclarke0 changed the title Checks that most recent run is completed in abr_scale script fix (abr-testing): Checks that most recent run is completed in abr_scale script Jul 17, 2024
@rclarke0 rclarke0 requested a review from a team July 17, 2024 13:42
Copy link
Member

@sfoster1 sfoster1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@rclarke0 rclarke0 merged commit c37c95e into edge Jul 19, 2024
5 checks passed
@rclarke0 rclarke0 deleted the most-recent-run-fix branch July 19, 2024 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants