Skip to content

remove quic-definitions crate dependency#10013

Merged
KirillLykov merged 1 commit intoanza-xyz:masterfrom
KirillLykov:klykov/no-quic-definitions-in-streamer
Jan 15, 2026
Merged

remove quic-definitions crate dependency#10013
KirillLykov merged 1 commit intoanza-xyz:masterfrom
KirillLykov:klykov/no-quic-definitions-in-streamer

Conversation

@KirillLykov
Copy link
Copy Markdown

Problem

This PR removes solana-quic-definitions dependency everywhere except tpu-client-next for which it is removed in #10012
This PR doesn't modify currently used constants.

Summary of Changes

@KirillLykov KirillLykov requested a review from a team as a code owner January 14, 2026 11:46
Copy link
Copy Markdown

@alexpyattaev alexpyattaev left a comment

Choose a reason for hiding this comment

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

concept r+, i wonder if we should move the notify key update into tls-utils though.

Comment thread tls-utils/src/notify_key_update.rs
@KirillLykov KirillLykov force-pushed the klykov/no-quic-definitions-in-streamer branch 2 times, most recently from cdfa65c to d06c9b7 Compare January 14, 2026 15:59
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jan 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.5%. Comparing base (bba10d8) to head (b23abbb).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #10013     +/-   ##
=========================================
- Coverage    82.5%    82.5%   -0.1%     
=========================================
  Files         844      844             
  Lines      316757   316757             
=========================================
- Hits       261599   261571     -28     
- Misses      55158    55186     +28     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

@alexpyattaev alexpyattaev left a comment

Choose a reason for hiding this comment

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

Generally looks great, a few minor questions to consider.

tokio_util::sync::CancellationToken,
};

const QUIC_KEEP_ALIVE_FOR_TESTS: Duration = Duration::from_secs(5);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why do we have a different value here? If this is intentional, maybe some comment would not hurt explaining the reasoning for this choice.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

We don't have a global constant for that now. In tpu-client-next we use 1sec just because we observe that people on 3.0 and 3.1 are still using low timeout and we want to be safe. For tests, we know that the timeout is 60s and will become 10s in the follow up PR. We also know that tests are localhost so hardly we will loose the packets

Comment thread tls-utils/src/notify_key_update.rs Outdated
@@ -0,0 +1,9 @@
use solana_keypair::Keypair;

/// [`NotifyKeyUpdate`] is a trait used for updating the key used for QUIC connections.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
/// [`NotifyKeyUpdate`] is a trait used for updating the key used for QUIC connections.
/// [`NotifyKeyUpdate`] is a trait used for updating the certificate used for QUIC connections.

@KirillLykov KirillLykov force-pushed the klykov/no-quic-definitions-in-streamer branch from d06c9b7 to b23abbb Compare January 15, 2026 08:54
@KirillLykov KirillLykov added this pull request to the merge queue Jan 15, 2026
Merged via the queue into anza-xyz:master with commit b4f4eea Jan 15, 2026
58 checks passed
@KirillLykov KirillLykov deleted the klykov/no-quic-definitions-in-streamer branch January 15, 2026 09:57
@joncinque
Copy link
Copy Markdown

I'm catching up on old PRs -- does this mean we can completely remove solana-quic-definitions from the sdk?

@KirillLykov
Copy link
Copy Markdown
Author

I'm catching up on old PRs -- does this mean we can completely remove solana-quic-definitions from the sdk?

yes, but it is used in 3.1. So crate should be present but the code might be removed.

joncinque added a commit to joncinque/solana-sdk that referenced this pull request Jan 28, 2026
#### Problem

With anza-xyz/agave#10013, the quic-definitions
crate is no longer used. Since the crate was only ever used by Agave,
and isn't re-exported from the sdk anymore, it's no longer needed at
all.

#### Summary of changes

Remove the crate and all code that references it in the repo.
@joncinque
Copy link
Copy Markdown

Ok great, thanks! anza-xyz/solana-sdk#541 will remove it from the sdk

joncinque added a commit to anza-xyz/solana-sdk that referenced this pull request Jan 28, 2026
#### Problem

With anza-xyz/agave#10013, the quic-definitions
crate is no longer used. Since the crate was only ever used by Agave,
and isn't re-exported from the sdk anymore, it's no longer needed at
all.

#### Summary of changes

Remove the crate and all code that references it in the repo.
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.

4 participants