-
Notifications
You must be signed in to change notification settings - Fork 38
Adds CI matrix for crate features #533
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
Conversation
This change makes it so we build our crate with all the various interesting permutations: * *default* - build with no features set. * `--all-features` - build with all the bells and whistles. * `--features X` where `X` is: * `ion-hash` * `experimental` * `ion-hash,experimental` When building/testing with these permutations, it uncovered a bug in the `ion-hash` doc tests where the test code depends on an optional feature. This has been conditionally compiled out, preserving the text of the doc comment (only runs when the appropriate feature flag is enabled). Also updates the build of API docs to error out on leaking internal references. This change cleans up such documentation comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we check combinations of features for the coverage.yml
workflow as well?
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #533 +/- ##
==========================================
- Coverage 89.34% 89.34% -0.01%
==========================================
Files 84 84
Lines 13284 13284
==========================================
- Hits 11869 11868 -1
- Misses 1415 1416 +1
☔ View full report in Codecov by Sentry. |
Co-authored-by: Matthew Pope <[email protected]>
@popematt - I don't think this is worth it. For code coverage, I think we just want to see the aggregate sum of coverage via |
Closing and re-opening to try to unstuck Waiting for status to be reported There is something odd going on here: |
Actually, it's waiting for those because of the branch protection rule. I just updated it, and as you can see, now it's waiting for e.g. |
Oh thanks! I was quite puzzled as to what I was missing... |
This change makes it so we build our crate with all the various interesting permutations:
--all-features
- build with all the bells and whistles.--features X
whereX
is:ion-hash
experimental
ion-hash,experimental
When building/testing with these permutations, it uncovered a bug in the
ion-hash
doc tests where the test code depends on an optional feature. This has been conditionally compiled out, preserving the text of the doc comment (only runs when the appropriate feature flag is enabled).Also updates the build of API docs to error out on leaking internal references. This change cleans up such documentation comments.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.