Skip to content

Update tonic to v0.14.3 and migrate to tonic-prost-build#1775

Merged
hulto merged 9 commits intomainfrom
update-tonic
Feb 14, 2026
Merged

Update tonic to v0.14.3 and migrate to tonic-prost-build#1775
hulto merged 9 commits intomainfrom
update-tonic

Conversation

@hulto
Copy link
Collaborator

@hulto hulto commented Feb 8, 2026

This commit updates the tonic gRPC framework to the latest version (0.14.3) and migrates the build system to use tonic-prost-build, which is required for the new API.

Key Changes

Dependency Updates

  • Migrated from tonic-build to tonic-prost-build v0.14.3
  • Updated hyper proxy support:
    • gRPC transport: hyper-http-proxy 1.1.0 (hyper 1.x compatible)
    • HTTP/1.1 transport: hyper-proxy 0.9.1 as hyper-proxy-legacy (hyper 0.14)
  • Added supporting dependencies: http, tower, hyper-util, http-body-util

API Migrations

  • build.rs: Replaced tonic_build::configure() with tonic_prost_build::configure() and .compile() with .compile_protos()
  • grpc.rs: Updated to use hyper-http-proxy for hyper 1.x compatibility
  • http.rs: Migrated to hyper_legacy namespace to maintain hyper 0.14 for HTTP/1.1
  • dns_resolver.rs: Updated DNS-over-HTTPS resolver to use hyper_legacy types

Code Quality

  • Fixed unused import warnings
  • Fixed unnecessary mut warning in dns.rs
  • Regenerated all proto files with new tonic-prost-build

Testing

  • 78/79 tests passing
  • 1 pre-existing test failure in pb::config unrelated to tonic upgrade
  • Workspace compiles cleanly with cargo check

Notes

  • HTTP/1.1 transport continues using hyper 0.14 for stability
  • gRPC transport now uses hyper 1.x via tonic 0.14.3
  • DOH support temporarily disabled for gRPC pending hyper 1.x DNS resolver

Generated with Claude Code via Happy

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

hulto and others added 2 commits February 8, 2026 18:00
This commit updates the tonic gRPC framework to the latest version (0.14.3)
and migrates the build system to use tonic-prost-build, which is required
for the new API.

## Key Changes

### Dependency Updates
- Migrated from `tonic-build` to `tonic-prost-build` v0.14.3
- Updated hyper proxy support:
  - gRPC transport: hyper-http-proxy 1.1.0 (hyper 1.x compatible)
  - HTTP/1.1 transport: hyper-proxy 0.9.1 as hyper-proxy-legacy (hyper 0.14)
- Added supporting dependencies: http, tower, hyper-util, http-body-util

### API Migrations
- **build.rs**: Replaced `tonic_build::configure()` with `tonic_prost_build::configure()`
  and `.compile()` with `.compile_protos()`
- **grpc.rs**: Updated to use hyper-http-proxy for hyper 1.x compatibility
- **http.rs**: Migrated to hyper_legacy namespace to maintain hyper 0.14 for HTTP/1.1
- **dns_resolver.rs**: Updated DNS-over-HTTPS resolver to use hyper_legacy types

### Code Quality
- Fixed unused import warnings
- Fixed unnecessary mut warning in dns.rs
- Regenerated all proto files with new tonic-prost-build

## Testing
- 78/79 tests passing
- 1 pre-existing test failure in pb::config unrelated to tonic upgrade
- Workspace compiles cleanly with cargo check

## Notes
- HTTP/1.1 transport continues using hyper 0.14 for stability
- gRPC transport now uses hyper 1.x via tonic 0.14.3
- DOH support temporarily disabled for gRPC pending hyper 1.x DNS resolver

Generated with [Claude Code](https://claude.com/claude-code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2026

Summary

Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
2570    ±0 2570    ±0 0    ±0 0    ±0 0    ±0 0    ±0 1ms    ±0

Previous Results

Build 🏗️ Result 🧪 Tests 📝 Passed ✅ Failed ❌ Skipped ⏭️ Other ❓ Flaky 🍂 Duration ⏱️
#960 2570 2570 0 0 0 0 18.1s

Insights

Average Tests per Run Total Flaky Tests Total Failed Slowest Test (p95)
2570 0 0 5.2s

Slowest Tests

Test 📝 Results 📊 Duration (avg) ⏱️ Duration (p95) ⏱️
eldritch-libsys: std::dll_inject_impl::tests::test_dll_inject_simple 1 5.2s 5.2s
imix::bin/imix: install::tests::test_install_execution 3 1.2s 3.4s
imix::bin/imix: install::tests::test_install_execution 3 1.2s 3.4s
imix::bin/imix: install::tests::test_install_execution 3 1.2s 3.4s
imix::bin/imix: tests::task_tests::test_task_streaming_error 3 3.0s 3.0s
imix::bin/imix: tests::task_tests::test_task_streaming_error 3 3.0s 3.0s
imix::bin/imix: tests::task_tests::test_task_streaming_error 3 3.0s 3.0s
imix::bin/imix: tests::task_tests::test_task_streaming_output 3 3.0s 3.0s
imix::bin/imix: tests::task_tests::test_task_streaming_output 3 3.0s 3.0s
imix::bin/imix: tests::task_tests::test_task_streaming_output 3 3.0s 3.0s

🎉 No failed tests in this run. | 🍂 No flaky tests in this run.

Github Test Reporter by CTRF 💚

🔄 This comment has been updated

hulto and others added 3 commits February 8, 2026 18:51
* Re-add DoH support to the grpc.rs transport

- Implement `HickoryResolverServiceHyper1` in `dns_resolver.rs` to support `tower::Service` as required by `hyper-util` 0.1.
- Integrate the new DoH resolver into `grpc.rs`.
- Add unit tests for the new Hyper 1.x DoH components.
- Ensure compatibility with existing `hyper_legacy` (hyper 0.14) based transports.

Co-authored-by: hulto <7121375+hulto@users.noreply.github.com>

* Re-add DoH support to the grpc.rs transport and fix HTTPS support

- Implement `HickoryResolverServiceHyper1` in `dns_resolver.rs` to support `tower::Service` as required by `hyper-util` 0.1.
- Integrate the new DoH resolver into `grpc.rs`.
- Fix HTTPS support in gRPC transport by wrapping the connector in `hyper-rustls` `HttpsConnector`, which is necessary when using custom connectors with `tonic` 0.14 and HTTPS URIs.
- Explicitly configure `rustls` with the `ring` crypto provider to avoid ambiguity and ensure compatibility with other crates in the workspace.
- Update `Cargo.toml` with `hyper-rustls` and `rustls` dependencies.

Co-authored-by: hulto <7121375+hulto@users.noreply.github.com>

* Re-add DoH support to the grpc.rs transport and fix HTTPS support

- Implement `HickoryResolverServiceHyper1` in `dns_resolver.rs` to support `tower::Service` as required by `hyper-util` 0.1 (Hyper 1.x).
- Integrate the new DoH resolver into `grpc.rs`.
- Implement `ForceHttpsConnector` workaround in `grpc.rs` to bypass `tonic` 0.14's strict scheme check for `https://` URIs when using custom connectors.
- Explicitly configure `rustls` with the `ring` crypto provider to ensure a default provider is available.
- Update `Cargo.toml` with `hyper-rustls`, `rustls`, and necessary features.
- Restore unit tests for DoH and add verification for Hyper 1.x components.

Co-authored-by: hulto <7121375+hulto@users.noreply.github.com>

---------

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
tokio-stream = { workspace = true }
tonic = { workspace = true, features = ["tls-webpki-roots"] }
rustls = { version = "0.23", features = ["ring"] }
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

move these to workspace

@hulto hulto marked this pull request as ready for review February 9, 2026 00:49
* Disable cert checking

* fix http1 callback URI

* Refactor ignore certs
@hulto hulto enabled auto-merge February 9, 2026 04:02
@hulto hulto disabled auto-merge February 14, 2026 03:55
@hulto hulto merged commit 320c013 into main Feb 14, 2026
8 checks passed
@hulto hulto deleted the update-tonic branch February 14, 2026 03:55
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.

2 participants