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

Sending github error status on unhandled errors + Adding max timeout #465

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

bigbizze
Copy link

@bigbizze bigbizze commented Jan 8, 2024

Addressing #456, I moved the github service initialization outside of code context that involves bundlewatch APIs and other opaque side-effects laden things, so that it can (hopefully always) fail the action when unhandled errors happen, rather than never reporting a status to github like was frequently happening (as per the mentioned issue)

I also added a maxTimeout config option.

bugfix

Does this PR introduce a breaking change?
No

…olves bundlewatch APIs and other opaque side-effects so that we can (hopefully always) fail the action when unhandled errors happen, rather than have it hang forever.
@coveralls
Copy link

coveralls commented Jan 8, 2024

Pull Request Test Coverage Report for Build 98e8a1b4-e61b-420b-b796-5fdc75de6164

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 81.903%

Totals Coverage Status
Change from base Build bb95e15e-d47d-4029-8901-4709dda8a1d4: 0.01%
Covered Lines: 241
Relevant Lines: 283

💛 - Coveralls

…n handlers, adding property to github service class for it so we know if it has never responded to github, and if not we can throw an error
@bigbizze bigbizze changed the title Calling github fail on unhandled error Sending github error status on unhandled errors + Adding max timeout Jan 8, 2024
…tatus to github when the value for maxTimeout is reached. This also helps prevent the infinite hanging issue.
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.

None yet

2 participants