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

chore: upgrade tonic and prost #6067

Merged
merged 4 commits into from
Jan 12, 2024

Conversation

brianp
Copy link
Contributor

@brianp brianp commented Jan 3, 2024

Description

We were hoping to get moved onto a more modern version of both but this will not be possible. Between versions 0.8.4 and 0.9.0 of tonic they dropped support for the rust 2018 version. We would also need to upgrade to 2021 to make further use of more recent versions of tonic.

This PR upgrades them to the most recent possible.

I additionally tried seeing if we could run older versions only where nedded and run more modern version in other places but most of our tonic use is tied to the grpc and the grpc clients require the older version, in turn most everything requires the old version.

Motivation and Context

Upgrade the old to something newer.

How Has This Been Tested?

CI

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Jan 3, 2024
Copy link

github-actions bot commented Jan 3, 2024

Test Results (CI)

1 264 tests   1 264 ✅  10m 59s ⏱️
   39 suites      0 💤
    1 files        0 ❌

Results for commit 6f9de33.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 3, 2024

Test Results (Integration tests)

 2 files  11 suites   20m 52s ⏱️
29 tests 28 ✅ 0 💤 1 ❌
31 runs  28 ✅ 0 💤 3 ❌

For more details on these failures, see this check.

Results for commit 6f9de33.

♻️ This comment has been updated with latest results.

@brianp
Copy link
Contributor Author

brianp commented Jan 3, 2024

I can't figure out how to silence clippy with proto files. I tried both:

#![allow(clippy::all)]
#[allow(clippy::all)]

@AaronFeickert
Copy link
Collaborator

Looks like the lints are pedantic, which isn't included in clippy::all. This source suggests using #![allow(clippy::all, clippy::pedantic)] should work.

@brianp
Copy link
Contributor Author

brianp commented Jan 12, 2024

@AaronFeickert lol all but not everything 🙃

@brianp brianp marked this pull request as ready for review January 12, 2024 12:30
@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Jan 12, 2024
@SWvheerden SWvheerden merged commit 3ab7d5d into tari-project:development Jan 12, 2024
12 of 14 checks passed
@AaronFeickert
Copy link
Collaborator

@AaronFeickert lol all but not everything 🙃

* some restrictions apply

@AaronFeickert AaronFeickert mentioned this pull request Jan 15, 2024
sdbondi added a commit to sdbondi/tari that referenced this pull request Jan 26, 2024
* development: (84 commits)
  chore: merge development to feature-dan2 (tari-project#6100)
  feat: prevent runtime error with compact error input (tari-project#6096)
  chore(deps): bump h2 from 0.3.21 to 0.3.24 (tari-project#6091)
  chore: update monero to latest release (tari-project#6098)
  chore(deps): bump actions/cache from 3 to 4 (tari-project#6093)
  chore(fix): ci - move s3 uploads to only on release (tari-project#6094)
  feat: update codeowners (tari-project#6088)
  chore: update change log (tari-project#6086)
  feat: add search kernels method to nodejs client (tari-project#6082)
  chore: move domain hash names to separate crate (tari-project#6076)
  chore: new esme release (tari-project#6084)
  fix: tms validation correctly updating (tari-project#6079)
  fix: wallet coinbases not validated correctly (tari-project#6074)
  chore(fix): ci - ffis android - add protobuf for cross-compile (tari-project#6083)
  chore(fix): include protobuf during build (tari-project#6077)
  chore: upgrade tonic and prost (tari-project#6067)
  feat: add tari address as valid string for discovering a peer (tari-project#6075)
  docs: update disclosure policy (tari-project#6072)
  chore(ci): ffi extend to build for none mobile platforms (tari-project#6069)
  refactor(common): allow custom default configs (tari-project#6068)
  ...
sdbondi added a commit to sdbondi/tari that referenced this pull request Jan 26, 2024
* development: (85 commits)
  revert: merge development to feature-dan2 (tari-project#6100) (tari-project#6102)
  chore: merge development to feature-dan2 (tari-project#6100)
  feat: prevent runtime error with compact error input (tari-project#6096)
  chore(deps): bump h2 from 0.3.21 to 0.3.24 (tari-project#6091)
  chore: update monero to latest release (tari-project#6098)
  chore(deps): bump actions/cache from 3 to 4 (tari-project#6093)
  chore(fix): ci - move s3 uploads to only on release (tari-project#6094)
  feat: update codeowners (tari-project#6088)
  chore: update change log (tari-project#6086)
  feat: add search kernels method to nodejs client (tari-project#6082)
  chore: move domain hash names to separate crate (tari-project#6076)
  chore: new esme release (tari-project#6084)
  fix: tms validation correctly updating (tari-project#6079)
  fix: wallet coinbases not validated correctly (tari-project#6074)
  chore(fix): ci - ffis android - add protobuf for cross-compile (tari-project#6083)
  chore(fix): include protobuf during build (tari-project#6077)
  chore: upgrade tonic and prost (tari-project#6067)
  feat: add tari address as valid string for discovering a peer (tari-project#6075)
  docs: update disclosure policy (tari-project#6072)
  chore(ci): ffi extend to build for none mobile platforms (tari-project#6069)
  ...
sdbondi added a commit to sdbondi/tari that referenced this pull request Jan 26, 2024
* development: (85 commits)
  revert: merge development to feature-dan2 (tari-project#6100) (tari-project#6102)
  chore: merge development to feature-dan2 (tari-project#6100)
  feat: prevent runtime error with compact error input (tari-project#6096)
  chore(deps): bump h2 from 0.3.21 to 0.3.24 (tari-project#6091)
  chore: update monero to latest release (tari-project#6098)
  chore(deps): bump actions/cache from 3 to 4 (tari-project#6093)
  chore(fix): ci - move s3 uploads to only on release (tari-project#6094)
  feat: update codeowners (tari-project#6088)
  chore: update change log (tari-project#6086)
  feat: add search kernels method to nodejs client (tari-project#6082)
  chore: move domain hash names to separate crate (tari-project#6076)
  chore: new esme release (tari-project#6084)
  fix: tms validation correctly updating (tari-project#6079)
  fix: wallet coinbases not validated correctly (tari-project#6074)
  chore(fix): ci - ffis android - add protobuf for cross-compile (tari-project#6083)
  chore(fix): include protobuf during build (tari-project#6077)
  chore: upgrade tonic and prost (tari-project#6067)
  feat: add tari address as valid string for discovering a peer (tari-project#6075)
  docs: update disclosure policy (tari-project#6072)
  chore(ci): ffi extend to build for none mobile platforms (tari-project#6069)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants