• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nats-io / nats.js / 13159645374
86%

Build:
DEFAULT BRANCH: main
Ran 05 Feb 2025 02:33PM UTC
Jobs 7
Files 63
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Feb 2025 02:30PM UTC coverage: 82.694% (+13.1%) from 69.574%
13159645374

push

github

web-flow
Add heartbeat handling to key iteration (#203)

* Add heartbeat detection to listing keys and history. In cases where the stream is purged as the client is making progress it could stall it as client is relying on numpending to signal out of the processing. By detecting a heartbeat, that means the server didn't have anything to send in the last 5s, providing a hint that we can use to signal that the operation is done.

Introduce a heartbeat case to handle key iteration status updates. This ensures proper key fetching and stops the iteration appropriately upon receiving a heartbeat.

* history for kv has the same issue - if values are purged in flight, the iteration may hang.

Signed-off-by: Alberto Ricart <alberto@synadia.com>

---------

Signed-off-by: Alberto Ricart <alberto@synadia.com>

2259 of 3072 branches covered (73.54%)

Branch coverage included in aggregate %.

4 of 22 new or added lines in 1 file covered. (18.18%)

2912 existing lines in 30 files now uncovered.

9634 of 11310 relevant lines covered (85.18%)

788186.24 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
18
82.51
-1.53% kv/src/kv.ts

Uncovered Existing Lines

Lines Coverage ∆ File
3
45.65
-6.52% core/src/encoders.ts
7
62.5
-29.17% transport-deno/src/connect.ts
7
68.18
0.46% core/src/parser.ts
11
47.37
-7.24% core/src/request.ts
19
29.27
-46.34% core/src/core.ts
22
30.36
-39.29% jetstream/src/types.ts
25
40.32
-13.44% core/src/errors.ts
28
32.35
-41.18% core/src/transport.ts
32
64.5
-18.93% jetstream/src/jsbaseclient_api.ts
43
58.38
-5.2% core/src/headers.ts
43
28.64
-20.87% core/src/util.ts
43
32.88
-58.9% jetstream/src/jsutil.ts
49
61.54
-22.17% jetstream/src/jsclient.ts
52
20.36
-23.53% core/src/denobuffer.ts
52
10.98
-63.41% core/src/idleheartbeat_monitor.ts
53
22.55
-22.55% core/src/ipparser.ts
58
16.5
-56.31% core/src/msg.ts
58
15.38
-49.57% core/src/databuffer.ts
58
21.0
-58.0% jetstream/src/jslister.ts
67
52.72
-21.41% core/src/servers.ts
69
38.78
-35.2% core/src/options.ts
74
9.69
-17.92% jetstream/src/jsm_direct.ts
82
34.59
-30.83% jetstream/src/jsmconsumer_api.ts
92
39.09
-46.7% jetstream/src/jsmsg.ts
131
46.07
-27.07% jetstream/src/pushconsumer.ts
135
24.0
-67.5% jetstream/src/jserrors.ts
165
26.67
-47.83% transport-deno/src/deno_transport.ts
296
46.06
-38.19% jetstream/src/jsmstream_api.ts
528
17.82
-61.11% jetstream/src/consumer.ts
610
21.93
-46.6% core/src/protocol.ts
Subprojects
ID Flag name Job ID Ran Files Coverage
1 transport-deno 13159645374.1 05 Feb 2025 02:33PM UTC 34
8.41
GitHub Action Run
2 obj 13159645374.2 05 Feb 2025 02:33PM UTC 51
41.36
GitHub Action Run
3 services 13159645374.3 05 Feb 2025 02:33PM UTC 39
50.8
GitHub Action Run
4 jetstream 13159645374.4 05 Feb 2025 02:33PM UTC 49
63.27
GitHub Action Run
5 kv 13159645374.5 05 Feb 2025 02:33PM UTC 53
46.44
GitHub Action Run
6 core 13159645374.6 05 Feb 2025 02:33PM UTC 34
89.36
GitHub Action Run
7 transport-node 13159645374.7 05 Feb 2025 02:33PM UTC 3
84.95
GitHub Action Run
Source Files on build 13159645374
  • Tree
  • List 63
  • Changed 8
  • Source Changed 1
  • Coverage Changed 26
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #13159645374
  • 47338f46 on github
  • Prev Build on main (#13138112391)
  • Next Build on main (#13209732514)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc