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(probe): Resiliency Score reaches more than 100 % with Probe failure #568

Merged
merged 6 commits into from
Sep 21, 2022

Conversation

ispeakc0de
Copy link
Member

@ispeakc0de ispeakc0de commented Sep 20, 2022

Signed-off-by: Shubham Chaudhary shubham.chaudhary@harness.io

What this PR does / why we need it:

Issue fixed:

  1. Handled edge mode, when probe is failed in prechaos phase but it is passed in postchaos phase and stopOnfailure set to false
  2. Fixed the probeSuccessPercentage > 100 issue ( Resiliency Score reaches more than 100 % with Probe failure. litmus#3573 )
  3. Fixed the onchaos probe to run only for the chaos duration interval

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

Checklist:

  • Fixes #
  • PR messages has document related information
  • Labelled this PR & related issue with breaking-changes tag
  • PR messages has breaking changes related information
  • Labelled this PR & related issue with requires-upgrade tag
  • PR messages has upgrade related information
  • Commit has unit tests
  • Commit has integration tests
  • E2E run Required for the changes

Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>
…t passed in postchaos phase with stopOnfailure set to false

Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>
@ispeakc0de ispeakc0de changed the title chore(probe): remove ambiguous attribute phase chore(probe): handle edge mode when probe is failed in prechaos phase but passed in postchaos phase with stopOnfailure set to false Sep 20, 2022
@ispeakc0de ispeakc0de changed the title chore(probe): handle edge mode when probe is failed in prechaos phase but passed in postchaos phase with stopOnfailure set to false fix(probe): Resiliency Score reaches more than 100 % with Probe failure Sep 20, 2022
Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>
Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>
pkg/probe/probe.go Outdated Show resolved Hide resolved
neelanjan00
neelanjan00 previously approved these changes Sep 21, 2022
uditgaurav
uditgaurav previously approved these changes Sep 21, 2022
@ispeakc0de ispeakc0de merged commit af535c1 into litmuschaos:master Sep 21, 2022
SaptarshiSarkar12 pushed a commit to SaptarshiSarkar12/litmus-go that referenced this pull request Sep 21, 2022
…re (litmuschaos#568)

* chore(probe): remove ambiguous attribute phase

Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>

* chore(probe): handle edge mode when probe failed in prechaos phase but passed in postchaos phase with stopOnfailure set to false

Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>

* chore(probe): fixed the probeSuccessPercentage > 100 issue

Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>

* add the failstep for probe failures

Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>

* fixing onchaos probe to run only for chaos duration

Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>
Signed-off-by: Saptarshi Sarkar <saptarshi.programmer@gmail.com>
chinmaym07 pushed a commit to chinmaym07/litmus-go that referenced this pull request Sep 24, 2022
…re (litmuschaos#568)

* chore(probe): remove ambiguous attribute phase

Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>

* chore(probe): handle edge mode when probe failed in prechaos phase but passed in postchaos phase with stopOnfailure set to false

Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>

* chore(probe): fixed the probeSuccessPercentage > 100 issue

Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>

* add the failstep for probe failures

Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>

* fixing onchaos probe to run only for chaos duration

Signed-off-by: Shubham Chaudhary <shubham.chaudhary@harness.io>
Signed-off-by: chinmaym07 <b418020@iiit-bh.ac.in>
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