Skip to content

Conversation

@abhishekmadan30
Copy link
Contributor

…witch to the taskcluster package

@abhishekmadan30 abhishekmadan30 requested a review from a team as a code owner October 16, 2025 19:19
Copy link
Contributor

@bhearsum bhearsum left a comment

Choose a reason for hiding this comment

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

Are there other places we're catching errors from the old functions? If you haven't done an audit of them, please do before merging this.

Copy link
Contributor

@bhearsum bhearsum left a comment

Choose a reason for hiding this comment

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

It looks like we might need to catch both of these?

@abhishekmadan30
Copy link
Contributor Author

Are there other places we're catching errors from the old functions? If you haven't done an audit of them, please do before merging this.

I will look through it and see if there is anything, I can change rn

Copy link
Collaborator

@ahal ahal left a comment

Choose a reason for hiding this comment

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

Assuming you've done a quick scan for other such cases, this lgtm!

cancel_task(task_id)
except requests.HTTPError as e:
if e.response.status_code == 409:
except (requests.HTTPError, TaskclusterRestFailure) as e:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we still need to catch HTTPError? I didn't think it would still be possible to get this, same Q for the other two places.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think is possible either, I wanted to keep to air on the side of caution and remove it a later in a less sensitive time

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok sounds good, I don't see any harm in leaving it for now.. Though maybe file an issue to clean it up later?

cancel_task(task_id)
except requests.HTTPError as e:
if e.response.status_code == 409:
except (requests.HTTPError, TaskclusterRestFailure) as e:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok sounds good, I don't see any harm in leaving it for now.. Though maybe file an issue to clean it up later?

@ahal ahal requested review from bhearsum and removed request for bhearsum October 17, 2025 19:17
@ahal ahal merged commit 420b66d into taskcluster:main Oct 17, 2025
14 checks passed
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.

3 participants