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: The disabled failed probe is not retrying when it encounters an incident after enabling it #1242

Merged

Conversation

haricnugraha
Copy link
Contributor

@haricnugraha haricnugraha commented Feb 29, 2024

Monika Pull Request (PR)

What feature/issue does this PR add

The disabled failed probe is not retrying when it encounters an incident after enabling it.

How did you implement / how did you fix it

Remove incident data when disabling a probe.

How to test

  1. Run in Symon mode
  2. Make the probe target to be down
  3. Disable the probe
  4. Enable the probe

Video

Before (Incident is not reported)

Before.mp4

After (Incident reported)

Remove.incident.state.mp4

Copy link

codecov bot commented Feb 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.58%. Comparing base (a907167) to head (ecdcfe5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1242      +/-   ##
==========================================
+ Coverage   63.49%   63.58%   +0.09%     
==========================================
  Files         111      111              
  Lines        3304     3304              
  Branches      569      567       -2     
==========================================
+ Hits         2098     2101       +3     
+ Misses       1016     1015       -1     
+ Partials      190      188       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@haricnugraha haricnugraha marked this pull request as ready for review March 1, 2024 08:22
seniordevid

This comment was marked as duplicate.

Copy link
Contributor

@raosan raosan left a comment

Choose a reason for hiding this comment

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

LGTM

@raosan raosan requested review from seniordevid and removed request for seniordevid March 5, 2024 06:43
Copy link
Contributor

@dennypradipta dennypradipta left a comment

Choose a reason for hiding this comment

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

Nicely done.

@dennypradipta dennypradipta merged commit e01a62d into hyperjumptech:main Mar 5, 2024
6 checks passed
@haricnugraha haricnugraha deleted the fix/not-retrying-enabled-probe branch March 5, 2024 09:24
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.

4 participants