-
Notifications
You must be signed in to change notification settings - Fork 155
Add CI jobs for checking and testing with no default features #36
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
Yeah, I saw an existing bug on
Thanks a ton. Let us know if you get stuck on anything.
As a reviewer, it can be quite useful to tell at a glance the current state of a PR. Tests failing is less severe than compilation failures, which are less severe than things like clippy or formatting violations. |
|
Four of these errors are caused by a dependency upgrade which was part of #1. The Should we first downgrade |
|
Two more errors are also caused by a dependency upgrade, |
|
I'd like to fix these issues here; the dependency upgrade was good for other reasons, and the fix should be self-contained. |
Could you also add those for
I added the CI by copying this quickstart because I wanted something quick to setup to make sure tests would be kept green |
|
This is now ready to review. Please take extra care while reviewing my fixes to the compile errors, I didn't really know what I was doing while converting the libraries to constant generics. I think renaming the CI jobs also messed up the required checks, we might need to change the settings there (or change the names back). |
alice-i-cecile
left a comment
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.
Looks great; that's a nice little application of const generics.
|
We probably need to bump a minor version for this, because it's probably a breaking change, right? Should I change the version in the |
|
@TimJentzsch with respect to CI, I have two thoughts:
|
The test suits will still catch errors here, this many jobs make the CI too noisy.
* Add GitHub Actions workflows for checking and testing with no default features * Convert heapless constants to Rust constants * Migrate arrayvec types to constant generics * Remove arrayvec::Array trait usage * Add CI with --no-default-features --features-alloc flags * Remove cargo check jobs from CI The test suits will still catch errors here, this many jobs make the CI too noisy.
Closes #32.
This PR adds two new jobs to the CI workflow to
cargo checkandcargo testwith the--no-default-featuresflag. Currently this has mainly the effect of enablingno_std.Notably these currently throw errors, which just highlights the need to include it in CI.
I'm not sure if I'm able to resolve these errors as I've never worked with
no_stdbefore, but I can certainly try :)Side note: Why do we have both
cargo checkandcargo testjobs? Wouldn'tcargo testalways fail ifcargo checkfails?TODO:
[email protected][email protected]--no-default-features --features allocflagsThe fixes to the no-default-feature configuration is probably a breaking change.