Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: v1 wip #141

Merged
merged 99 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
d5fa880
chore: v1 wip
chris13524 Oct 23, 2023
3ef00f5
chore: just devloop
chris13524 Oct 23, 2023
2797daa
chore: simplify devloop
chris13524 Oct 23, 2023
adec8f8
chore: refactor key gen
chris13524 Oct 23, 2023
1ab6d11
chore: test subscribers
chris13524 Oct 23, 2023
2cfb0a2
chore: rename to deployment tests
chris13524 Oct 23, 2023
fd6241e
chore: rename to integration tests
chris13524 Oct 23, 2023
d390045
chore: test subscribers v0
chris13524 Oct 24, 2023
2037e65
feat: monitor total subscribed topics
chris13524 Oct 27, 2023
3681713
chore: combine topics metrics
chris13524 Oct 27, 2023
fa0f918
feat: http and websocket requests and latency
chris13524 Oct 27, 2023
08d6de8
feat: HTTP request metrics
chris13524 Oct 27, 2023
1fbe5f1
fix: refId
chris13524 Oct 27, 2023
a0a4255
fix: panel var name
chris13524 Oct 27, 2023
b693e9a
feat: RDS Grafana
chris13524 Oct 28, 2023
575df19
fix: syntax
chris13524 Oct 29, 2023
b8e6118
fix: param name
chris13524 Oct 29, 2023
5348836
chore: splitting up api server and publishing service entry points
geekbrother Oct 24, 2023
681e20a
chore: test subscribers v1
chris13524 Oct 24, 2023
9b5c173
chore: add remaining env vars
chris13524 Oct 24, 2023
356d6a9
chore: rearrange
chris13524 Oct 24, 2023
d7a956a
chore: adding new migration for notification and updating ERD
geekbrother Oct 25, 2023
eba2a16
chore: publisher_service and metrics bootstrap
geekbrother Oct 25, 2023
ff954d8
chore: adding new migration for notification triggers
geekbrother Oct 26, 2023
91e1e2a
chore: adding message worker spawning on pgsql notify event
geekbrother Oct 26, 2023
34d3f88
chore: adding helper functions
geekbrother Oct 30, 2023
8218eef
chore: adding new types
geekbrother Oct 30, 2023
16446ca
chore: adding basic workers implementation
geekbrother Oct 30, 2023
fbfa418
chore: Merge branch 'main' of https://github.com/WalletConnect/notify…
chris13524 Oct 31, 2023
459d321
chore: const noop tag
chris13524 Nov 1, 2023
9c20218
chore: always RUST_BACKTRACE
chris13524 Nov 1, 2023
5fbcd27
chore: refactors
chris13524 Nov 1, 2023
487796b
chore: test notify_v0
chris13524 Nov 1, 2023
9c9aafb
chore: refactor keys
chris13524 Nov 1, 2023
d37999f
chore: Merge branch 'main' of https://github.com/WalletConnect/notify…
chris13524 Nov 1, 2023
56f8758
fix: merge error
chris13524 Nov 1, 2023
73e74a0
chore: remove MongoDB dependency
chris13524 Nov 1, 2023
2991074
chore: redundant, clippy also checks
chris13524 Nov 1, 2023
9a5f249
chore: test v1 /notify
chris13524 Nov 1, 2023
1161ca7
chore: rm println
chris13524 Nov 1, 2023
caf9a87
chore: remove MongoDB from CI
chris13524 Nov 1, 2023
4f08cf2
chore: refactor URLs and relay clients
chris13524 Nov 1, 2023
608061b
chore: refactor out full state
chris13524 Nov 1, 2023
2aec56d
chore: refactor into services module
chris13524 Nov 1, 2023
f546346
chore: refactor networking
chris13524 Nov 1, 2023
ff97838
chore: refactor storage into registry
chris13524 Nov 1, 2023
6f37b74
chore: refactor extractors
chris13524 Nov 1, 2023
7e40538
chore: refactor wsclient
chris13524 Nov 1, 2023
9a8be0e
chore: refactor private_http
chris13524 Nov 1, 2023
4ee8b06
chore: update comment
chris13524 Nov 1, 2023
4d1647c
chore: refactor public_http service
chris13524 Nov 1, 2023
bc3550c
chore: Merge branch 'feat/metrics' of https://github.com/WalletConnec…
chris13524 Nov 1, 2023
a1e24e3
fix: decrease frequency of watcher_expiration_job
chris13524 Nov 1, 2023
065441e
fix: expiry filter
chris13524 Nov 1, 2023
75c2b47
chore: remove long return type
chris13524 Nov 1, 2023
6a51310
chore: stop macOS server bind popups
chris13524 Nov 1, 2023
6ce6afd
chore: refactor service starts
chris13524 Nov 1, 2023
9a0e5fe
chore: logs
chris13524 Nov 1, 2023
281e208
chore: refactor WebsocketService
chris13524 Nov 1, 2023
ba0c064
chore: remove redundant struct
chris13524 Nov 1, 2023
024de90
chore: refactor publisher service
chris13524 Nov 1, 2023
4a040f4
chore: renames
chris13524 Nov 1, 2023
2d26843
chore: integrate and test publisher service
chris13524 Nov 2, 2023
1ff89f9
chore: Merge branch 'main' of https://github.com/WalletConnect/notify…
chris13524 Nov 2, 2023
42093f2
chore: redundant did_key update
chris13524 Nov 2, 2023
26f4c29
chore: remove comment
chris13524 Nov 2, 2023
aabc4f3
chore: remove comment
chris13524 Nov 2, 2023
49a8f50
chore: update states
chris13524 Nov 2, 2023
135c9c0
chore: analytics in publisher service
chris13524 Nov 2, 2023
0370180
chore: v0 calls v1
chris13524 Nov 2, 2023
935186d
chore: relay incomming messages analytics
chris13524 Nov 2, 2023
b650d43
chore: rename to match parameter name
chris13524 Nov 2, 2023
61b9683
chore: always retry relay publishes
chris13524 Nov 2, 2023
306e536
chore: cache logged message ID
chris13524 Nov 2, 2023
ae3f65f
chore: HTTP response status
chris13524 Nov 2, 2023
c7e8fb6
chore: Merge branch 'main' of https://github.com/WalletConnect/notify…
chris13524 Nov 3, 2023
b29099c
chore: optional URL and icon
chris13524 Nov 3, 2023
f686a16
chore: Merge branch 'chore/optional-icon-url' of https://github.com/W…
chris13524 Nov 3, 2023
12d447e
chore: only allow UUID scopes
chris13524 Nov 3, 2023
67d55b7
chore: validation
chris13524 Nov 3, 2023
d017e7b
chore: replace with validator library
chris13524 Nov 6, 2023
4bda3ac
chore: fix Dockerfile build
chris13524 Nov 6, 2023
4c1ff63
chore: Merge branch 'main' of https://github.com/WalletConnect/notify…
chris13524 Nov 6, 2023
8eb43cf
chore: auto-remove docker-compose orphans
chris13524 Nov 6, 2023
636588e
chore: restore separate topic metrics
chris13524 Nov 6, 2023
b023cd4
chore: HTTP requests rate
chris13524 Nov 6, 2023
5884242
chore: add refId
chris13524 Nov 6, 2023
902d86b
chore: rate
chris13524 Nov 6, 2023
377d538
chore: remove unmatched license
chris13524 Nov 6, 2023
d322146
fix: refId
chris13524 Nov 6, 2023
864477e
chore: relay incomming messages charts
chris13524 Nov 6, 2023
e04da0a
chore: metrics for outgoing messages
chris13524 Nov 6, 2023
8198211
chore: Merge branch 'main' of https://github.com/WalletConnect/notify…
chris13524 Nov 7, 2023
082f68f
chore: add notification.updated_at
chris13524 Nov 7, 2023
0fefde4
chore: add indexes
chris13524 Nov 7, 2023
c9b3569
chore: fix .env required in deployment
chris13524 Nov 7, 2023
79c9ebb
chore: fix HTTP client JWT ttl
chris13524 Nov 8, 2023
7698c88
Merge branch 'main' of https://github.com/WalletConnect/notify-server…
chris13524 Nov 9, 2023
3b31812
Merge branch 'main' of https://github.com/WalletConnect/notify-server…
chris13524 Nov 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ export NOTIFY_PROJECT_SECRET=""
# Obtain from 1Password: cloudflare-workers/prod/internal-api-auth-token
export REGISTRY_AUTH_TOKEN=""

