Skip to content

Replace gen_leader with locks_leader for gproc_dist - #207

Open
uwiger wants to merge 6 commits into
masterfrom
uw-new-locks_leader
Open

Replace gen_leader with locks_leader for gproc_dist#207
uwiger wants to merge 6 commits into
masterfrom
uw-new-locks_leader

Conversation

@uwiger

@uwiger uwiger commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Port distributed registry to locks_leader: optional locks application,
conditional gproc_dist start when locks_server is present, and optional
peer connect via {gproc, gproc_dist} node list.

Testing: Common Test gproc_dist_SUITE with peer nodes and per-node
disk logs; eunit keeps local coverage (dist eunit generator removed).
Drop rebar.config.script that previously gated gen_leader.

uwiger added 5 commits July 30, 2026 13:04
Port distributed registry to locks_leader: optional locks application,
conditional gproc_dist start when locks_server is present, and optional
peer connect via {gproc, gproc_dist} node list.

Testing: Common Test gproc_dist_SUITE with peer nodes and per-node
disk logs; eunit keeps local coverage (dist eunit generator removed).
Drop rebar.config.script that previously gated gen_leader.
Stop ignoring rebar.lock so CI and clones pin locks (and plain_fsm)
to the same refs as development.
wait_gproc_leader now probes with a long-lived process until a global
name is visible on every node (leader agreement alone is not enough;
broadcast only reaches synced followers). Increase lookup retries for
CI load. Upload _build/test/logs as an artifact when make fails.
Comment thread .github/workflows/ci.yml Outdated
image: erlang:${{ matrix.otp }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

@vkatsuba vkatsuba Aug 7, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor stuff but still, since this version is updated it make sense to use latest version of component

Suggested change
- uses: actions/checkout@v4
- uses: actions/checkout@v7

If you check Summary of last CI run(https://github.com/uwiger/gproc/actions/runs/30544178216?pr=207) you can see Warning like

[OTP 27](https://github.com/uwiger/gproc/actions/runs/30544178216/job/90876025774#step:11:2)
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/checkout@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

Using latest version of component should fix this warning and future issues with CI.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants