Skip to content

feat(trial): replace websocket with sse#3991

Merged
ngjaying merged 3 commits intolf-edge:masterfrom
ngjaying:ruletest
Feb 2, 2026
Merged

feat(trial): replace websocket with sse#3991
ngjaying merged 3 commits intolf-edge:masterfrom
ngjaying:ruletest

Conversation

@ngjaying
Copy link
Collaborator

No description provided.

@ngjaying ngjaying changed the title feat(trial): replace websocket with sse for trial rules feat(trial): replace websocket with sse Jan 30, 2026
@codecov
Copy link

codecov bot commented Jan 30, 2026

Codecov Report

❌ Patch coverage is 73.80952% with 55 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.38%. Comparing base (85d4f19) to head (4018340).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
internal/io/http/httpserver/sse_server.go 76.98% 20 Missing and 9 partials ⚠️
internal/io/sse/sink.go 59.09% 12 Missing and 6 partials ⚠️
internal/io/http/httpserver/sse_conn.go 74.19% 6 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3991      +/-   ##
==========================================
+ Coverage   71.34%   71.38%   +0.05%     
==========================================
  Files         457      460       +3     
  Lines       52899    53105     +206     
==========================================
+ Hits        37737    37908     +171     
- Misses      12247    12267      +20     
- Partials     2915     2930      +15     

☔ View full report in Codecov by Sentry.
📢 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.

@ngjaying ngjaying force-pushed the ruletest branch 7 times, most recently from bf524b8 to 7f3aa82 Compare January 30, 2026 06:47
@ngjaying ngjaying marked this pull request as ready for review January 30, 2026 07:03
@ngjaying ngjaying force-pushed the ruletest branch 5 times, most recently from 26ba35e to 9bb397e Compare January 30, 2026 07:26
Track SSE connections per endpoint using sseEndpointContext to ensure
all active client connections are properly closed when trial rule is
deleted. Matches WebSocket implementation pattern.

Add unit tests to verify connections close properly when endpoint is
unregistered.

Signed-off-by: Jiyong Huang <[email protected]>
@ngjaying ngjaying merged commit 84982d4 into lf-edge:master Feb 2, 2026
63 checks passed
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.

2 participants