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

fix(CI): Fix cargo deny #1106

Merged
merged 74 commits into from
Jul 26, 2024
Merged

fix(CI): Fix cargo deny #1106

merged 74 commits into from
Jul 26, 2024

Conversation

DaughterOfMars
Copy link
Contributor

@DaughterOfMars DaughterOfMars commented Jul 9, 2024

Description of change

This PR fixes the errors in the cargo deny CI by updating various out of date dependencies with audit issues.

Weirdness

Some changes were made because dependencies are out-of-date, non-update-able, and have out-of-date sub-dependencies that cause build errors for us due to mismatching versions.

For instance, in crates/iota-node/src/lib.rs I have had to copy the functionality from the fastcrypto crate because that library uses an older version of reqwest, and the public API accepts a reqwest::Client. If we tried to use the provided fetch_jwks function then we would have a compilation error due to the different versions of that type.

Similarly for crates/iota-tls/src/acceptor.rs, the functionality of the RustlsAcceptor from axum_server was copied to avoid version conflicts with rustls.

These could be resolved in some cases by forking the dependency and updating the sub-dependencies.

Links to any relevant issues

Fixes #805

@DaughterOfMars DaughterOfMars added the dev-tools Issues related to the Developer Tools Team label Jul 9, 2024
@DaughterOfMars DaughterOfMars marked this pull request as ready for review July 16, 2024 14:54
Cargo.toml Outdated Show resolved Hide resolved
deny.toml Outdated Show resolved Hide resolved
Copy link
Contributor

@Dr-Electron Dr-Electron left a comment

Choose a reason for hiding this comment

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

Just here to approve the workflow changes ;)
Out of interest, do we have a formatter for yml files now? Is it dprint?
And why use double quotes if you can save space and just use a single one? :trollface:

services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgrespw
Copy link
Contributor

Choose a reason for hiding this comment

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

Just for me to maybe learn something. Why is this needed if the password is already set as job env?

Copy link
Member

Choose a reason for hiding this comment

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

I'm going to go ahead and merge this, please remember to ask Chloé on Monday (she's off today)

@thibault-martinez thibault-martinez merged commit cf1da13 into develop Jul 26, 2024
106 of 110 checks passed
@thibault-martinez thibault-martinez deleted the dev-tools/fix-deny branch July 26, 2024 08:22
@DaughterOfMars DaughterOfMars restored the dev-tools/fix-deny branch August 20, 2024 15:04
alexsporn pushed a commit that referenced this pull request Sep 6, 2024
* chore(dependencies): Update jsonrpsee and related dependencies

* replace todos

* update dependencies

* dprint

* feature

* update baselines and license

* Switch from ethers to alloy

* merge

* Fix mock provider and a bug in the ws impl

* update arrow/parquet

* fix tokio dependency msim compatability

* install crypto provider and other misc

* update pcg crate usage and use vendored openssl

* test fixes

* more fixes and clippy

* baselines and more clippy

* disable mysticeti simtests too

* fix test and fmt

* roll back gcp-bigquery-client version

* fix bug in mock provider and cleanup

* remove outdated doc comment

* replace B256 with TxHash

* simplify

* comment

* remove merge problem

* fix  graphql-rpc job

* Add prost to git allow

* clippy

* update dependencies

* revert commented line

* fix borked merge

* move rustfmt skip

* Reviews

* Add comment explaining TlsAcceptor

* remove axum macros feature usage

* review and update dependencies

* remove yaml_rust RUSTSEC ignore

* reviews

* cleanup helper functions

* move import

---------

Co-authored-by: Thibault Martinez <[email protected]>
alexsporn pushed a commit that referenced this pull request Sep 6, 2024
* chore(dependencies): Update jsonrpsee and related dependencies

* replace todos

* update dependencies

* dprint

* feature

* update baselines and license

* Switch from ethers to alloy

* merge

* Fix mock provider and a bug in the ws impl

* update arrow/parquet

* fix tokio dependency msim compatability

* install crypto provider and other misc

* update pcg crate usage and use vendored openssl

* test fixes

* more fixes and clippy

* baselines and more clippy

* disable mysticeti simtests too

* fix test and fmt

* roll back gcp-bigquery-client version

* fix bug in mock provider and cleanup

* remove outdated doc comment

* replace B256 with TxHash

* simplify

* comment

* remove merge problem

* fix  graphql-rpc job

* Add prost to git allow

* clippy

* update dependencies

* revert commented line

* fix borked merge

* move rustfmt skip

* Reviews

* Add comment explaining TlsAcceptor

* remove axum macros feature usage

* review and update dependencies

* remove yaml_rust RUSTSEC ignore

* reviews

* cleanup helper functions

* move import

---------

Co-authored-by: Thibault Martinez <[email protected]>
alexsporn pushed a commit that referenced this pull request Sep 6, 2024
* chore(dependencies): Update jsonrpsee and related dependencies

* replace todos

* update dependencies

* dprint

* feature

* update baselines and license

* Switch from ethers to alloy

* merge

* Fix mock provider and a bug in the ws impl

* update arrow/parquet

* fix tokio dependency msim compatability

* install crypto provider and other misc

* update pcg crate usage and use vendored openssl

* test fixes

* more fixes and clippy

* baselines and more clippy

* disable mysticeti simtests too

* fix test and fmt

* roll back gcp-bigquery-client version

* fix bug in mock provider and cleanup

* remove outdated doc comment

* replace B256 with TxHash

* simplify

* comment

* remove merge problem

* fix  graphql-rpc job

* Add prost to git allow

* clippy

* update dependencies

* revert commented line

* fix borked merge

* move rustfmt skip

* Reviews

* Add comment explaining TlsAcceptor

* remove axum macros feature usage

* review and update dependencies

* remove yaml_rust RUSTSEC ignore

* reviews

* cleanup helper functions

* move import

---------

Co-authored-by: Thibault Martinez <[email protected]>
@DaughterOfMars DaughterOfMars deleted the dev-tools/fix-deny branch December 24, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-tools Issues related to the Developer Tools Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task (SC-Platform)]: fix cargo deny CI
7 participants