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

optional rocksdb for frame-benchmarking-cli #7649

Merged
merged 3 commits into from
Feb 24, 2025

Conversation

vedhavyas
Copy link
Contributor

@vedhavyas vedhavyas commented Feb 20, 2025

sc-cli brings rocksdb dependency into frame-benchmarking-cli when used with default-features = false.
This PR makes rocksdb deps optional that sc-cli brings in some of the crates. I think I covered all the crates that depend on sc-cli but please let me know if I missed any.

Fixes: #3793

Copy link
Contributor

@nazar-pc nazar-pc left a comment

Choose a reason for hiding this comment

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

Also PR description has a typo, --no-default-feature should be replaced with --default-feature = true

@vedhavyas vedhavyas force-pushed the rocks-db-optional-sc-cli branch from 4fe1b92 to 21604a8 Compare February 21, 2025 10:46
@vedhavyas vedhavyas force-pushed the rocks-db-optional-sc-cli branch from 21604a8 to 04d8968 Compare February 21, 2025 10:47
Copy link
Member

@bkchr bkchr left a comment

Choose a reason for hiding this comment

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

In the workspace rocksdb will still be enabled. Did you check if this doesn't build rocksdb when you only install the benchmarking cli?

@bkchr bkchr requested a review from ggwpez February 24, 2025 09:55
@vedhavyas
Copy link
Contributor Author

In the workspace rocksdb will still be enabled. Did you check if this doesn't build rocksdb when you only install the benchmarking cli?

With default-features=False benchmarking-cli will not bring rocksdb deps in. I have tested this on our repo here autonomys/subspace@afae258 (#3394)

@bkchr bkchr added the T0-node This PR/Issue is related to the topic “node”. label Feb 24, 2025
@bkchr
Copy link
Member

bkchr commented Feb 24, 2025

/cmd fmt

Copy link
Contributor

Command "fmt" has failed ❌! See logs here

Copy link
Member

@ggwpez ggwpez left a comment

Choose a reason for hiding this comment

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

Thanks! Confirmed that cargo tree does not show rocksdb anymore for frame-benchmarking-cli when run with --no-default-features.

@ggwpez ggwpez enabled auto-merge February 24, 2025 16:05
@ggwpez ggwpez added this pull request to the merge queue Feb 24, 2025
Merged via the queue into paritytech:master with commit 2edabef Feb 24, 2025
248 of 254 checks passed
@vedhavyas vedhavyas deleted the rocks-db-optional-sc-cli branch February 24, 2025 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T0-node This PR/Issue is related to the topic “node”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

frame-benchmarking-cli should not build RocksDB
4 participants