Skip to content

feat: add nightly minimum dependencies test#55

Merged
Tim-Zhang merged 1 commit intomasterfrom
jalil/verify-minimum-dependencies
Dec 20, 2024
Merged

feat: add nightly minimum dependencies test#55
Tim-Zhang merged 1 commit intomasterfrom
jalil/verify-minimum-dependencies

Conversation

@jalil-salame
Copy link
Contributor

@jalil-salame jalil-salame commented Dec 14, 2024

Add a nightly toolchain to test builds using the -Z direct-minimum-dependencies flag. This ensures our minimum version requirements are compatible with our source code.

This required bumping some versions:

  • libc: 0.2.138 -> 0.2.158 as vsock-rs depends on 0.2.158.
  • tokio: 1 -> 1.27 as we depend on methods/trait impls which are only available starting that version. 1.34 as tonic 0.12 requires tokio 1.34

This ensures our minimum tonic requirement still compiles.

This should be released as 0.6.1 as requested by @cryo28 on #53

@jalil-salame jalil-salame requested a review from qwandor December 14, 2024 12:41
@jalil-salame jalil-salame self-assigned this Dec 14, 2024
@jalil-salame jalil-salame force-pushed the jalil/verify-minimum-dependencies branch from c839da3 to b6110cf Compare December 14, 2024 12:43
Copy link
Contributor

@Tim-Zhang Tim-Zhang left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @jalil-salame

@Tim-Zhang
Copy link
Contributor

Tim-Zhang commented Dec 20, 2024

@jalil-salame I will cut a release after this pr merged

@Tim-Zhang the release should be 0.7.0 as we remove features (which is breaking). This does mean that if we ever remove supported tonic versions, we would need to cut another breaking release.

@jalil-salame
Copy link
Contributor Author

I'll do a small rework cause the tests no longer work here (tonic-conn feature was removed)

@jalil-salame jalil-salame force-pushed the jalil/verify-minimum-dependencies branch 2 times, most recently from a2930a9 to 28b5131 Compare December 20, 2024 09:35
Add a nightly toolchain to test builds using the `-Z
direct-minimum-dependencies` flag. This ensures our minimum version
requirements are compatible with our source code.

This required bumping some versions:

- libc: `0.2.138` -> `0.2.158` as `vsock-rs` depends on `0.2.158`.
- tokio: `1` -> `1.27` as we depend on methods/trait impls which are
  only available starting that version.

This ensures our minimum `tonic` requirement still compiles.

Signed-off-by: Jalil David Salamé Messina <jalil.salame@gmail.com>
@jalil-salame jalil-salame force-pushed the jalil/verify-minimum-dependencies branch from 28b5131 to 5fb60b9 Compare December 20, 2024 09:40
@jalil-salame
Copy link
Contributor Author

jalil-salame commented Dec 20, 2024

I adjusted the branch rules, so that it now requires BVT (stable) and BVT (nightly) to pass (instead of just BVT). This means no other PRs can be merged before this one.

@Tim-Zhang
Copy link
Contributor

@jalil-salame I left a comment, PTAL, thanks.

@Tim-Zhang Tim-Zhang merged commit f68b72c into master Dec 20, 2024
3 checks passed
@jalil-salame jalil-salame deleted the jalil/verify-minimum-dependencies branch December 20, 2024 13:06
Tim-Zhang added a commit to Tim-Zhang/tokio-vsock that referenced this pull request Dec 20, 2024
Bump the major version for API has changed in rust-vsock#54 and features
removed in rust-vsock#56

Also this release includes rust-vsock#53 and rust-vsock#55

Signed-off-by: Tim Zhang <tim@hyper.sh>
Tim-Zhang added a commit to Tim-Zhang/tokio-vsock that referenced this pull request Dec 20, 2024
Bump the major version for rust-vsock#54 which changed API and rust-vsock#56 which removed features.

Also this release includes rust-vsock#53 and rust-vsock#55.

Signed-off-by: Tim Zhang <tim@hyper.sh>
@Tim-Zhang Tim-Zhang mentioned this pull request Dec 20, 2024
Tim-Zhang added a commit to Tim-Zhang/tokio-vsock that referenced this pull request Dec 20, 2024
Bump the major version for rust-vsock#54 which changed API and rust-vsock#56
which removed features.

Also this release includes rust-vsock#53 and rust-vsock#55.

Signed-off-by: Tim Zhang <tim@hyper.sh>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants