mirror of
https://github.com/block/buzz.git
synced 2026-10-27 12:40:30 +00:00
feat(push): make gateway origin configurable (#7261)
Make the push gateway origin configurable across the relay, gateway, mobile client, and deployment chart. This is a fresh deployment. The gateway has only run on personal development infrastructure, and push has no existing enabled users. Legacy migration, configured-to-unconfigured mobile transitions, and rolling upgrades from pre-launch gateway binaries are not supported. Populated pre-launch databases are rejected with an informative error before migrations run; their data is untouched. Mobile builds may omit the gateway URL, leaving push unavailable. Once push is enabled, subsequent builds must retain that configuration. ### Validation - All applicable CI checks pass at `5f546cfaf403f0386f146d213adfb4392f4ec29c`, including Rust, mobile/Swift, desktop/integration, security, image builds, and Helm checks. An unrelated agent cancellation test passed on retry. - PostgreSQL CI passed 384 tests, including the production-entry-point regression for refusing populated pre-launch databases before migrations, fresh initialization, and subsequent initialized deployments. - Focused local validation passed all 10 gateway PostgreSQL tests under the CI discovery filter and all 3 unconfigured-mobile tests. Repository-wide PostgreSQL discovery validation and the complete pre-push hooks passed. - Physical-device APNs/App Attest behavior and deployment to a live cluster were not verified in this work. --------- Signed-off-by: Tom Brow <tomb@block.xyz> Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
10
.github/workflows/_ci-clients.yml
vendored
10
.github/workflows/_ci-clients.yml
vendored
@@ -111,7 +111,11 @@ jobs:
|
||||
- name: Analyze
|
||||
run: cd mobile && flutter analyze
|
||||
- name: Test
|
||||
run: cd mobile && flutter test
|
||||
run: cd mobile && flutter test --dart-define=BUZZ_PUSH_GATEWAY_URL=https://push.example
|
||||
- name: Test mobile without push configuration
|
||||
run: cd mobile && flutter test test/shared/push/push_unconfigured_build_test.dart
|
||||
- name: Test mobile recipe argument forwarding
|
||||
run: /bin/bash scripts/test-mobile-gateway-recipes.sh
|
||||
- name: Build Android debug APK
|
||||
run: just mobile-build-android
|
||||
|
||||
@@ -134,7 +138,9 @@ jobs:
|
||||
- name: Build complete iOS simulator app
|
||||
run: cd mobile && flutter build ios --simulator --debug --no-pub
|
||||
- name: Build complete unsigned iOS release
|
||||
run: cd mobile && flutter build ios --release --no-codesign --no-pub
|
||||
run: |
|
||||
/bin/bash scripts/test-mobile-gateway-recipes.sh
|
||||
cd mobile && flutter build ios --release --no-codesign --no-pub
|
||||
|
||||
results:
|
||||
name: Results
|
||||
|
||||
Reference in New Issue
Block a user