-
Notifications
You must be signed in to change notification settings - Fork 110
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
Bump mio to v0.8.11 #719
Bump mio to v0.8.11 #719
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+@allada +@MarcusSorealheis +@adam-singer +@zbirenbaum
Reviewable status: 0 of 4 LGTMs obtained, and pending CI: Analyze (javascript-typescript), Analyze (python), Bazel Dev / ubuntu-22.04, Cargo Dev / macos-13, Cargo Dev / ubuntu-22.04, Local / ubuntu-22.04, Remote / large-ubuntu-22.04, Vercel, asan / ubuntu-22.04, docker-compose-compiles-nativelink (20.04), docker-compose-compiles-nativelink (22.04), integration-tests (20.04), integration-tests (22.04), macos-13, pre-commit-checks, publish-image, ubuntu-20.04 / stable, ubuntu-22.04, ubuntu-22.04 / stable, vale, windows-2022 / stable, zig-cc ubuntu-20.04, zig-cc ubuntu-22.04 (waiting on @adam-singer, @allada, @MarcusSorealheis, and @zbirenbaum)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: 1 of 4 LGTMs obtained (waiting on @allada, @MarcusSorealheis, and @zbirenbaum)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 4 LGTMs obtained (waiting on @MarcusSorealheis and @zbirenbaum)
Cargo.lock
line 1631 at r1 (raw file):
[[package]] name = "mio" version = "0.8.10"
Modifying it this way probably means we cannot easily regen this file, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 4 LGTMs obtained (waiting on @allada, @MarcusSorealheis, and @zbirenbaum)
Cargo.lock
line 1631 at r1 (raw file):
Previously, allada (Nathan (Blaise) Bruer) wrote…
Modifying it this way probably means we cannot easily regen this file, right?
The Cargo lockfile isn't reproducible anyways. There is only cargo update
to update all dependencies, cargo update somecrate
to update a specific crate and cargo update somecrate --precise 1.2.3
for a precise version update.
In this case mio
is not an explicit dependency so it doesn't have a counterpart in any Cargo.toml
. But AFAIK Cargo's resolution mechanism wouldn't let us perform this update if it conflicted with some dependency (I ran cargo update mio
without the precise
flag).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 1 of 4 LGTMs obtained (waiting on @allada and @MarcusSorealheis)
Cargo.lock
line 1631 at r1 (raw file):
Previously, aaronmondal (Aaron Siddhartha Mondal) wrote…
The Cargo lockfile isn't reproducible anyways. There is only
cargo update
to update all dependencies,cargo update somecrate
to update a specific crate andcargo update somecrate --precise 1.2.3
for a precise version update.In this case
mio
is not an explicit dependency so it doesn't have a counterpart in anyCargo.toml
. But AFAIK Cargo's resolution mechanism wouldn't let us perform this update if it conflicted with some dependency (I rancargo update mio
without theprecise
flag).
Another option which would be reproducible would be shipping a forked version of tokio which has the dependency updated, and then making an issue so they are aware to update it. Then we could migrate back once they do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 2 of 4 LGTMs obtained (waiting on @MarcusSorealheis and @zbirenbaum)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status: 3 of 4 LGTMs obtained (waiting on @MarcusSorealheis)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 3 of 4 LGTMs obtained (waiting on @MarcusSorealheis)
Cargo.lock
line 1631 at r1 (raw file):
Previously, zbirenbaum (Zach Birenbaum) wrote…
Another option which would be reproducible would be shipping a forked version of tokio which has the dependency updated, and then making an issue so they are aware to update it. Then we could migrate back once they do.
We'd have to vendor everything then though. And then it wouldn't be possible to reproduce the vendored closure, so we'd have the same issue as before.
I think the approach we currently use is fine since IMO the important thing is that the nativelink executable itself is reproducible, and that's the case here. We could make the lockfile "more" reproducible by specifying somedep = "=1.2.3"
for all dependencies in our Cargo.toml
files, but it's unclear to me whether that would actually make a difference for implicit dependencies.
We still have nativelink reproducibility for commit-wise roll-forwards and rollbacks since the lockfile is checked in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 3 of 3 LGTMs obtained
Fixes https://osv.dev/vulnerability/RUSTSEC-2024-0019
This change is