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

medplum / medplum / 29134437041
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: chore/deps/upgrade-es-module-lexer
DEFAULT BRANCH: main
Ran 11 Jul 2026 01:34AM UTC
Jobs 1
Files 838
Run time 2min
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

11 Jul 2026 01:19AM UTC coverage: 91.914%. Remained the same
29134437041

push

github

web-flow
fix(server): prevent agent version clobber on connect status update (#9828)

* fix(server): prevent agent version clobber on connect status update

The agent WebSocket connect handler sent 'agent:connect:response' before
awaiting the agent status update in Redis. The status update is a
non-atomic read-modify-write (GET last info, SET merged status), so a
slow GET reply could resume after the agent's heartbeat response was
recorded, overwriting the reported version with stale info. This caused
the flaky 'Heartbeat' test failure on CI (version 'unknown' instead of
MEDPLUM_VERSION).

Complete the status update before acknowledging the connection, and add
a regression test that reproduces the race deterministically by
delaying the first agent info GET reply.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Derrick Farris <derrick@medplum.com>

* test(server): fix type error in heartbeat version test

Use sendText(JSON.stringify(...)) like the rest of the file -- sendJson's
JsonValue param rejects agent.id being string | undefined.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Derrick Farris <derrick@medplum.com>

---------

Signed-off-by: Derrick Farris <derrick@medplum.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

22083 of 25083 branches covered (88.04%)

Branch coverage included in aggregate %.

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

39276 of 41674 relevant lines covered (94.25%)

12375.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29134437041.1 11 Jul 2026 01:34AM UTC 838
91.91
GitHub Action Run
Source Files on build 29134437041
  • Tree
  • List 838
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #29134437041
  • d676deeb on github
  • Prev Build on gh-readonly-queue/main/pr-9725-05062bebe9c48815c3e9b1ae3bf770999584f73b (#29134105234)
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