-
Notifications
You must be signed in to change notification settings - Fork 302
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
ci: add per-crate checks via cargo-hack #4166
Conversation
4e02841
to
41dce1e
Compare
08beb3b
to
b06bb6e
Compare
b06bb6e
to
29ae1dc
Compare
@@ -1,6 +1,7 @@ | |||
use anyhow::{Context, Result}; | |||
use async_trait::async_trait; | |||
use cnidarium::StateWrite; | |||
#[cfg(feature = "component")] |
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.
nice catch!
Suggested by @erwanor, based on the Astria CI config [0]. The goal is to ensure that our default feature sets actually work, by compiling each crate in the workspace individually. fix: feature-gating across the workspace Satisifes the new CI check by massaging the feature sets. [0] https://github.com/astriaorg/astria/blob/6cc8e2b828f8f5ee65e03c2b3383c4252b4c6b81/.github/workflows/test.yml#L64-L68
29ae1dc
to
6a0c2bb
Compare
Running the new job with 8vcpus, which we can get away with because we use generous caching. After running the new CI job a few times, observed the following durations:
Let's keep an eye on it: we can always bump up the runner size if it's too slow. |
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.
✨ lovely! spotted one comment nitpick, otherwise i am happy to see some extra assurance that individual crates build. 📦
Describe your changes
Suggested by @erwanor, based on the Astria CI config [0]. The goal is to ensure that our default feature sets actually work, by compiling each crate in the workspace individually.
[0] https://github.com/astriaorg/astria/blob/6cc8e2b828f8f5ee65e03c2b3383c4252b4c6b81/.github/workflows/test.yml#L64-L68
Issue ticket number and link
Checklist before requesting a review
If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason: