Page MenuHomePhabricator

[cargo] Bump `tokio` to `1.23.1`
ClosedPublic

Authored by atul on Jan 17 2023, 12:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 6:25 PM
Unknown Object (File)
Mon, Dec 16, 4:06 AM
Unknown Object (File)
Fri, Dec 13, 12:31 PM
Unknown Object (File)
Tue, Nov 26, 5:13 AM
Unknown Object (File)
Tue, Nov 26, 3:17 AM
Unknown Object (File)
Mon, Nov 25, 11:49 PM
Unknown Object (File)
Nov 22 2024, 10:54 AM
Unknown Object (File)
Nov 8 2024, 10:10 AM
Subscribers

Details

Summary

To address the issues Dependabot is complaining about. Assuming tokio is important enough to the Rust ecosystem that they conform to semantic versioning stuff and this change is benign. Can roll back if there are any issues. Mostly just wanted to do this because I've been getting a bunch of emails about this.

Test Plan

NA, trusting tokio and CI

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

services/backup/old/blob_client/Cargo.toml
9

I would prefer to keep this as MAJOR.MINOR. The reason being that cargo already does "get me next semver compatible version". By including a patch version, you are pinning it to the latest 1.23.x (we won't get 1.24.2, which is the latest).

For executables, just the lock file really matters.

http://aturon.github.io/tech/2018/07/25/cargo-version-selection/

atul requested review of this revision.Jan 17 2023, 1:09 PM
jon requested changes to this revision.Jan 17 2023, 1:10 PM
This revision now requires changes to proceed.Jan 17 2023, 1:10 PM
atul requested review of this revision.Jan 17 2023, 1:19 PM

Responding to @jon's comment and re-requesting review

services/backup/old/blob_client/Cargo.toml
9

Hm, looks like it's still being resolved to 1.24.2 so I think it's going up to to MAJOR regardless of whether we specify PATCH?

98cc7d.png (580×1 px, 110 KB)

1.23.1 is the earliest version that appears to resolves all the "security issues" flagged by Dependabot, so thought setting that explicitly might be good? Can change this to 1.23 if that's more idiomatic (looks like we're doing MAJOR.MINOR most places?).

services/backup/old/blob_client/Cargo.toml
9

1.23 := >=1.23.0, <2.0.0
1.23.1 := >=1.23.1, <2.0.0

In this case, both will resolve to 1.24.2. I don't feel strongly about this, but just visually it'd be nice to be consistent

Looks like I was under false assumptions.

This revision is now accepted and ready to land.Jan 17 2023, 2:22 PM

Gotcha will update to MAJOR.MINOR for consistency before landing

MAJOR.MINOR instead of MAJOR.MINOR.PATCH for consistency

This revision was landed with ongoing or failed builds.Jan 18 2023, 1:46 PM
This revision was automatically updated to reflect the committed changes.