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

sgerrand / ex_teya / 36008612957
100%

Build:
DEFAULT BRANCH: main
Ran 24 Sep 2026 01:52PM UTC
Jobs 1
Files 20
Run time 1min
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

24 Sep 2026 01:51PM UTC coverage: 100.0%. Remained the same
36008612957

push

github

web-flow
fix(poslink): read the snapshot in get/2 outside the caller's mailbox (#41)

* fix(poslink): read the snapshot in get/2 outside the caller's mailbox

get/2 received the stream's messages in the calling process and matched
only on the payment id. A caller that already had subscribe/2 running for
that payment lost those events: get/2 returned one of them as its
snapshot and drained the rest, so the caller's own receive loop never saw
the payment finish. It now waits in a task of its own, so the two streams
cannot take each other's messages.

A "diff" event carries only the fields that changed, so returning one as a
snapshot left out identifiers the caller needs, such as
gateway_payment_id for a refund. get/2 now waits for a full event.

* fix(poslink): report stream failures in get/2 instead of waiting

Review follow-ups on the collector task.

The stream task is now started linked from the collector rather than
through subscribe/2. A stream that dies takes the collector with it, so
get/2 returns the reason straight away instead of sitting out the whole
timeout — the token fetch alone can exit :noproc when :client_id is
unset. Killing the collector now also takes the stream with it, rather
than leaving its connection open until the SSE timeout.

The snapshot match is positive: only a "full" event counts. The negative
guard let a keepalive or an unnamed event through as the payment, which
is the failure this was meant to fix.

The deadline lives in get/2 alone, so :timeout is passed to Task.yield
untouched and :infinity no longer raises ArithmeticError. A collector that
exits reports its reason rather than claiming a timeout.

* fix(poslink): close the stream when get/2 has its snapshot

A linked task only dies with its parent when the parent exits abnormally.
The collector returns normally on the happy path, so the stream task
survived and held its connection open until the payment reached a final
state or the SSE idle timeout passed. The README's recov... (continued)

38 of 38 new or added lines in 3 files covered. (100.0%)

181 of 181 relevant lines covered (100.0%)

14.24 hits per line

Jobs
ID Job ID Ran Files Coverage
1 36008612957.1 24 Sep 2026 01:52PM UTC 20
100.0
GitHub Action Run
Source Files on build 36008612957
  • Tree
  • List 20
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #36008612957
  • 272b4728 on github
  • Prev Build on main (#35980766899)
  • Next Build on main (#36126855899)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc