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

Don't fail if benchmark performs better irrespective of threshold config #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

madhan-mettle
Copy link

There might be situations if the changes drastically improves the
performance or the thresholds are configured with lower values it lead
to failure of the action whereas it is not.

i.e if the alert and failure threshold are configured as 0.1 and 0.2 and
the previous and current values are bigger, then the existing check
would consider it as failure

So added a check to ensure the failure is calculated based on the
performance and threshold rather than threshold alone

There might be situations if the changes drastically improves the
performance or the thresholds are configured with lower values it lead
to failure of the action whereas it is not.

i.e if the alert and failure threshold are configured as 0.1 and 0.2 and
the previous and current values are bigger, then the existing check
would consider it as failure

So added a check to ensure the failure is calculated based on the
performance and threshold rather than threshold alone
Comment on lines +304 to +307
//Only consider it as failure if the benchmark performed better irrespective of the alert threshold
// For ex if there is a massive performance improvement between commits
// or the alert threshold and failure threshold is lower the failure might be triggered.
// This check ensures that the check is failure only if the performance is not better
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment is difficult to read. It starts with "Only consider it as failure if the benchmark performed better…" Isn't the purpose of this change not to fail if the benchmark performs better?

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.

2 participants