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

emqx / ekka / 936
63%
master: 63%

Build:
Build:
LAST BUILD BRANCH: dont-reconnect-mnesia-after-autoheal
DEFAULT BRANCH: master
Ran 23 Apr 2026 05:29PM 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

23 Apr 2026 04:47PM UTC coverage: 61.721% (-1.6%) from 63.271%
936

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.

703 of 1139 relevant lines covered (61.72%)

62.01 hits per line

Coverage Regressions

Lines Coverage ∆ File
31
62.5
-7.41% src/ekka_autocluster.erl
22
15.22
0.0% src/ekka_dist.erl
19
64.42
2.16% src/ekka_locker.erl
15
71.43
36.73% src/ekka_cluster_etcd.erl
11
67.65
-19.02% src/ekka_cluster.erl
9
70.27
-9.73% src/ekka_cluster_k8s.erl
6
81.58
6.07% src/ekka.erl
3
82.35
1.4% src/ekka_boot.erl
1
96.15
-0.4% src/ekka_httpc.erl
Jobs
ID Job ID Ran Files Coverage
1 936.1 23 Apr 2026 05:29PM UTC 27
61.72
GitHub Action Run
Source Files on build 936
  • Tree
  • List 27
  • Changed 16
  • Source Changed 16
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1a099672 on github
  • Prev Build on (#934)
  • Next Build on (#937)
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