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

Make unit testing (usually) mandatory #16371

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

logan-markewich
Copy link
Collaborator

Fixes #16370

@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Oct 4, 2024
@brycecf
Copy link
Contributor

brycecf commented Oct 4, 2024

Could a minimum coverage requirement also be added to the pre-commit?

Not sure of a good way to do that without blocking all new PRs in the immediate though...

@logan-markewich
Copy link
Collaborator Author

logan-markewich commented Oct 4, 2024

Yea @brycecf minimum coverage is pretty hard in CICD, especially with a monorepo

@masci
Copy link
Member

masci commented Oct 4, 2024

@brycecf it would be a bit invasive doing it in the pre-commit, but I would support having a CI check in the PR, services like codecov can even leave comments to explain how the current coverage went down

@logan-markewich
Copy link
Collaborator Author

@masci would codecov only check coverage for the latest changes in a given PR?

Copy link
Member

@masci masci left a comment

Choose a reason for hiding this comment

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

💯

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 4, 2024
@masci
Copy link
Member

masci commented Oct 4, 2024

@logan-markewich yes, the coverage would be measured against the PR branch and compared with main, showing how it would change after merging

@logan-markewich logan-markewich merged commit fb9dda6 into main Oct 4, 2024
10 checks passed
@logan-markewich logan-markewich deleted the logan/template_change branch October 4, 2024 17:59
jzhao62 pushed a commit to jzhao62/llama_index that referenced this pull request Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request]: Banish "Stared at the Code" and Enforce Unit Testing Requirements for Integration PRs
3 participants