Skip to content

feat(communities): publish community control on the default shard (32) (#7498 phase 2) - #7540

Draft
igor-sirotin wants to merge 1 commit into
developfrom
feat/publish-community-control-shard-32
Draft

feat(communities): publish community control on the default shard (32) (#7498 phase 2)#7540
igor-sirotin wants to merge 1 commit into
developfrom
feat/publish-community-control-shard-32

Conversation

@igor-sirotin

Copy link
Copy Markdown
Collaborator

What & why

Phase 2 of the single-shard migration (#7498), part of the logos-delivery
Messaging API integration (logos-messaging/pm#380).

Stacked on #7538 (phase 1 — listen on shard 32 in addition to 64). Please
review/merge that first; this PR's diff is only the send-side delta.

Switch the five community-control send sites in
protocol/messenger_communities.go from DefaultNonProtectedPubsubTopic() (shard
64) to DefaultShardPubsubTopic() (shard 32):

  • request to join (COMMUNITY_REQUEST_TO_JOIN)
  • cancel request to join (COMMUNITY_CANCEL_REQUEST_TO_JOIN)
  • request-to-join response (COMMUNITY_REQUEST_TO_JOIN_RESPONSE)
  • user kicked (COMMUNITY_USER_KICKED)
  • shared-addresses response (COMMUNITY_SHARED_ADDRESSES_RESPONSE)

Converging community messaging onto the default shard (32) and dropping shard 64
is a prerequisite for the content-topic-only auto-sharding of the Messaging API.

Phase Ver Listen Send
1 2.38 32, 64 64 (#7538)
2 2.39 32, 64 32 ← this PR
3 2.40 32 32 (#7505)

Interop (N±1)

Listening is unchanged — still both 32 and 64 (phase 1). So a phase-1 peer, which
already listens on 32, receives our shard-32 sends; and we still receive a peer's
shard-64 sends. The 64 listen filter is dropped in phase 3 (#7505).

Notes

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown

⚠️ Companion PR Required

Add a link to your status-app PR in this PR's description.

Example: https://github.com/status-im/status-app/pull/123

Base automatically changed from feat/community-control-send-shard-32 to develop June 9, 2026 20:54
@status-im-auto

status-im-auto commented Jun 9, 2026

Copy link
Copy Markdown
Member

Jenkins Builds

Click to see older builds (15)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ b50c6c5 1 2026-06-09 20:56:16 ~3 min linux/status-go 📦zip
✔️ b50c6c5 1 2026-06-09 20:57:06 ~4 min macos/status-go 📦zip
✔️ b50c6c5 1 2026-06-09 20:58:20 ~5 min windows/status-go 📦zip
✔️ b50c6c5 1 2026-06-09 20:59:09 ~6 min tests-rpc-compat 📄log
✔️ b50c6c5 2 2026-06-09 21:00:26 ~4 min linux/status-go 📦zip
✔️ b50c6c5 2 2026-06-09 21:01:52 ~4 min macos/status-go 📦zip
✔️ b50c6c5 1 2026-06-09 21:08:40 ~16 min tests-rpc 📄log
✔️ b50c6c5 1 2026-06-09 21:26:57 ~34 min tests 📄log
✔️ 7acfb95 3 2026-06-09 21:04:45 ~4 min linux/status-go 📦zip
✔️ 7acfb95 2 2026-06-09 21:06:04 ~6 min tests-rpc-compat 📄log
✔️ 7acfb95 3 2026-06-09 21:06:26 ~4 min macos/status-go 📦zip
✔️ 7acfb95 2 2026-06-09 21:08:17 ~9 min windows/status-go 📦zip
✔️ 7acfb95 3 2026-06-09 21:19:15 ~10 min windows/status-go 📦zip
✔️ 7acfb95 2 2026-06-09 21:27:13 ~18 min tests-rpc 📄log
✔️ 7acfb95 2 2026-06-09 22:02:35 ~35 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ c257add 4 2026-06-17 08:38:53 ~4 min macos/status-go 📦zip
✔️ c257add 4 2026-06-17 08:42:32 ~8 min windows/status-go 📦zip
✔️ c257add 4 2026-06-17 10:12:20 ~1 hr 38 min linux/status-go 📦zip
✔️ c257add 3 2026-06-17 10:24:40 ~1 hr 50 min tests 📄log
✖️ c257add 3 2026-06-17 10:24:41 ~1 hr 50 min tests-rpc 📄log
✖️ c257add 3 2026-06-17 10:26:49 ~1 hr 52 min tests-rpc-compat 📄log
✖️ c257add 4 2026-06-17 11:30:26 ~1 hr 0 min tests-rpc 📄log
✖️ c257add 4 2026-06-17 11:31:42 ~55 min tests-rpc-compat 📄log
✖️ c257add 5 2026-06-18 19:01:47 ~11 min tests-rpc-compat 📄log

@igor-sirotin
igor-sirotin force-pushed the feat/publish-community-control-shard-32 branch from b50c6c5 to 7acfb95 Compare June 9, 2026 20:58
@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.76%. Comparing base (17f9f02) to head (c257add).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #7540      +/-   ##
===========================================
- Coverage    61.78%   61.76%   -0.03%     
===========================================
  Files          849      849              
  Lines       118727   118727              
===========================================
- Hits         73360    73331      -29     
- Misses       37882    37912      +30     
+ Partials      7485     7484       -1     
Flag Coverage Δ
functional 40.95% <80.00%> (+0.02%) ⬆️
unit 55.53% <100.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
protocol/messenger_communities.go 52.74% <100.00%> (-0.09%) ⬇️

... and 23 files with indirect coverage changes

Phase 2 of the single-shard migration (#7498). Stacked on the phase-1 listen
change (#7538). Switch the five community-control send sites (request/cancel to
join, request-to-join response, user kicked, shared-addresses response) from the
non-protected shard (64) to the default shard (32).

Listening is unchanged: still both 32 and 64 (phase 1). So a phase-1 peer, which
already listens on 32, receives these, and this client still receives a peer's
shard-64 traffic — N±1 interop-safe. The DefaultFilters listen entries are
untouched.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@igor-sirotin
igor-sirotin force-pushed the feat/publish-community-control-shard-32 branch from 7acfb95 to c257add Compare June 17, 2026 08:33
@igor-sirotin

Copy link
Copy Markdown
Collaborator Author

Results against v10.32 and v10.33. Now pushed a v10.34.0 tag, testing with it.

image

@igor-sirotin

Copy link
Copy Markdown
Collaborator Author

Looks pretty much as expected with v10.34.0. Will now skip these 2 tests for version-2.

image

@igor-sirotin
igor-sirotin marked this pull request as draft July 22, 2026 10:02
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