Skip to content

Conversation

@MoralCode
Copy link
Contributor

@MoralCode MoralCode commented Jul 2, 2025

This may happen if requesting issues or issue comments when issues have been disabled for a repo

Description

  • added exception type for 410 Gone errors
  • handle these exceptions in the request retry process so they dont throw an exception

This PR fixes #3191

Notes for Reviewers

Signed commits

  • Yes, I signed my commits.

@MoralCode
Copy link
Contributor Author

Draft because I have a pending question on Slack about how to handle this new exception. as-is this PR will cause a crash at practically the same place in the code, just with a different error message/exception type

@Ulincsys
Copy link
Contributor

Ulincsys commented Jul 2, 2025

If 410 signifies that issue and PR collection cannot continue for that repo, then it seems as though it should be treated the same as a 404.

sgoggins
sgoggins previously approved these changes Jul 7, 2025
Copy link
Member

@sgoggins sgoggins left a comment

Choose a reason for hiding this comment

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

Thank you!! LGTM!

@sgoggins
Copy link
Member

sgoggins commented Jul 7, 2025

@MoralCode : Are you still working on this or are you waiting for another PR?

@MoralCode
Copy link
Contributor Author

MoralCode commented Jul 7, 2025

@MoralCode : Are you still working on this or are you waiting for another PR?

this is still WIP - i just need to add the logic to handle the new exception type i made and handle it similarly to a 404 per the above suggestion (and make sure that doesnt cause unintended side effects, like augur marking the repo as "doesnt exist")

a lot of my ability to test/review/make progress on PRs is currently blocked by getting a local copy of augur running. hoping to have something up and running soon though

@MoralCode MoralCode force-pushed the disabled-issues-410 branch from 6f3685d to 893eb9b Compare July 9, 2025 13:35
@MoralCode MoralCode marked this pull request as ready for review July 9, 2025 13:44
@MoralCode MoralCode force-pushed the disabled-issues-410 branch from 67215b1 to 1197c64 Compare July 9, 2025 13:52
…ithub

This may happen if requesting issues or issue comments when issues have been disabled for a repo

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
…retry

Signed-off-by: Adrian Edwards <adredwar@redhat.com>
Signed-off-by: Adrian Edwards <adredwar@redhat.com>
@MoralCode MoralCode force-pushed the disabled-issues-410 branch from 67a41e0 to 99a8223 Compare July 11, 2025 00:28
@MoralCode
Copy link
Contributor Author

End to end tests caught a missing colon (after i ran manually because the 3 min timeout cut off the stack trace)

@MoralCode
Copy link
Contributor Author

This is ready to go now though

@MoralCode MoralCode requested review from Ulincsys and sgoggins July 11, 2025 00:30
Copy link
Member

@sgoggins sgoggins left a comment

Choose a reason for hiding this comment

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

LGTM!

@Ulincsys
Copy link
Contributor

It looks good to me, but I'd like input from @ABrain7710 before merging

@MoralCode MoralCode requested a review from ABrain7710 July 11, 2025 01:23
Copy link
Member

@sgoggins sgoggins left a comment

Choose a reason for hiding this comment

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

Succinct and elegant @MoralCode . Thank you11

@sgoggins sgoggins merged commit dc17a8f into chaoss:main Jul 14, 2025
10 checks passed
@MoralCode MoralCode deleted the disabled-issues-410 branch July 15, 2025 13:11
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.

collect_github_messages: error handling when issues are disabled

3 participants