export BIND_IP="127.0.0.1"
export PUBLIC_IP="127.0.0.1"
export NOTIFY_URL="http://127.0.0.1"
export DATABASE_URL=mongodb://admin:admin@localhost:27017/notify?authSource=admin
export POSTGRES_URL=postgres://postgres:password@localhost:5432/postgres
export REDIS_POOL_SIZE=64
export BLOCKED_COUNTRIES=""
export KEYPAIR_SEED=""
export RELAY_URL="wss://staging.relay.walletconnect.com" # Must match the relay used by ENVIRONMENT in integration.rs#urls()
export RELAY_URL="wss://staging.relay.walletconnect.com" # Must match the relay used by ENVIRONMENT in deployment.rs#urls()
export REGISTRY_URL="https://registry.walletconnect.com"
15 changes: 4 additions & 11 deletions .github/workflows/sub-app-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,6 @@ jobs:
runs-on:
group: ${{ vars.RUN_GROUP }}
services:
mongodb:
image: mongo
env:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
MONGO_INITDB_DATABASE: notify
ports:
- 27017:27017
postgres:
image: postgres:16
env:
Expand Down Expand Up @@ -113,14 +105,15 @@ jobs:
command: test
args: --all-features --lib --bins

- name: "Storage Tests"
- name: "Integration Tests"
uses: WalletConnect/actions-rs/[email protected]
with:
command: test
args: --test storage -- --test-threads=1
args: --test integration -- --test-threads=1
env:
DATABASE_URL: mongodb://admin:admin@localhost:27017/notify?authSource=admin
POSTGRES_URL: postgres://postgres:password@localhost:5432/postgres
RELAY_URL: wss://staging.relay.walletconnect.com
PROJECT_ID: ${{ secrets.PROJECT_ID }}

cargo-deny:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sub-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: curl "${{ inputs.stage-url }}"

validate-rust:
name: Integration Tests - ${{ inputs.stage }}
name: Deployment Tests - ${{ inputs.stage }}
runs-on:
group: ${{ vars.RUN_GROUP }}
environment:
Expand All @@ -48,8 +48,8 @@ jobs:
run: |
echo "test_env=${TEST_ENV^^}" >> $GITHUB_OUTPUT
- name: Run integration tests
run: cargo test --test integration
- name: Run deployment tests
run: cargo test --test deployment
env:
RUST_BACKTRACE: true
ENVIRONMENT: ${{ steps.get_test_env.outputs.test_env }}
Expand Down
Loading
Loading