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

avoid enabling "testing" feature in workspace from benches #1955

Merged
merged 4 commits into from
Oct 24, 2023

Conversation

tzemanovic
Copy link
Member

@tzemanovic tzemanovic commented Sep 28, 2023

Describe your changes

The changes from #1907 inadvertently affected the whole workspace as benches have non-dev dependency on namada and namada_apps with "testing" feature on, which in turn enables the "dev" feature. This means that in 0.23.0 building from the root would switch on these features by default even for the build of the binaries (e.g. cargo build or cargo run).

  • To fix this 0613ac2 moves the library code of benches that requires the "testing" feature into namada_apps crate and feature-guard it with the same feature "testing". This allowed to switch all the [dependencies] in benches to [dev-dependencies] and so the workspace build is no longer affected by these.
  • 4dc0304 - updates docs for bench
  • 5aaa83e - removes deps from benches that are no longer needed

Indicate on which release or other PRs this topic is based on

0.23.0

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@tzemanovic tzemanovic marked this pull request as ready for review September 28, 2023 11:16
@tzemanovic tzemanovic requested a review from grarco September 28, 2023 11:17
@Fraccaman Fraccaman mentioned this pull request Oct 16, 2023
tzemanovic added a commit that referenced this pull request Oct 18, 2023
* origin/tomas/avoid-testing-feature-in-workspace:
  changelog: add #1955
  benches: rm unused deps
  benches: update docs
  benches: move bench lib code to apps crate and feature guard it
Fraccaman added a commit that referenced this pull request Oct 23, 2023
* origin/tomas/avoid-testing-feature-in-workspace:
  changelog: add #1955
  benches: rm unused deps
  benches: update docs
  benches: move bench lib code to apps crate and feature guard it
tzemanovic added a commit that referenced this pull request Oct 24, 2023
* origin/tomas/avoid-testing-feature-in-workspace:
  changelog: add #1955
  benches: rm unused deps
  benches: update docs
  benches: move bench lib code to apps crate and feature guard it
@tzemanovic tzemanovic mentioned this pull request Oct 24, 2023
@tzemanovic tzemanovic merged commit bc2e285 into main Oct 24, 2023
@tzemanovic tzemanovic deleted the tomas/avoid-testing-feature-in-workspace branch October 24, 2023 11:26
brentstone pushed a commit that referenced this pull request Nov 11, 2023
* origin/tomas/avoid-testing-feature-in-workspace:
  changelog: add #1955
  benches: rm unused deps
  benches: update docs
  benches: move bench lib code to apps crate and feature guard it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants