Skip to content

mux stream kind mismatch fix (CON-240)#3209

Open
pompon0 wants to merge 10 commits intomainfrom
gprusak-proto-test
Open

mux stream kind mismatch fix (CON-240)#3209
pompon0 wants to merge 10 commits intomainfrom
gprusak-proto-test

Conversation

@pompon0
Copy link
Copy Markdown
Contributor

@pompon0 pompon0 commented Apr 8, 2026

Made mux stream opening more strict:

  • explicit kind when OPEN frame
  • kind mismatch is detected instead of ignored
    Added relevant tests.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedApr 8, 2026, 10:54 AM

@pompon0 pompon0 requested review from sei-will and wen-coding April 8, 2026 10:52
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 8, 2026

Codecov Report

❌ Patch coverage is 72.72727% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.79%. Comparing base (8d751f6) to head (86a1480).

Files with missing lines Patch % Lines
sei-tendermint/internal/p2p/mux/mux.go 77.77% 1 Missing and 1 partial ⚠️
sei-tendermint/internal/p2p/mux/stream_state.go 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3209   +/-   ##
=======================================
  Coverage   58.79%   58.79%           
=======================================
  Files        2054     2054           
  Lines      168303   168305    +2     
=======================================
+ Hits        98948    98952    +4     
+ Misses      60609    60608    -1     
+ Partials     8746     8745    -1     
Flag Coverage Δ
sei-chain-pr 79.60% <72.72%> (?)
sei-db 70.41% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
sei-tendermint/internal/p2p/mux/stream_state.go 91.66% <50.00%> (+4.16%) ⬆️
sei-tendermint/internal/p2p/mux/mux.go 77.77% <77.77%> (+0.19%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pompon0 pompon0 changed the title mux stream kind mismatch fix mux stream kind mismatch fix (CON-240) Apr 8, 2026
err := mux.Run(ctx, c2)
t.Logf("mux terminated: %v", err)
if !errors.Is(err, errAlreadyOpened) {
return fmt.Errorf("err = %v, want %v", err, errTooManyMsgs)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
return fmt.Errorf("err = %v, want %v", err, errTooManyMsgs)
return fmt.Errorf("err = %v, want %v", err, errAlreadyOpened)

err := mux.Run(ctx, c2)
t.Logf("mux terminated: %v", err)
if !errors.Is(err, errAlreadyOpened) {
return fmt.Errorf("err = %v, want %v", err, errTooManyMsgs)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
return fmt.Errorf("err = %v, want %v", err, errTooManyMsgs)
return fmt.Errorf("err = %v, want %v", err, errAlreadyOpened)

err := mux.Run(ctx, c2)
t.Logf("mux terminated: %v", err)
if !errors.Is(err, errUnknownStream) {
return fmt.Errorf("err = %v, want %v", err, errTooManyAccepts)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
return fmt.Errorf("err = %v, want %v", err, errTooManyAccepts)
return fmt.Errorf("err = %v, want %v", err, errUnknownStream)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants