Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

refactor of MConnection internals#322

Merged
pompon0 merged 6 commits intomainfrom
gprusak-mconn
Sep 26, 2025
Merged

refactor of MConnection internals#322
pompon0 merged 6 commits intomainfrom
gprusak-mconn

Conversation

@pompon0
Copy link
Copy Markdown
Contributor

@pompon0 pompon0 commented Sep 25, 2025

untangled the MConnection internal logic.
Adjusted SpawnGlobal semantics accordingly.
I've shortened ping timeout to 10s.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 25, 2025

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedSep 25, 2025, 1:54 PM

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 25, 2025

Codecov Report

❌ Patch coverage is 65.57864% with 116 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.06%. Comparing base (e92859c) to head (2a5bd27).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
libs/utils/ringbuf.go 0.00% 34 Missing ⚠️
internal/p2p/conn/connection.go 87.60% 25 Missing and 6 partials ⚠️
libs/utils/scope/global.go 0.00% 30 Missing ⚠️
libs/utils/wait.go 0.00% 8 Missing ⚠️
libs/utils/proto.go 0.00% 7 Missing ⚠️
internal/p2p/router.go 25.00% 4 Missing and 2 partials ⚠️

❌ Your patch status has failed because the patch coverage (65.57%) is below the target coverage (70.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #322      +/-   ##
==========================================
- Coverage   57.21%   57.06%   -0.16%     
==========================================
  Files         258      259       +1     
  Lines       34471    34483      +12     
==========================================
- Hits        19723    19676      -47     
- Misses      13169    13230      +61     
+ Partials     1579     1577       -2     
Files with missing lines Coverage Δ
internal/p2p/transport_memory.go 82.16% <ø> (-2.84%) ⬇️
internal/p2p/router.go 76.39% <25.00%> (-3.05%) ⬇️
libs/utils/proto.go 1.61% <0.00%> (-0.21%) ⬇️
libs/utils/wait.go 8.21% <0.00%> (-1.02%) ⬇️
libs/utils/scope/global.go 0.00% <0.00%> (ø)
internal/p2p/conn/connection.go 85.03% <87.60%> (+6.11%) ⬆️
libs/utils/ringbuf.go 0.00% <0.00%> (ø)

... and 14 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

type errBadEncoding struct{ error }
type errBadChannel struct{ error }

const (
Copy link
Copy Markdown
Contributor

@yzang2019 yzang2019 Sep 25, 2025

Choose a reason for hiding this comment

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

Why do we remove those constants? It seems some of them are still valid defaults

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The constants are still there, just moved to relevant places. In particular, the defaults are inlined into the Default() method.

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.

gotcha, make sense

@pompon0 pompon0 merged commit a32efe0 into main Sep 26, 2025
26 of 27 checks passed
@pompon0 pompon0 deleted the gprusak-mconn branch September 26, 2025 10:00
pompon0 added a commit that referenced this pull request Sep 26, 2025
pompon0 added a commit that referenced this pull request Sep 26, 2025
pompon0 added a commit that referenced this pull request Sep 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants