Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Hyper 1.x #2944

Merged
merged 16 commits into from
Jul 5, 2024
Merged

Hyper 1.x #2944

merged 16 commits into from
Jul 5, 2024

Conversation

sandhose
Copy link
Member

@sandhose sandhose commented Jul 2, 2024

This PR is a bit messy, because this upgrade touches a lot of things…

Other than basic renames/traits bound changes, there are a bunch of interesting changes:

  • I moved many dependencies to the workspace level
  • in mas-iana-codegen, I switched to just use reqwest for doing the HTTP requests. It's codegen, doesn't really matter if it gets in the tree
  • now mas-listener will accept unencrypted HTTP/2 connections, not just over TLS
  • the rustls upgrade means we're now have to explicitly initialise the crypto backend, including in tests
  • opentelemetry-http is still on http 0.2, so I had to rewrite the HeaderInjector, HeaderExtractor and an implementation of opentelemetry_http::HttpClient based on hyper 1.x (which is annoying because we have to transform [email protected]::Request to http@1::Request, and http@1::Response to [email protected]::Response. Hopefully they'll migrate to http/hyper 1.x soon enough
  • I removed the client features of mas-oidc-client, as it's not really used by anyone

It's somewhat reviewable PR by PR, I tried to not make one huge commit and have somewhat sensible commit message, but this was a bit a mess to work on :(

Copy link

cloudflare-workers-and-pages bot commented Jul 2, 2024

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 17e639e
Status: ✅  Deploy successful!
Preview URL: https://76caa52f.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://quenting-hyper-1.matrix-authentication-service-docs.pages.dev

View logs

sandhose added 8 commits July 2, 2024 10:40
We removed here the Timeout layer on the HTTP client service, because it
required the body to be Default, which isn't the case anymore. Not sure
what to do about it.
This also replaces the init_tracing test helper with a general setup
test helper, so that it also initializes the rustls crypto backend.
This does a few things:

 - move `bytes` to workspace dependencies
 - write an hyper-based transport for Sentry
 - ignore OTEL errors related to propagations
 - fix everything else in mas-cli
@sandhose sandhose requested a review from reivilibre July 2, 2024 13:47
@sandhose sandhose marked this pull request as ready for review July 5, 2024 07:57
@sandhose sandhose enabled auto-merge (rebase) July 5, 2024 07:57
@sandhose sandhose merged commit b6c11b5 into main Jul 5, 2024
16 checks passed
@sandhose sandhose deleted the quenting/hyper-1 branch July 29, 2024 12:06
@sandhose sandhose added A-Dependencies Pull requests that update a dependency file Z-Deps-Backend Updates to the backend dependencies labels Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Dependencies Pull requests that update a dependency file Z-Deps-Backend Updates to the backend dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants