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

add include and exclude config for coverage report #213

Merged
merged 2 commits into from
Dec 13, 2022

Conversation

TingDaoK
Copy link
Contributor

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@graebm graebm left a comment

Choose a reason for hiding this comment

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

fix & ship

exclude_args = UniqueList(env.args.coverage_exclude)
uploader_args = []
for include in include_args:
include += '*'
Copy link
Contributor

@graebm graebm Dec 13, 2022

Choose a reason for hiding this comment

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

trivial: this seems to assume that the user passed a path ending with "/" ?

maybe don't add "/" or asterisk and simply document the path should be like "source/*"

that also lets people include or exclude specific files, instead of assuming it's always a folder

Copy link
Contributor

Choose a reason for hiding this comment

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

actually ... there may be an issue asking users to pass "*" since it needs to be quoted to avoid the shell doing magic on that character

python's core libraries should be good about adding those quotes, but who knows what kind of assumptions our code makes passing around args...

test this branch against aws-c-common (using BUILDER_SOURCE=channels) before doing an actual release with my suggestions

and if it doesn't work, go ahead and keep adding the "*" automatically

Copy link
Contributor Author

Choose a reason for hiding this comment

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

actually when people want to include/exclude a specific file, the asterisk is also kind needed as the file to upload ends with .gcov. (I was checking the .endwith("/") to add * in the end, and then find out that the files cannot be found).

@TingDaoK TingDaoK merged commit bd2cec4 into main Dec 13, 2022
@TingDaoK TingDaoK deleted the add-exlucde-inlcude branch December 13, 2022 19:09
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