Skip to content

🔄 Sync with upstream changes#17

Open
h0lybyte wants to merge 544 commits into
mainfrom
upstream-main
Open

🔄 Sync with upstream changes#17
h0lybyte wants to merge 544 commits into
mainfrom
upstream-main

Conversation

@h0lybyte

Copy link
Copy Markdown
Member

Upstream Sync

This PR contains the latest changes from the upstream repository.

Changes included:

  • Synced from upstream/main
  • Auto-generated by upstream sync workflow

Review checklist:

  • Review the changes for any breaking changes
  • Check for conflicts with local modifications
  • Verify tests pass (if applicable)

This PR was automatically created by the upstream sync workflow

semantic-release-bot and others added 30 commits April 9, 2026 22:22
Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
A drop-in replacement for `use Phoenix.Socket` that adds Realtime-specific
transport behaviour:
* Sets `:max_heap_size` on the transport process during `init/1`
* Schedules periodic traffic measurement via `handle_info/2`
* Wraps `handle_in/2` with error handling for malformed WebSocket messages
Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
* feat: add PartitonedTables

Peep.Storage implementation using N ETS tables with optional tag-based routing.

Each metric write is routed to a specific table based on a `:routing_tag` option.
If the routing tag is present in the metric's tags, `:erlang.phash2/2` is used to
select the table. Otherwise, the first table is used.

This reduces lock contention by routing different tag values (e.g. different tenants)
to different ETS tables, without partitioning metrics within a table.
Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
Improve the local setup to make it straightforward to run the server:

```
mise run db-start
mix setup
mise run dev
```

- Introduce mise to manage tool versions, tasks, and envs
- Removed .tool-versions and Makefile in favor of mise.toml
- Introduce `Realtime.Env` to use in runtime.exs with tests and more
  validations to make it more resilient to avoid hard to debug errors in
  the server booting process
- Group all envs together in `runtime.exs` to have better
  discoverability, especially for docs (self-hosting) and config
- Break readme into dedicated docs to reduce noise in the main readme
  (easier to scan)
- Add Code of Conduct and Contributing guides based on
  https://github.com/supabase/.github and https://github.com/supabase/supabase
- Added env vars into ENVS.md: API_TOKEN_BLOCKLIST, CLUSTER_STRATEGIES,
  DB_MASTER_REGION, DB_HOST_REPLICA_FRA, DB_HOST_REPLICA_IAD,
  DB_HOST_REPLICA_SIN, DB_HOST_REPLICA_SJC, REGION, LOGS_ENGINE,
  LOGFLARE_LOGGER_BACKEND_URL, LOGFLARE_API_KEY, LOGFLARE_SOURCE_ID,
  JWT_CLAIM_VALIDATORS, METRICS_JWT_SECRET, METRICS_TOKEN_BLOCKLIST,
  MAX_GEN_RPC_CALL_CLIENTS, PROM_POLL_RATE, AWS_EXECUTION_ENV,
  JANITOR_MAX_CHILDREN, JANITOR_CHILDREN_TIMEOUT,
  LOG_THROTTLE_JANITOR_INTERVAL_IN_MS, MEASURE_TRAFFIC_INTERVAL_IN_MS,
  NO_CHANNEL_TIMEOUT_IN_MS, RPC_TIMEOUT
- Removed stale env vars from ENVS.md: DISCONNECT_SOCKET_ON_NO_CHANNELS_INTERVAL_IN_MS,
  JANITOR_CLEANUP_MAX_CHILDREN, JANITOR_CLEANUP_CHILDREN_TIMEOUT
filipecabaco and others added 30 commits June 23, 2026 09:29
We now handle special chars closer to what PostgRest does so we have a clear direction on how we want to support filters going forward
Adds new configuration on `phx_join` payload that will send back a message to the user when the replication connection is ready to be used.
* fix: preventive measure to rollback filters if needed

* chore: update tenant_db_catalog_17.json

* chore: update tenant_db_catalog_17.json

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Since DB_USER_REALTIME is not fully operational, defaults to DB_USER
instead of the expected value `supabase_realtime_admin`.

It's still overwritable once DB_USER_REALTIME is operational or for
projects that need it.
---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Leandro Pereira <leandro@leandro.io>
---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Leandro Pereira <leandro@leandro.io>
---------

Co-authored-by: supabase-autofix-bot <noreply@supabase.com>
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.

10 participants