Page MenuHomePhabricator

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

Authored by atul on Jan 17 2023, 12:54 PM.
Tags
None
Referenced Files
F3370544: D6290.id21033.diff
Tue, Nov 26, 3:17 AM
F3369873: D6290.id21055.diff
Mon, Nov 25, 11:49 PM
Unknown Object (File)
Fri, Nov 22, 10:54 AM
Unknown Object (File)
Fri, Nov 8, 10:10 AM
Unknown Object (File)
Fri, Nov 8, 10:10 AM
Unknown Object (File)
Fri, Nov 8, 10:10 AM
Unknown Object (File)
Fri, Nov 8, 10:10 AM
Unknown Object (File)
Fri, Nov 8, 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

services/backup/old/blob_client/Cargo.toml
9 ↗(On Diff #21028)

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 ↗(On Diff #21028)

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 ↗(On Diff #21028)

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.