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

lsm / neokai / 28058184411
82%

Build:
DEFAULT BRANCH: dev
Ran 23 Jun 2026 09:27PM UTC
Jobs 28
Files 611
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

23 Jun 2026 09:25PM UTC coverage: 81.955% (+0.01%) from 81.945%
28058184411

push

github

web-flow
feat: flush pending event deliveries when a worker node activates (#2166)

* feat: flush pending event deliveries when a worker node activates

External events persisted as `pending` in `space_external_event_deliveries`
(while a subscribed node was idle or inactive) are now injected into the
node-agent session on its next activation and marked `delivered`.

Extends `flushPendingNodeQueue` to also drain DB-persisted pending
deliveries via a new `flushPersistedPendingDeliveriesForTarget` helper.
When the in-memory pending queue for a target is empty (the typical case
for events that arrived while the node was idle), the runtime reads
`pending` rows from `ExternalEventStore.listPendingDeliveries`, filters
to the activated target, and re-dispatches each through the existing
`enqueueDeliverableExternalEvent` pipeline so delivery mode, rate-limit
digesting, retry handling, and state transitions stay consistent.

Closes #654.

* fix: always flush DB-persisted pending deliveries on activation

Address review feedback on PR #2166: the previous guard
(`if (!queued || queued.length === 0)`) could skip DB-persisted pending
deliveries when the in-memory queue was non-empty for the same target.

Now always runs the DB flush, passing the set of delivery keys just
drained from the in-memory queue so they're not double-dispatched.
Also filters to only deliveries with a non-null failureReason — rows
with null failureReason are still being processed by the original
dispatch path (in-flight or digest-pending) and must not be
re-dispatched.

Adds a test verifying DB-persisted items are flushed even when the
in-memory queue is non-empty.

* fix: merge/sort both pending sources and preserve TTL on retry

Address P2 review feedback on PR #2166:

1. Chronological ordering: items from in-memory queue and DB-persisted
   pending deliveries are now collected into a single array and sorted
   by `createdAt` before dispatch, so a newer in-memory event is never
   injected before a... (continued)

11214 of 16228 branches covered (69.1%)

Branch coverage included in aggregate %.

86 of 86 new or added lines in 1 file covered. (100.0%)

94715 of 113024 relevant lines covered (83.8%)

299.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 daemon-5-space-runtime-a - 28058184411.1 23 Jun 2026 09:27PM UTC 127
39.57
GitHub Action Run
2 daemon-4-space-migrations-b - 28058184411.2 23 Jun 2026 09:28PM UTC 48
55.95
GitHub Action Run
3 daemon-5-space-runtime-b - 28058184411.3 23 Jun 2026 09:28PM UTC 181
47.83
GitHub Action Run
4 daemon-online-git - 28058184411.4 23 Jun 2026 09:27PM UTC 356
18.57
GitHub Action Run
5 daemon-online-agent-sdk - 28058184411.5 23 Jun 2026 09:27PM UTC 356
21.91
GitHub Action Run
6 daemon-online-space-2 - 28058184411.6 23 Jun 2026 09:28PM UTC 356
31.57
GitHub Action Run
7 daemon-online-components - 28058184411.7 23 Jun 2026 09:26PM UTC 356
17.72
GitHub Action Run
8 daemon-online-lifecycle - 28058184411.8 23 Jun 2026 09:27PM UTC 356
22.2
GitHub Action Run
9 daemon-online-rewind-2 - 28058184411.9 23 Jun 2026 09:27PM UTC 356
22.49
GitHub Action Run
10 daemon-online-rewind-1 - 28058184411.10 23 Jun 2026 09:27PM UTC 356
22.03
GitHub Action Run
11 daemon-online-features-1 - 28058184411.11 23 Jun 2026 09:27PM UTC 356
22.6
GitHub Action Run
12 web - 28058184411.12 23 Jun 2026 09:28PM UTC 245
74.34
GitHub Action Run
13 daemon-5-space-agent-other - 28058184411.13 23 Jun 2026 09:27PM UTC 281
26.07
GitHub Action Run
14 daemon-4-space-storage - 28058184411.14 23 Jun 2026 09:27PM UTC 159
54.3
GitHub Action Run
15 daemon-online-rpc-1 - 28058184411.15 23 Jun 2026 09:27PM UTC 356
18.83
GitHub Action Run
16 daemon-online-mcp - 28058184411.16 23 Jun 2026 09:27PM UTC 356
18.03
GitHub Action Run
17 daemon-online-websocket - 28058184411.17 23 Jun 2026 09:27PM UTC 356
17.81
GitHub Action Run
18 daemon-online-rpc-4 - 28058184411.18 23 Jun 2026 09:28PM UTC 356
22.63
GitHub Action Run
19 daemon-online-rpc-3 - 28058184411.19 23 Jun 2026 09:27PM UTC 356
19.17
GitHub Action Run
20 daemon-online-coordinator - 28058184411.20 23 Jun 2026 09:27PM UTC 345
7.84
GitHub Action Run
21 daemon-online-rpc-2 - 28058184411.21 23 Jun 2026 09:28PM UTC 356
22.94
GitHub Action Run
22 daemon-online-sdk - 28058184411.22 23 Jun 2026 09:27PM UTC 356
21.91
GitHub Action Run
23 daemon-online-convo - 28058184411.23 23 Jun 2026 09:27PM UTC 356
21.82
GitHub Action Run
24 daemon-4-space-migrations-a - 28058184411.24 23 Jun 2026 09:28PM UTC 73
38.0
GitHub Action Run
25 daemon-0-shared-handlers-workflow - 28058184411.25 23 Jun 2026 09:28PM UTC 361
32.35
GitHub Action Run
26 daemon-1-core - 28058184411.26 23 Jun 2026 09:28PM UTC 362
34.92
GitHub Action Run
27 daemon-online-features-2 - 28058184411.27 23 Jun 2026 09:27PM UTC 356
22.04
GitHub Action Run
28 daemon-online-space-1 - 28058184411.28 23 Jun 2026 09:28PM UTC 356
31.62
GitHub Action Run
Source Files on build 28058184411
  • Tree
  • List 611
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28058184411
  • 916bdfc2 on github
  • Prev Build on dev (#28057843481)
  • Next Build on dev (#28065500411)
  • Delete
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