Skip to content

Commit 4a8ebfd

Browse files
committed
Merge remote-tracking branch 'origin/main' into bostonaholic--relay-reaction-recipients
* origin/main: (111 commits) perf(acp): avoid repeated observer batch serialization (#9483) docs(readme): point desktop readers at block/buzz-app and describe where each client lives (#9493) test(cli,db): freeze the assertion test clock and give pool release tests a test-lane acquire budget (#9442) test(desktop): unmount every TerminalSubstrate tree before the window closes (#9440) fix(mobile): drop the iOS share extension from the build until it's signed (#9489) chore(release): release Buzz Desktop version 0.5.30 (#9491) perf(mobile): parse each event's thread reference once (#9460) perf(mobile): load only the directory when search opens (#9466) perf(mobile): stop rebuilding Home's channel list when a route covers it (#9459) perf(mobile): ask typing subscriptions only for the typing window (#9454) perf(mobile): skip avatar URL parsing for non-HTTP URLs (#9448) perf(mobile): download the identity archive list only when it changed (#9445) perf(mobile): don't treat a Control Center pull as a resume (#9443) fix(mobile): keep a superseded roster read out of the offline snapshot (#9452) perf(mobile): read channel bot roles from the member list (#9451) perf(mobile): read Activity once per reconnect (#9455) fix(mobile): offer role controls for agents (#9475) perf(mobile): stop rebuilding the native nav bar on every scrolled frame (#9458) perf(mobile): keep verified-name batches open as people are added (#9450) perf(mobile): read only changed custom emoji sets on reconnect (#9446) ... Signed-off-by: Matthew Boston <[email protected]>
2 parents cf2abde + 5780bd7 commit 4a8ebfd

615 files changed

Lines changed: 55821 additions & 9056 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.config/nextest.toml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,14 @@ fail-fast = false
5353

5454
[profile.flake.junit]
5555
path = "junit.xml"
56+
57+
[test-groups.desktop-same-user-check]
58+
# Most of buzz-cli's `desktop_provider::` tests reach the real same-user
59+
# check, which runs `lsof` with a 5-second limit. Run all at once on a busy
60+
# Mac, they starve each other past that limit, so the whole module takes
61+
# turns; the few that never reach the check run serially too.
62+
max-threads = 1
63+
64+
[[profile.default.overrides]]
65+
filter = "package(buzz-cli) and test(/^desktop_provider::/)"
66+
test-group = "desktop-same-user-check"

‎.env.example‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ REDIS_URL=redis://localhost:6379
3939
# Emergency kill switch for all automatic partition DDL, including catch-all
4040
# advancement; audits remain enabled.
4141
# BUZZ_PARTITION_MANAGER_CREATE_ENABLED=true
42+
# Which workflow runs may direct agents: any (default) or owner (owner-only
43+
# agent mentions). See docs/operator-workflow-agent-mentions.md.
44+
# BUZZ_WORKFLOW_AGENT_MENTIONS=owner
4245
# Replace an empty partition catch-all with six months of dedicated monthlies,
4346
# at startup and on every audit interval (default true). Has no effect while the
4447
# kill switch above is off.
@@ -117,6 +120,15 @@ BUZZ_PUSH_GATEWAY_DELIVERY_URL=https://push.buzz.xyz/v1/deliveries/apns
117120
# origin in its NIP-11 document (`admin_api` field) so clients can auto-discover
118121
# the console without manual URL entry.
119122
# RELAY_OPERATOR_PUBKEYS=<64-char hex pubkey>[,<64-char hex pubkey>...]
123+
124+
# Serve multiple communities (default true; strict boolean). With false, only
125+
# the normalized RELAY_URL host (including a nondefault port) serves ordinary
126+
# HTTP/WebSocket traffic. New operator creation is disabled; canonical startup
127+
# bootstrap and authenticated admin/operator cleanup of existing extras remain
128+
# available. Existing rows and background cleanup workers are retained.
129+
# Restart every serving revision when changing this setting. Requires a supporting
130+
# image: old images ignore unknown vars; rollback can reopen serving/creation.
131+
# BUZZ_MULTI_COMMUNITY_RELAY=true
120132
#
121133
# Option B — BUZZ_ADMIN_AUTH=disabled (read-only, no authentication):
122134
# Anyone who can reach the relay can read, in every community: reports (with

‎.github/workflows/_ci-clients.yml‎

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ env:
2525
jobs:
2626
web:
2727
name: Web
28-
runs-on: ubuntu-latest
28+
runs-on: ubuntu-26.04
2929
timeout-minutes: 15
3030
if: inputs.lane == 'required' && (github.event_name == 'push' || inputs.web)
3131
permissions:
@@ -61,7 +61,7 @@ jobs:
6161
# matrix result. Test shards split files, so each compiles only its own.
6262
mobile:
6363
name: Mobile (${{ matrix.name }})
64-
runs-on: ubuntu-latest
64+
runs-on: ubuntu-26.04
6565
timeout-minutes: 30
6666
if: inputs.lane == 'required' && (github.event_name == 'push' || inputs.mobile)
6767
strategy:
@@ -133,15 +133,14 @@ jobs:
133133
run: cd mobile && flutter analyze
134134
- name: Test
135135
if: matrix.lane == 'test'
136-
run: /bin/bash scripts/mobile-test-shard.sh ${{ matrix.shard }} 3 --dart-define=BUZZ_PUSH_GATEWAY_URL=https://push.example
136+
run: /bin/bash scripts/mobile-test-shard.sh ${{ matrix.shard }} 3
137137
- name: Test native secp256k1 package
138138
if: matrix.lane == 'checks'
139139
run: cd mobile/packages/buzz_secp256k1 && dart pub get && dart test
140140
- name: Test internal build
141141
if: matrix.lane == 'checks'
142142
run: >-
143143
cd mobile && flutter test
144-
--dart-define=BUZZ_PUSH_GATEWAY_URL=https://push.example
145144
--dart-define=BUZZ_DISTRIBUTION=internal
146145
--dart-define=BUZZ_BUILDERLAB_URL=https://id.example.org
147146
--dart-define=BUZZ_BUILDERLAB_RELAYS=buzz.example.org
@@ -150,7 +149,6 @@ jobs:
150149
if: matrix.lane == 'checks'
151150
run: >-
152151
cd mobile && flutter test
153-
--dart-define=BUZZ_PUSH_GATEWAY_URL=https://push.example
154152
--dart-define=BUZZ_DISTRIBUTION=public
155153
--dart-define=BUZZ_BUILDERLAB_URL=https://app.builderlab.xyz
156154
--dart-define=BUZZ_BUILDERLAB_RELAYS=communities.buzz.xyz
@@ -163,19 +161,18 @@ jobs:
163161
test/features/agents/agents_restore_prompt_test.dart
164162
test/shared/hosted/relay_auth_isolation_test.dart
165163
test/features/onboarding/hosted_app_gate_environment_test.dart
164+
test/features/settings/builderlab_account_row_test.dart
166165
test/features/onboarding/hosted_journeys_test.dart
166+
test/features/onboarding/hosted_backup_consent_test.dart
167167
test/features/onboarding/onboarding_sign_out_test.dart
168168
test/features/onboarding/hosted_communities_test.dart
169169
test/features/pairing/pairing_hosted_handoff_test.dart
170170
test/shared/agents/remote_agents_test.dart
171171
test/features/agents
172-
- name: Test mobile without push configuration
173-
if: matrix.lane == 'checks'
174-
run: cd mobile && flutter test test/shared/push/push_unconfigured_build_test.dart
175172
- name: Test mobile recipe argument forwarding
176173
if: matrix.lane == 'checks'
177174
run: /bin/bash scripts/test-mobile-gateway-recipes.sh
178-
# ubuntu-latest (26.04) defaults to JDK 25, which Gradle 8.14 does not
175+
# ubuntu-26.04 defaults to JDK 25, which Gradle 8.14 does not
179176
# support. Pin the JDK 17 the 24.04 image used.
180177
- name: Set up JDK 17
181178
if: matrix.lane == 'android'
@@ -289,7 +286,7 @@ jobs:
289286
name: Results
290287
if: ${{ always() }}
291288
needs: [web, mobile, mobile-swift]
292-
runs-on: ubuntu-latest
289+
runs-on: ubuntu-26.04
293290
timeout-minutes: 5
294291
permissions: {}
295292
outputs:

‎.github/workflows/_ci-desktop-macos.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105
name: Results
106106
if: ${{ always() }}
107107
needs: [desktop-build-macos]
108-
runs-on: ubuntu-latest
108+
runs-on: ubuntu-26.04
109109
timeout-minutes: 5
110110
permissions: {}
111111
outputs:

‎.github/workflows/_ci-desktop.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# relayReconnectReplay.test.mjs), so Rust changes select this job too.
2727
desktop-js:
2828
name: Desktop JS
29-
runs-on: ubuntu-latest
29+
runs-on: ubuntu-26.04
3030
timeout-minutes: 20
3131
# Keep in sync with JS_SELECTED in the Desktop gate (pinned by ci-required-gates.test.mjs).
3232
if: github.event_name == 'push' || inputs.desktop || inputs.rust
@@ -68,7 +68,7 @@ jobs:
6868
# cache read-only; the mesh-llm feature pulls its own dependency graph.
6969
desktop-tauri:
7070
name: Desktop Tauri (${{ matrix.lane }})
71-
runs-on: ubuntu-latest
71+
runs-on: ubuntu-26.04
7272
# A lane needs up to ~15m. ci-apt-retry.sh bounds the apt steps at ~34m worst
7373
# case (update ~8.5m + install ~25m); 55m fits both, so a degraded mirror
7474
# fails with the wrapper's error instead of the job timeout.
@@ -191,7 +191,7 @@ jobs:
191191

192192
desktop-smoke-e2e:
193193
name: Desktop Smoke E2E (${{ matrix.shard }})
194-
runs-on: ubuntu-latest
194+
runs-on: ubuntu-26.04
195195
# A smoke shard needs ~12m, and Chromium dependency setup is bounded by
196196
# ci-apt-retry.sh (~25m worst case). Leave time for the full suite
197197
# and its reports to finish.
@@ -262,7 +262,7 @@ jobs:
262262

263263
desktop:
264264
name: Desktop
265-
runs-on: ubuntu-latest
265+
runs-on: ubuntu-26.04
266266
timeout-minutes: 5
267267
needs: [desktop-js, desktop-tauri, desktop-smoke-e2e, desktop-windows-build]
268268
if: always() && (github.event_name == 'push' || inputs.desktop || inputs.desktop_rust || inputs.rust)
@@ -330,7 +330,7 @@ jobs:
330330
name: Results
331331
if: ${{ always() }}
332332
needs: [desktop]
333-
runs-on: ubuntu-latest
333+
runs-on: ubuntu-26.04
334334
timeout-minutes: 5
335335
permissions: {}
336336
outputs:

‎.github/workflows/_ci-flake.yml‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
jobs:
1818
flake-select:
1919
name: Flake check selection
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-26.04
2121
timeout-minutes: 10
2222
permissions:
2323
contents: read
@@ -69,7 +69,7 @@ jobs:
6969
name: Flake check (Rust)
7070
needs: [flake-select]
7171
if: needs.flake-select.outputs.rust != ''
72-
runs-on: ubuntu-latest
72+
runs-on: ubuntu-26.04
7373
timeout-minutes: 30
7474
permissions:
7575
contents: read
@@ -111,7 +111,7 @@ jobs:
111111
name: Flake check (Desktop Tauri)
112112
needs: [flake-select]
113113
if: needs.flake-select.outputs.tauri != ''
114-
runs-on: ubuntu-latest
114+
runs-on: ubuntu-26.04
115115
# A Desktop Tauri lane's bound (_ci-desktop.yml: ci-apt-retry.sh bounds
116116
# the apt step at ~34m worst case and a cold build needs ~15m), plus a
117117
# second cold build: a lib selection also builds the mesh-llm graph.
@@ -180,7 +180,7 @@ jobs:
180180
name: Flake check (node:test)
181181
needs: [flake-select]
182182
if: needs.flake-select.outputs.node != ''
183-
runs-on: ubuntu-latest
183+
runs-on: ubuntu-26.04
184184
timeout-minutes: 15
185185
permissions:
186186
contents: read
@@ -215,7 +215,7 @@ jobs:
215215
name: Flake check (Playwright smoke, ${{ matrix.shard }}/${{ needs.flake-select.outputs.playwright_shard_total }})
216216
needs: [flake-select]
217217
if: needs.flake-select.outputs.playwright != ''
218-
runs-on: ubuntu-latest
218+
runs-on: ubuntu-26.04
219219
# Same bound as a smoke shard: Chromium dependency setup is bounded by
220220
# ci-apt-retry.sh (~25m worst case), and flake-check.mjs sizes the shards
221221
# so the repetitions fit the rest.
@@ -286,8 +286,10 @@ jobs:
286286
name: Flake check (Flutter)
287287
needs: [flake-select]
288288
if: needs.flake-select.outputs.dart != ''
289-
runs-on: ubuntu-latest
290-
timeout-minutes: 30
289+
runs-on: ubuntu-26.04
290+
# Large mobile changes take about three minutes per repetition, plus SDK
291+
# setup. Allow all ten repetitions to finish with runner variance.
292+
timeout-minutes: 45
291293
permissions:
292294
contents: read
293295
steps:

‎.github/workflows/_ci-relay.yml‎

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
# artifact into target/ci as before.
3838
desktop-e2e-relay:
3939
name: Desktop E2E Relay (${{ matrix.artifact }})
40-
runs-on: ubuntu-latest
40+
runs-on: ubuntu-26.04
4141
timeout-minutes: 45
4242
if: inputs.lane == 'artifacts' && (github.event_name == 'push' || inputs.desktop || inputs.desktop_rust || inputs.rust)
4343
strategy:
@@ -121,6 +121,7 @@ jobs:
121121
cargo nextest archive \
122122
--cargo-profile ci \
123123
-p buzz-db \
124+
-p buzz-pubsub \
124125
-p buzz-relay \
125126
-p buzz-relay-mesh \
126127
-p buzz-test-client \
@@ -166,7 +167,7 @@ jobs:
166167

167168
postgres-tests:
168169
name: PostgreSQL Tests
169-
runs-on: ubuntu-latest
170+
runs-on: ubuntu-26.04
170171
timeout-minutes: 10
171172
if: inputs.lane == 'postgres' && (github.event_name == 'push' || inputs.rust)
172173
permissions:
@@ -247,7 +248,7 @@ jobs:
247248
248249
desktop-e2e-integration-shard:
249250
name: Desktop E2E Integration (${{ matrix.shard }}/${{ strategy.job-total }})
250-
runs-on: ubuntu-latest
251+
runs-on: ubuntu-26.04
251252
# A shard needs ~10m; Playwright install-deps is bounded by
252253
# ci-apt-retry.sh (~25m worst case), so a degraded mirror fails with its
253254
# own error instead of the job timeout.
@@ -430,7 +431,7 @@ jobs:
430431

431432
desktop-e2e-integration:
432433
name: Desktop E2E Integration
433-
runs-on: ubuntu-latest
434+
runs-on: ubuntu-26.04
434435
timeout-minutes: 5
435436
needs: [desktop-e2e-integration-shard]
436437
if: always() && inputs.lane == 'required' && (github.event_name == 'push' || inputs.desktop || inputs.desktop_rust || inputs.rust)
@@ -447,7 +448,7 @@ jobs:
447448
448449
backend-integration:
449450
name: Backend Integration (relay e2e)
450-
runs-on: ubuntu-latest
451+
runs-on: ubuntu-26.04
451452
timeout-minutes: 20
452453
if: inputs.lane == 'required' && (github.event_name == 'push' || inputs.rust)
453454
permissions:
@@ -559,6 +560,19 @@ jobs:
559560
--archive-file target/ci/backend-integration-tests.tar.zst \
560561
-E 'package(buzz-relay) and test(/api::admin::postgres_tests::external_infra_minio_tests::/)' \
561562
--run-ignored ignored-only
563+
- name: Media thumbnail regeneration regressions
564+
# The tests share one fixture image's storage keys, and nextest gives
565+
# each its own process, so their in-process lock can't order them.
566+
env:
567+
BUZZ_TEST_DATABASE_URL: postgres://buzz:${{ env.BUZZ_TEST_POSTGRES_PASSWORD }}@localhost:5432/buzz
568+
BUZZ_S3_ENDPOINT: http://localhost:9000
569+
BUZZ_S3_BUCKET: buzz-media
570+
run: |
571+
cargo nextest run \
572+
--archive-file target/ci/backend-integration-tests.tar.zst \
573+
-E 'package(buzz-relay) and test(/^api::media::tests::postgres_tests::external_infra_minio_tests::/)' \
574+
--run-ignored ignored-only \
575+
--test-threads 1
562576
- name: Relay quota accounting and rejection regressions
563577
env:
564578
BUZZ_TEST_REDIS_URL: redis://localhost:6379
@@ -583,6 +597,13 @@ jobs:
583597
--archive-file target/ci/backend-integration-tests.tar.zst \
584598
-E 'package(buzz-relay-mesh) and test(/^registry::tests::external_infra_redis::/)' \
585599
--run-ignored ignored-only
600+
- name: Pubsub subscriber reconciliation regression
601+
# Runs the live Redis subscriber; the test dials redis://127.0.0.1:6379.
602+
run: |
603+
cargo nextest run \
604+
--archive-file target/ci/backend-integration-tests.tar.zst \
605+
-E 'package(buzz-pubsub) and test(=tests::live_subscriber_recovers_a_dropped_subscribe_hint)' \
606+
--run-ignored ignored-only
586607
- name: Workflow message provenance unit tests
587608
# The relay's workflow_sink suite is not selected by the infra-free
588609
# unit job. Its ignored database cases run in the isolated PostgreSQL
@@ -643,7 +664,7 @@ jobs:
643664

644665
relay-e2e:
645666
name: Relay E2E
646-
runs-on: ubuntu-latest
667+
runs-on: ubuntu-26.04
647668
timeout-minutes: 20
648669
if: inputs.lane == 'required' && (github.event_name == 'push' || inputs.rust)
649670
permissions:
@@ -710,7 +731,7 @@ jobs:
710731
name: Results
711732
if: ${{ always() }}
712733
needs: [desktop-e2e-relay, postgres-tests, desktop-e2e-integration, backend-integration, relay-e2e]
713-
runs-on: ubuntu-latest
734+
runs-on: ubuntu-26.04
714735
timeout-minutes: 5
715736
permissions: {}
716737
outputs:

‎.github/workflows/_ci-rust.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ env:
2727
jobs:
2828
rust-lint:
2929
name: Rust Lint
30-
runs-on: ubuntu-latest
30+
runs-on: ubuntu-26.04
3131
timeout-minutes: 30
3232
if: inputs.lane == 'required' && (github.event_name == 'push' || inputs.rust || inputs.desktop_rust)
3333
permissions:
@@ -47,7 +47,7 @@ jobs:
4747

4848
unit-tests:
4949
name: Unit Tests
50-
runs-on: ubuntu-latest
50+
runs-on: ubuntu-26.04
5151
timeout-minutes: 30
5252
if: inputs.lane == 'required' && (github.event_name == 'push' || inputs.rust)
5353
permissions:
@@ -72,7 +72,7 @@ jobs:
7272

7373
server-cross-compile:
7474
name: Server Cross-Compile
75-
runs-on: ubuntu-latest
75+
runs-on: ubuntu-26.04
7676
timeout-minutes: 30
7777
if: inputs.lane == 'cross-compile' && (github.event_name == 'push' || inputs.rust)
7878
permissions:
@@ -217,7 +217,7 @@ jobs:
217217
name: Results
218218
if: ${{ always() }}
219219
needs: [rust-lint, unit-tests, server-cross-compile, windows-rust]
220-
runs-on: ubuntu-latest
220+
runs-on: ubuntu-26.04
221221
timeout-minutes: 5
222222
permissions: {}
223223
outputs:

‎.github/workflows/_ci-security.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
jobs:
1818
security:
1919
name: Security
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-26.04
2121
timeout-minutes: 20
2222
if: github.event_name == 'push' || inputs.rust
2323
permissions:
@@ -33,7 +33,7 @@ jobs:
3333
name: Results
3434
if: ${{ always() }}
3535
needs: [security]
36-
runs-on: ubuntu-latest
36+
runs-on: ubuntu-26.04
3737
timeout-minutes: 5
3838
permissions: {}
3939
outputs:

0 commit comments

Comments
 (0)