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

emqx / ekka / 937
63%
master: 63%

Build:
Build:
LAST BUILD BRANCH: dont-reconnect-mnesia-after-autoheal
DEFAULT BRANCH: master
Ran 24 Apr 2026 04:09AM UTC
Jobs 1
Files 27
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 Apr 2026 04:04AM UTC coverage: 61.043% (-0.7%) from 61.721%
937

push

github

JimMoen
test(autoheal): cover atomic heal path, legacy fallback, and mnesia re-join

Adds five CT cases exercising the new single-rpc heal contract:

  t_heal_single_rpc
      Calls ekka_cluster:heal(shutdown_and_reboot) directly on a slave
      and verifies the clause exists and completes without raising.

  t_heal_restores_mnesia_running_nodes
      Unit-scope regression guard for the initial draft that only
      called prepare(heal)/reboot() and left the victim's mnesia
      schema as a detached singleton. Builds a 2-node cluster, has
      the peer run heal(shutdown_and_reboot), and asserts both nodes
      see the full cluster in ekka_mnesia:running_nodes/0 afterwards.

  t_autoheal_restores_mnesia
      Integration-scope regression guard for the same bug. Instead
      of calling ekka_cluster:heal/1 directly, triggers a symmetric
      2-node netsplit via net_kernel:disconnect/1 and lets the
      autoheal GenServer drive the whole chain (partition detection,
      split-view computation, coordinator election, rpc to victim's
      heal). Asserts both the ekka membership layer AND the mnesia
      cluster view recover on BOTH nodes.

  t_heal_timeout_30s
      Source inspection to assert the new heal_node/1 uses a bounded
      30000ms timeout on rpc:call (never infinity). Avoids burning 30s
      of CI wall clock for a live-timeout test.

  t_heal_legacy_fallback
      Swaps in a shim ekka_cluster on the slave that only exports
      the two legacy heal clauses and records calls through an ETS
      table, then invokes heal_node/1 and asserts the fallback branch
      fires heal(shutdown) followed by heal(reboot).

The pre-existing t_autoheal / t_autoheal_asymm / t_autoheal_fullsplit
cases continue to exercise the full autoheal GenServer path with 3
and 4 nodes.

702 of 1150 relevant lines covered (61.04%)

62.35 hits per line

Coverage Regressions

Lines Coverage ∆ File
13
51.11
-16.54% src/ekka_cluster.erl
1
63.41
-1.22% src/ekka_node_monitor.erl
Jobs
ID Job ID Ran Files Coverage
1 937.1 24 Apr 2026 04:09AM UTC 27
61.04
GitHub Action Run
Source Files on build 937
  • Tree
  • List 27
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 321f277f on github
  • Prev Build on (#936)
  • Next Build on (#939)
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