Skip to content

Make Epicbox probing bounded and persist its transport setting - #1516

Draft
sneurlax wants to merge 3 commits into
stagingfrom
fix/epicbox-reliability
Draft

sneurlax wants to merge 3 commits into
stagingfrom
fix/epicbox-reliability

Conversation

@sneurlax

@sneurlax sneurlax commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Summary

  • move the Epicbox websocket probe into a small testable helper
  • bound connection readiness and first-response waits
  • do not await websocket close after failed connection setup
  • serialize epicbox_protocol_unsecure under the key the plugin reads
  • continue reading both older key spellings

Split from #1507 so Epicbox reliability and config compatibility can be reviewed independently.

Verification

  • Epicbox config/probe tests: 9 passed
  • combined split integration suite: 136 passed
  • combined Linux release build: passed

Merge ordering

#1507 refactors EpiccashWallet, so merging it first requires a small semantic relocation of the probe call/import. That integration was built and tested locally.

Latest staging refresh (2026-11-17)

Rebased exactly onto staging 1d319093efe5; patch equivalence was confirmed with range-diff. New head: de92122ac28b. Focused verification: 11 tests passed. The GitHub Actions Test workflow completed green on the exact refreshed head, including the full Flutter test job, Linux release bundle, and Windows build-script checks.

@sneurlax
sneurlax marked this pull request as draft November 13, 2026 22:50
@codecov

codecov Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 77.77778% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 16.38%. Comparing base (a31b28b) to head (de92122).
⚠️ Report is 4 commits behind head on staging.

Files with missing lines Patch % Lines
lib/wallets/wallet/impl/epiccash_wallet.dart 0.00% 3 Missing ⚠️
lib/models/mwcmqs_config_model.dart 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           staging    #1516      +/-   ##
===========================================
+ Coverage    16.11%   16.38%   +0.27%     
===========================================
  Files         1145     1146       +1     
  Lines       114390   114411      +21     
===========================================
+ Hits         18429    18748     +319     
+ Misses       95961    95663     -298     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

The pre-send relay check awaited sink.close() in a finally block. After a
failed connection that future never completes, so a send to an
unreachable or misconfigured relay left the sending dialog up forever
instead of reporting that the relay could not be reached. Move the check
into probeEpicboxServer, close the channel without waiting, and bound the
connect with a timeout.
EpicboxConfig in the plugin reads epicbox_protocol_unsecure, but the
model wrote epicbox_protocol_insecure, so the flag never reached it.
Write the plugin's key and keep reading the two older spellings. Also
make copyWith on the Epicbox and MWCMQS config models apply their
arguments.
@sneurlax
sneurlax force-pushed the fix/epicbox-reliability branch from 229b57b to de92122 Compare November 17, 2026 19:53
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.

1 participant