Skip to content

fix: Change default highestUserWastedPercent to disabled#708

Open
GautamKumarOffical wants to merge 1 commit into
wagoodman:mainfrom
GautamKumarOffical:fix/issue-606-highestUserWastedPercent-default
Open

fix: Change default highestUserWastedPercent to disabled#708
GautamKumarOffical wants to merge 1 commit into
wagoodman:mainfrom
GautamKumarOffical:fix/issue-606-highestUserWastedPercent-default

Conversation

@GautamKumarOffical

Copy link
Copy Markdown

When highestUserWastedPercent is commented out in the .dive-ci config file, the rule was not being skipped as expected. Instead, it used the default value of 0.1, which caused CI failures even though the user intended to disable that rule.

This behavior was inconsistent with highestWastedBytes, which defaults to "disabled" and is properly skipped when commented out.

Changes

  • Changed the default value of highestUserWastedPercent from "0.1" to "disabled" in DefaultCIRules()
  • Updated the test config file dive-fail.yaml to explicitly set the rule since the default changed

Before

# .dive-ci
rules:
  lowestEfficiency: 0.99
  # highestUserWastedPercent: 0.30  # Still failed with threshold=0.1!

After

The commented-out rule is now properly skipped, making the behavior consistent across all CI rules.

Closes #606

When highestUserWastedPercent is commented out in the .dive-ci config,
the rule was not being skipped but instead used the default value of
0.1. This was inconsistent with highestWastedBytes which defaults to
'disabled' and is properly skipped when commented out.

Changed the default value from '0.1' to 'disabled' to make the behavior
consistent. Users who want this rule active must now explicitly set it
in their config file.

Closes wagoodman#606

Signed-off-by: Gautam Kumar <gautamkumarofficial@users.noreply.github.com>
@GautamKumarOffical

Copy link
Copy Markdown
Author

Hi! This PR changes the default highestUserWastedPercent to disabled. All checks pass. Happy to make any adjustments. Thanks!

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.

Commented out highestUserWastedPercent is not skipped, but set to 0.1

1 participant