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

Extend YAML configuration to handle "only notify on negative change" #1966

Closed
Tracked by #1350
giovanni-guidini opened this issue Jun 19, 2024 · 0 comments
Closed
Tracked by #1350
Assignees

Comments

@giovanni-guidini
Copy link

giovanni-guidini commented Jun 19, 2024

New options for Coverage
Extends options of comment.require_changes. Default remain False

  • coverage_drop - [project coverage] only post comment if coverage drops more than <coverage.status.project.threshold> percent when comparing HEAD to BASE
  • uncovered_patch - [patch coverage] only post comment if the patch has uncovered lines

obs.: It should also be possible to combine the new options. For example "coverage_drop AND uncovered_patch", "coverage_drop OR uncovered_patch"

@giovanni-guidini giovanni-guidini self-assigned this Jun 19, 2024
giovanni-guidini added a commit to codecov/shared that referenced this issue Jun 21, 2024
We are extending the configuration for required_changes.
ticket: codecov/engineering-team#1966

I might have overengineered the different conditions, but being able to combine in both AND and OR
operations is somewhat tricky. In the end it's a satisfaction problem in that all the elements in the
conditions list need to be satisfied for the comment to occur, and the elements themselves express
and OR grouping.
giovanni-guidini added a commit to codecov/shared that referenced this issue Jun 26, 2024
We are extending the configuration for required_changes.
ticket: codecov/engineering-team#1966

I might have overengineered the different conditions, but being able to combine in both AND and OR
operations is somewhat tricky. In the end it's a satisfaction problem in that all the elements in the
conditions list need to be satisfied for the comment to occur, and the elements themselves express
and OR grouping.
github-merge-queue bot pushed a commit to codecov/shared that referenced this issue Jun 27, 2024
* feat: extend configuration for `comment.required_changes`

We are extending the configuration for required_changes.
ticket: codecov/engineering-team#1966

I might have overengineered the different conditions, but being able to combine in both AND and OR
operations is somewhat tricky. In the end it's a satisfaction problem in that all the elements in the
conditions list need to be satisfied for the comment to occur, and the elements themselves express
and OR grouping.

* one more test

* chore: use parsing lib

Use a proper parsing lib instead of ad-hoc code to parse the required_changes
string options.
Interface remains unchanged.
@codecov-hooky codecov-hooky bot closed this as completed Jun 28, 2024
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

No branches or pull requests

1 participant