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

CI fixes / improvements #478

Merged
merged 2 commits into from
Feb 13, 2023

Conversation

argerus
Copy link
Contributor

@argerus argerus commented Feb 11, 2023

Fix clippy::uninlined_format_args lint

https://rust-lang.github.io/rust-clippy/master/#uninlined_format_args

This lint was promoted from "pedantic" in Rust 1.67.0. It was subsequently demoted to "pedantic" again in 1.67.1, so one solution would be to just use another version for now.

rust-lang/rust#107743

It does however seem likely that it will be reintroduced at some point, so applying the fix now.

rust-lang/rust-clippy#10265

Better error messages in createbom

  • Handle empty license field
  • Instead of aborting on first issue, print all problematic licenses / crates
  • Add a bit more structure

https://rust-lang.github.io/rust-clippy/master/#uninlined_format_args

This lint was promoted from "pedantic" in Rust 1.67.0.  It was
subsequently [demoted to "pedantic"
again](rust-lang/rust#107743) in 1.67.1, so one
solution would be to just use another version for now.

It does however seem likely that it will be reintroduced at some point,
so applying the fix.

rust-lang/rust-clippy#10265
* Handle empty license field
* Instead of aborting on first issue, print all problematic licenses / crates
* Add a bit more structure
@argerus
Copy link
Contributor Author

argerus commented Feb 11, 2023

Also pretty nice that it's possible to fix these things by just telling the Rust toolchain to do it :)

$ cargo clippy --all-targets --fix -- -W warnings -D warnings -W clippy::uninlined_format_args
   Compiling databroker-proto v0.3.1 (/home/john/src/boschglobal/kuksa.val/kuksa_databroker/databroker-proto)
   Compiling databroker v0.3.1 (/home/john/src/boschglobal/kuksa.val/kuksa_databroker/databroker)
       Fixed kuksa_databroker/databroker/build.rs (1 fix)
    Checking databroker-examples v0.3.1 (/home/john/src/boschglobal/kuksa.val/kuksa_databroker/databroker-examples)
    Checking databroker-cli v0.3.1 (/home/john/src/boschglobal/kuksa.val/kuksa_databroker/databroker-cli)
       Fixed kuksa_databroker/databroker-cli/src/main.rs (21 fixes)
       Fixed kuksa_databroker/databroker/src/vss.rs (2 fixes)
       Fixed kuksa_databroker/databroker/src/broker.rs (1 fix)
       Fixed kuksa_databroker/databroker/src/grpc/sdv_databroker_v1/broker.rs (1 fix)
       Fixed kuksa_databroker/databroker/src/query/compiler.rs (8 fixes)
       Fixed kuksa_databroker/databroker/src/query/executor.rs (14 fixes)
       Fixed kuksa_databroker/databroker/src/grpc/kuksa_val_v1/val.rs (2 fixes)
       Fixed kuksa_databroker/databroker-examples/examples/perf_subscriber.rs (3 fixes)
       Fixed kuksa_databroker/databroker-examples/examples/perf_setter.rs (8 fixes)
       Fixed kuksa_databroker/databroker/src/main.rs (2 fixes)
    Finished dev [unoptimized + debuginfo] target(s) in 14.77s

@argerus argerus changed the title CI improvements CI fixes / improvements Feb 11, 2023
Copy link
Contributor

@SebastianSchildt SebastianSchildt left a comment

Choose a reason for hiding this comment

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

Looking good 🏖️

@SebastianSchildt SebastianSchildt merged commit 800f52a into eclipse:master Feb 13, 2023
@erikbosch erikbosch deleted the topic/ci_improvements branch September 29, 2023 09:32
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