-
Notifications
You must be signed in to change notification settings - Fork 699
feat: add cargo hack check
to ci
#6328
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
feat: add cargo hack check
to ci
#6328
Conversation
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.
LGMT!
Just one note: at the time of writing, the Check the constants from stacks-inspec
job (from constants-check.yml
) still appears as pending, even though the workflow summary graph shows it as green (completed and passed).
Could just be a transient github issue?!
PR WORKFLOW SUMMARY
https://github.com/stacks-network/stacks-core/actions/runs/16675997792?pr=6328
Thanks for pointing it out! It's kinda strange. I run the workflow again, and the job seems to succeed without problems https://github.com/stacks-network/stacks-core/actions/runs/16675997792/job/47202664222 . But I am not sure why it still looks like is pending in here. @wileyj do you have any insights? |
that check was definitely run (successfully). best guess is it's a UI issue or the status wasn't reported after it completed. a retry may trigger it update: |
closing and reopening - test if the pending check will be solved |
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project status has failed because the head coverage (67.00%) is below the target coverage (80.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## develop #6328 +/- ##
===========================================
+ Coverage 65.36% 67.00% +1.63%
===========================================
Files 552 552
Lines 351502 351502
===========================================
+ Hits 229768 235526 +5758
+ Misses 121734 115976 -5758 see 394 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
found the reason - the name of the workflow was changed (in this PR), so the required status check will not be run until that is modified. |
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.
lgtm
c21aea7
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Supersedes #6262
This PR introduces a new workflow (cargo-hack-check.yml) to verify that all feature flag in our workspace compile successfully.
The goal is not to accidentally break our support for wasm in future PRs, and prevent accedentally break feature flags like it recently happened in #6228
It is structured into three stages:
This job has fail-fast: false so that a failure in one WASM check doesn't prevent the other from running.
Also:
.github/workflows/core-build-tests.yml
was renamed to.github/workflows/constants-check.yml
. This workflow contained a subset of the cargo checks that we are now performing via cargo hack. After removing those check, I decided to rename it.When running
cargo hack check
, it detected 2 failing cases, fixed in this PR:stacks-node
: the Cargo.toml had two features that referencedstacks-signer
, which is not a dependency but a dev-dependency.monitoring_prom
: not neededtesting
: already present in the declaration ofstacks-signer
under the dev-dependenciesclarity
: fixescargo check --no-default-features --features testing
. The change was needed because the testing feature is relying on symbols behind therusqlite
feature.Applicable issues
Additional info (benefits, drawbacks, caveats)
Checklist
docs/rpc/openapi.yaml
andrpc-endpoints.md
for v2 endpoints,event-dispatcher.md
for new events)clarity-benchmarking
repobitcoin-tests.yml