Skip to content

Sync rocicorp/mono main (3933b71) - #193

Merged
tmm merged 14 commits into
mainfrom
sync-upstream-8
Nov 13, 2026
Merged

tmm merged 14 commits into
mainfrom
sync-upstream-8

Conversation

@tmm

@tmm tmm commented Nov 13, 2026

Copy link
Copy Markdown
Member

Land with a merge commit, not a squash.

11 upstream commits, 836f22e..3933b71, merged with no conflicts. The merge touches no file restored by #188 (tools/restored-tests/verbatim.txt hashes all match).

Client-relevant

None. zero-client, zero-protocol, zql, zero-schema, zero-types, shared and replicache are unchanged, and the protocol version stays at 57. The only change in a package the client builds on is a log line in zqlite (97c81ad).

Server-only

  • zero-cache: e98ab48 (timestamps beyond the Date range), c5da605 (time zone offsets with seconds), dd87669 (removes the SQLite change-log rollout scaffolding), f3a60cf (RMv2 on by default, see below).
  • zqlite: 97c81ad (logs the SQL of slow exec and pragma calls).
  • zbugs: e1bf42a and 7715936 (signed unsubscribe links). The token is an HMAC keyed by PRIVATE_JWK, which zbugs-swift's server.ts already sets.
  • Version and deps: 1ef5b77 (1.13), 87e1224 (node-forge, fast-xml-parser), 5204bd2 (zql-integration-tests' previous client is 1.12.0).
  • CI: 3933b71 (release.yml). Every job still waits on plan, which only runs in rocicorp/mono, so the workflow stays off in this fork.

RMv2 default (f3a60cf)

ZERO_UPSTREAM_PG_HIGH_AVAILABILITY_REPLICATION is now on by default. zbugs-swift's single-node backend sets no Litestream backup URL and doesn't use discover mode, so it still starts, but its change log moves from Postgres to SQLite. The Swift end-to-end jobs (Linux and macOS) run against it. tmm's Mac backend needs a pull and a restart after this merges to pick up the new default.

Lockfile follow-up

  • e5400eb runs node tools/restored-tests/align-manifests.mjs. 5204bd2 moves @rocicorp/zero-previous to npm:@rocicorp/zero@1.12.0 in pnpm-lock.yaml, and the script sets the restored packages/zql-integration-tests/package.json to match. Only that one specifier changes. pnpm install --frozen-lockfile then passes, with the lockfile unchanged.

Test-only follow-up

  • 548c3e4 adds the client vector "error while connected: Rehome without maxBackoffMs reconnects after the full 5 s". It pins the third case of a5a9403's zero.test.ts test: a Rehome with no maxBackoffMs reconnects after RUN_LOOP_INTERVAL_MS, because an error the server sends keeps the full interval rather than the faster transport-failure backoff. In the vector, advancing 4999 ms opens no socket and the next 1 ms opens one. Swift already behaves this way. With Swift's Engine changed to use the transport-failure backoff for server errors, this vector fails, along with "ServerOverloaded with both bounds".

Checks run

  • zero-conformance: generate on the plain merge (vectors byte-identical), then again with the new scenario (only that one case added to client.json); test, check-types, check-format and lint.
  • zero-swift-cli: test (29/29) and check-types.
  • pnpm exec syncpack lint.
  • Swift on Linux: all 324 tests except E2E, including all 184 client scenarios on memory and on SQLite.

No changeset: nothing in the Swift package changes. Land with a merge commit so upstream stays an ancestor of main.

arv and others added 14 commits November 11, 2026 09:04
Mono-Internal-Commit: bb68910b6e4b3d1fa799ac3173d9cbbb5a6ccbba
Mono-Internal-Commit: f8c8844022417d0dda47c9545013c6cf720f8a09
Mono-Internal-Commit: 49a01b16eb0c9f21e1aa3ba915d66ad26b53850f
Mono-Internal-Commit: 327bf34bfb648f87ac4c01e74cafb5e20c96eebc
Mono-Internal-Commit: 135f3189e1b18fbb8af9087bfc3bc2090d821d2d
Mono-Internal-Commit: b8288c8838cdf6889e6501e9d2a4461b173d06bd
Mono-Internal-Commit: 93bd67166fdf42e5e27cdde67f116ec2ed01a58d
Mono-Internal-Commit: 3bcbe924a1cb9a3d9ae5846d1a5533dc2f5ccc74
Mono-Internal-Commit: efd3b5bbdb30526eea3774909deb4ae2db002df8
Mono-Internal-Commit: 8556d697d64859cdac3df6dbb9d3366187b9b6d7
Mono-Internal-Commit: 850f6e16a884d549629e43881af63daefec19982
Upstream's 5204bd2 moves @rocicorp/zero-previous to npm:@rocicorp/zero@1.12.0 in pnpm-lock.yaml. tools/restored-tests/align-manifests.mjs sets the restored zql-integration-tests manifest to match, so pnpm install --frozen-lockfile passes.

Amp-Thread-ID: https://ampcode.com/threads/T-c513a037-a257-45e0-b9a9-15c15edfe859
Co-authored-by: tmm <tmm@tmm.dev>
…r the full 5 s

Pins the third case of upstream a5a9403's zero.test.ts test: a Rehome with no maxBackoffMs reconnects after RUN_LOOP_INTERVAL_MS, because an error the server sends keeps the full interval rather than the faster transport-failure backoff.

Amp-Thread-ID: https://ampcode.com/threads/T-c513a037-a257-45e0-b9a9-15c15edfe859
Co-authored-by: tmm <tmm@tmm.dev>
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​rocicorp/​zero@​1.11.0 ⏵ 1.12.074 +910087100100

View full report

@tmm
tmm merged commit 9d49cce into main Nov 13, 2026
22 checks passed
@tmm
tmm deleted the sync-upstream-8 branch November 13, 2026 06:42
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.

6 participants