Skip to content

Conversation

@JoseSK999
Copy link
Contributor

@JoseSK999 JoseSK999 commented Apr 3, 2025

What is the purpose of this pull request?

  • Bug fix
  • Documentation update
  • New feature
  • Test
  • Other: clippy checks

Which crates are being modified?

  • floresta-chain
  • floresta-cli
  • floresta-common
  • floresta-compact-filters
  • floresta-electrum
  • floresta-watch-only
  • floresta-wire
  • floresta
  • florestad
  • Other: rust.yml, justfile, contrib

Description

Renamed test_features.sh to feature_matrix.sh, which now can execute two actions for all features: clippy or test.

The script can be run as:
./contrib/feature_matrix.sh {clippy|test} [cargo_arg]

Similar to the test-features just recipe, I have added a lint-features one.

Notes to the reviewers

You can easily verify that this works by adding any unused import that is not compiled by default. Then run just lint-features '-- -D warnings' (to trigger an error, which we do in CI)

@jaoleal
Copy link
Collaborator

jaoleal commented Apr 3, 2025

Wow... that was something that i didnt know that was needed. GJ!

Copy link
Collaborator

@jaoleal jaoleal left a comment

Choose a reason for hiding this comment

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

just some nits. Working locally btw.

Renamed `test_features.sh` to `feature_matrix.sh`, which now can execute two actions for all features: clippy or test.

The script can be run as:
`./contrib/feature_matrix.sh {clippy|test} [cargo_arg]`

Similar to the `test-features` just recipe, I have added a `lint-features` one. Running this recipe can take more than a minute, so the regular `lint` recipe doesn't use it.
@JoseSK999 JoseSK999 force-pushed the clippy-all-features branch from 6266b2f to 020b094 Compare April 3, 2025 20:01
@JoseSK999
Copy link
Contributor Author

JoseSK999 commented Apr 3, 2025

Since running clippy for all feature combinations can take a bit of time, that is only done in the CI, in just pcc and via just lint-features itself. just lint is kept more lightweight as suggested by @jaoleal.

@jaoleal
Copy link
Collaborator

jaoleal commented Apr 4, 2025

ACK 020b094

Copy link
Member

@Davidson-Souza Davidson-Souza left a comment

Choose a reason for hiding this comment

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

ACK 020b094

@Davidson-Souza Davidson-Souza merged commit ab1e4a3 into vinteumorg:master Apr 4, 2025
8 checks passed
@JoseSK999 JoseSK999 deleted the clippy-all-features branch April 4, 2025 19:00
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.

3 participants