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

feat: Added handling of Remote Unavailable error #765

Open
wants to merge 3 commits into
base: feature/graphite-unavailability-retriable-calls
Choose a base branch
from

Conversation

dmitryanchikov
Copy link
Contributor

@dmitryanchikov dmitryanchikov commented Jun 30, 2022

PR Summary

This PR slightly changes handling of Remote API errors:

  • ErrRemoteTriggerResponse and ErrRemoteUnavailable now switch trigger state to EXCEPTION inevitably
  • Specific messages set on ErrRemoteUnavailable error: Remote server unavailable. Trigger is not checked for %d seconds

Screenshots

Trigger target error:
image
Remote unavailable error:
image

@dmitryanchikov dmitryanchikov self-assigned this Jun 30, 2022
@dmitryanchikov dmitryanchikov requested a review from a team as a code owner June 30, 2022 09:54
@dmitryanchikov dmitryanchikov force-pushed the feature/graphite-unavailability-retriable-calls branch from ddfc280 to 73b67b7 Compare July 4, 2022 10:42
@dmitryanchikov dmitryanchikov force-pushed the feature/graphite-unavailability-handling branch 2 times, most recently from 3f20693 to 026e69a Compare July 4, 2022 10:49
@dmitryanchikov dmitryanchikov force-pushed the feature/graphite-unavailability-retriable-calls branch from 73b67b7 to 0bc0ee5 Compare July 6, 2022 07:27
@dmitryanchikov dmitryanchikov force-pushed the feature/graphite-unavailability-handling branch from 026e69a to 5f0678a Compare July 6, 2022 07:28
@codecov-commenter
Copy link

codecov-commenter commented Jul 6, 2022

Codecov Report

Merging #765 (b3afc7e) into feature/graphite-unavailability-retriable-calls (a326352) will increase coverage by 0.17%.
The diff coverage is 73.33%.

❗ Current head b3afc7e differs from pull request most recent head 8c0f2d3. Consider uploading reports for the commit 8c0f2d3 to get more accurate results

@@                                 Coverage Diff                                 @@
##           feature/graphite-unavailability-retriable-calls     #765      +/-   ##
===================================================================================
+ Coverage                                            70.94%   71.11%   +0.17%     
===================================================================================
  Files                                                  177      177              
  Lines                                                 9157     9160       +3     
===================================================================================
+ Hits                                                  6496     6514      +18     
+ Misses                                                2283     2268      -15     
  Partials                                               378      378              
Impacted Files Coverage Δ
api/handler/triggers.go 15.32% <0.00%> (-0.52%) ⬇️
checker/check.go 90.40% <100.00%> (+5.93%) ⬆️
metric_source/remote/request.go 96.22% <100.00%> (ø)
checker/errors.go 100.00% <0.00%> (+25.00%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dmitryanchikov dmitryanchikov force-pushed the feature/graphite-unavailability-retriable-calls branch from 0bc0ee5 to bcc4b92 Compare July 6, 2022 08:09
@dmitryanchikov dmitryanchikov force-pushed the feature/graphite-unavailability-handling branch 2 times, most recently from c5b979e to 1383c1b Compare July 6, 2022 11:33
@dmitryanchikov dmitryanchikov force-pushed the feature/graphite-unavailability-retriable-calls branch from bcc4b92 to c694629 Compare July 6, 2022 11:48
@dmitryanchikov dmitryanchikov force-pushed the feature/graphite-unavailability-retriable-calls branch from c694629 to a326352 Compare July 6, 2022 11:51
@dmitryanchikov dmitryanchikov force-pushed the feature/graphite-unavailability-handling branch from 1383c1b to 88feba3 Compare July 6, 2022 11:52
@kissken kissken force-pushed the feature/graphite-unavailability-retriable-calls branch from a326352 to 19f04a9 Compare August 24, 2022 09:42
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