pi-mono/packages/chord/test/examples
Mario Zechner a5d209afd0 feat(chord): reload restarts every affected object; old work finishes on old code
The pure swap is gone: a reload restarts every live object of a changed plugin
(documents and tables kept). Calls running at the commit and every call they cause
(the ctx call chain; an old flag on call from trusted links) run on the open old
attempt, which seals once its work drained and its successor's recorded requests are
ready, bounded by reloadDrainTimeout (5 s); then the successor's factory runs. New work
waits at the gate; same-host consumers see the draining object live; a reload cycle
fails at once with unavailable/reload_cycle. Example 64, design section 21 rewritten.
2026-11-05 18:07:11 +00:00
..
35-plugins feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
36-plugin-failures feat(chord): reload restarts every affected object; old work finishes on old code 2026-11-05 18:07:11 +00:00
37-plugin-imports feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
38-watch-and-rollout feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
39-browser-build feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
40-http feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
41-workers feat(chord): split the worker base at dynamic imports; workers/child entry 2026-11-05 08:49:17 +01:00
42-worker-crash feat(chord): split the worker base at dynamic imports; workers/child entry 2026-11-05 08:49:17 +01:00
43-rollout feat(chord): split the worker base at dynamic imports; workers/child entry 2026-11-05 08:49:17 +01:00
44-http-wraps feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
45-plugin-socket feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
46-allowed-hosts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
47-http-own-server feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
48-http-baseline feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
49-plugin-api feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
50-plugin-imports fix(chord): mark plugin-imports test fixture private so preview publishing skips it 2026-11-03 00:04:15 +01:00
51-single-file-plugin feat(chord): reload restarts every affected object; old work finishes on old code 2026-11-05 18:07:11 +00:00
52-test-plugin feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
53-app feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
54-app-sessions feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
55-app-export feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
56-web feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
57-tui feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
58-themes feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
59-chat feat(chord): live queries over an object's own tables (self.query) 2026-11-03 19:40:48 +00:00
60-session-sync feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
61-tutorial feat(chord): reload restarts every affected object; old work finishes on old code 2026-11-05 18:07:11 +00:00
62-telemetry feat(chord): telemetry from pages and workers stored by the server, who a span was for 2026-11-04 11:59:14 +00:00
01-objects.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
02-documents.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
03-derives.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
04-watches.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
05-errors.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
06-natives.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
07-failures.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
08-remote.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
09-calls.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
10-drops.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
11-linger-and-retry.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
12-routes.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
13-relay.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
14-flow-control.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
15-revocation.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
16-presence-and-activity.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
17-limits-and-compression.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
18-routines.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
19-jobs.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
20-tables.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
21-persisted-documents.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
22-migrations.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
23-keyed-watches.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
24-keyed-members.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
25-export-import.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
28-persisted-jobs.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
29-registries.ts feat(chord): mistakes that wait are reported at once 2026-11-03 07:19:52 +00:00
30-host-root.ts feat(chord): mistakes that wait are reported at once 2026-11-03 07:19:52 +00:00
31-parked-dependencies.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
32-startup.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
33-reload.ts feat(chord): reload restarts every affected object; old work finishes on old code 2026-11-05 18:07:11 +00:00
34-versions.ts feat(chord): Chord v2 is the package's root 2026-11-02 22:36:55 +00:00
63-optimistic-answers.ts feat(chord): a call's answer follows its state 2026-11-05 10:45:40 +00:00
64-old-work.ts feat(chord): reload restarts every affected object; old work finishes on old code 2026-11-05 18:07:11 +00:00