Skip to content
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

Tests fail for core http3-preview for crate s2n-quic-h3 #2877

Closed
4 tasks done
shjohnson-pi opened this issue Oct 14, 2024 · 2 comments
Closed
4 tasks done

Tests fail for core http3-preview for crate s2n-quic-h3 #2877

shjohnson-pi opened this issue Oct 14, 2024 · 2 comments
Labels
deficiency Something doesn't work as well as it could

Comments

@shjohnson-pi
Copy link

Rocket Version

3bf9ef0

Operating System

FreeBSD 14.1-RELEASE-p5 amd64

Rust Toolchain Version

rustc 1.81.0 (f54dd915b 2024-09-02)

What happened?

I cloned master and went to run tests, but it's unable to compile s2n-quic-h3 for the core: http3-preview test set.

$ ./scripts/test.sh --core
...
:: Building and checking core [http3-preview]...
   Compiling s2n-quic-h3 v0.1.0 (https://github.com/SergioBenitez/s2n-quic-h3.git?rev=6613956#66139567)
error[E0277]: the trait bound `s2n_quic::application::Error: From<s2n_quic_core::varint::VarInt>` is not satisfied
   --> /home/sjohnson/.cargo/git/checkouts/s2n-quic-h3-159cf9a157ac9cd2/6613956/src/s2n_quic.rs:181:49
...
error[E0277]: the trait bound `s2n_quic::application::Error: From<s2n_quic_core::varint::VarInt>` is not satisfied
   --> /home/sjohnson/.cargo/git/checkouts/s2n-quic-h3-159cf9a157ac9cd2/6613956/src/s2n_quic.rs:464:73
...

Test Case

N/A

Log Output

$ ./scripts/test.sh --core
...
:: Building and checking core [http3-preview]...
   Compiling s2n-quic-h3 v0.1.0 (https://github.com/SergioBenitez/s2n-quic-h3.git?rev=6613956#66139567)
error[E0277]: the trait bound `s2n_quic::application::Error: From<s2n_quic_core::varint::VarInt>` is not satisfied
   --> /home/sjohnson/.cargo/git/checkouts/s2n-quic-h3-159cf9a157ac9cd2/6613956/src/s2n_quic.rs:181:49
    |
181 |                 .unwrap_or_else(|_| VarInt::MAX.into()),
    |                                                 ^^^^ the trait `From<s2n_quic_core::varint::VarInt>` is not implemented for `s2n_quic::application::Error`, which is required by `s2n_quic_core::varint::VarInt: Into<_>`
    |
    = help: the following other types implement trait `From<T>`:
              `s2n_quic::application::Error` implements `From<s2n_quic_core::varint::VarInt>`
              `s2n_quic::application::Error` implements `From<u16>`
              `s2n_quic::application::Error` implements `From<u32>`
              `s2n_quic::application::Error` implements `From<u8>`
    = note: required for `s2n_quic_core::varint::VarInt` to implement `Into<s2n_quic::application::Error>`

error[E0277]: the trait bound `s2n_quic::application::Error: From<s2n_quic_core::varint::VarInt>` is not satisfied
   --> /home/sjohnson/.cargo/git/checkouts/s2n-quic-h3-159cf9a157ac9cd2/6613956/src/s2n_quic.rs:464:73
    |
464 |             .reset(reset_code.try_into().unwrap_or_else(|_| VarInt::MAX.into()));
    |                                                                         ^^^^ the trait `From<s2n_quic_core::varint::VarInt>` is not implemented for `s2n_quic::application::Error`, which is required by `s2n_quic_core::varint::VarInt: Into<_>`
    |
    = help: the following other types implement trait `From<T>`:
              `s2n_quic::application::Error` implements `From<s2n_quic_core::varint::VarInt>`
              `s2n_quic::application::Error` implements `From<u16>`
              `s2n_quic::application::Error` implements `From<u32>`
              `s2n_quic::application::Error` implements `From<u8>`
    = note: required for `s2n_quic_core::varint::VarInt` to implement `Into<s2n_quic::application::Error>`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `s2n-quic-h3` (lib) due to 2 previous errors

Additional Context

I believe one way to fix this, is to merge in upstream fix from aws/s2n-quic#2313 (comment) into https://github.com/SergioBenitez/s2n-quic-h3 and then update the revision in core/lib/Cargo.toml

References:

Final Notes:

  • This is my first issue for Rocket, so definitely point out any mistakes I've made
  • This was on FreeBSD, but I believe this problem would still exist on other OSs

System Checks

  • My bug report relates to functionality.
  • I have tested against the latest Rocket release or a recent git commit.
  • I have tested against the latest stable rustc toolchain.
  • I was unable to find this issue previously reported.
@shjohnson-pi shjohnson-pi added the triage A bug report being investigated label Oct 14, 2024
@the10thWiz the10thWiz added bug Deviation from the specification or expected behavior and removed triage A bug report being investigated labels Nov 18, 2024
@SergioBenitez SergioBenitez added deficiency Something doesn't work as well as it could and removed bug Deviation from the specification or expected behavior labels Dec 2, 2024
@SergioBenitez
Copy link
Member

Resolved in master.

@shjohnson-pi
Copy link
Author

Yay! I can confirm the master branch builds and all tests pass on my FreeBSD system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deficiency Something doesn't work as well as it could
Projects
None yet
Development

No branches or pull requests

3 participants