Skip to content

Commit 5089d52

Browse files
committed
fix(test): re-sync the shared snapshots fixture after the main merge
CI's fixture-sync job requires app/test/fixtures/snapshots.json and server/test/fixtures/snapshots.json to be byte-identical. The main merge resolved the two copies differently: I resolved the server one semantically (main's rewritten ports.snapshot plus our docs.snapshot frame), while the app copy took main's side and lost the docs frame. Frames 1-3 were already identical, so the app copy did carry main's updated ports.snapshot — only our docs.snapshot was missing. Copied server -> app. Caught by CI, not by either local suite: the server tests read the server copy and the app's codec_contract_test read the app copy, so each was internally consistent and neither noticed the divergence. That asymmetry is exactly what the fixture-sync job exists to catch. app/test/codec_contract_test.dart 12/12, server 1414/1414.
1 parent 072eeff commit 5089d52

1 file changed

Lines changed: 44 additions & 1 deletion

File tree

app/test/fixtures/snapshots.json

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,48 @@
11
[
22
{ "v": 1, "t": "event", "id": "snap1", "kind": "projects.snapshot", "projects": [ { "id": "p1", "name": "makit", "path": "/repo/makit", "pinned": true, "lastActivityAt": 1000 } ] },
33
{ "v": 1, "t": "event", "id": "snap2", "kind": "sessions.snapshot", "sessions": [ { "id": "s1", "projectId": "p1", "agent": "pi", "title": "work", "status": "running", "policy": "ask-on-risky", "lastActivityAt": 2000, "lastPreview": "hi" } ] },
4-
{ "v": 1, "t": "event", "id": "snap3", "kind": "ports.snapshot", "snapshot": { "ports": [ { "key": "48211:127.0.0.1:5173", "port": 5173, "address": "127.0.0.1", "reach": "loopback", "pid": 48211, "command": "node vite --port 5173", "startedAt": 1000, "worktreePath": "/repo/makit-wt", "sessionId": "s1", "health": { "kind": "ok", "status": 200, "probedAt": 2000 }, "openUrl": "http://127.0.0.1:5173" }, { "key": "51002:127.0.0.1:5180", "port": 5180, "address": "127.0.0.1", "reach": "loopback", "pid": 51002, "command": "node vite --port 5180", "startedAt": 900, "orphan": { "formerBranch": "feat/desktop-tabs", "formerWorktreePath": "/repo/makit-gone", "removedAt": 2500 } }, { "key": "48300:127.0.0.1:5174", "port": 5174, "address": "127.0.0.1", "reach": "loopback", "pid": 48300, "command": "node vite --port 5174", "startedAt": 950, "worktreePath": "/repo/makit-wt", "collision": { "withBranch": "chore/deps", "withWorktreePath": "/repo/makit-deps" } }, { "key": "901:0.0.0.0:5432", "port": 5432, "address": "0.0.0.0", "reach": "exposed", "pid": 901, "command": "com.docker.backend", "startedAt": 800, "docker": { "container": "chat-ui-db-1", "compose": "/repo/chat-ui/compose.yml" } } ], "scannedAt": 3000, "scanOk": true } }
4+
{ "v": 1, "t": "event", "id": "snap3", "kind": "ports.snapshot", "snapshot": { "ports": [ { "key": "48211:127.0.0.1:5173", "port": 5173, "address": "127.0.0.1", "reach": "loopback", "pid": 48211, "command": "node vite --port 5173", "startedAt": 1000, "worktreePath": "/repo/makit-wt", "sessionId": "s1", "health": { "kind": "ok", "status": 200, "probedAt": 2000 }, "openUrl": "http://127.0.0.1:5173" }, { "key": "51002:127.0.0.1:5180", "port": 5180, "address": "127.0.0.1", "reach": "loopback", "pid": 51002, "command": "node vite --port 5180", "startedAt": 900, "orphan": { "formerBranch": "feat/desktop-tabs", "formerWorktreePath": "/repo/makit-gone", "removedAt": 2500 } }, { "key": "48300:127.0.0.1:5174", "port": 5174, "address": "127.0.0.1", "reach": "loopback", "pid": 48300, "command": "node vite --port 5174", "startedAt": 950, "worktreePath": "/repo/makit-wt", "collision": { "withBranch": "chore/deps", "withWorktreePath": "/repo/makit-deps" } }, { "key": "901:0.0.0.0:5432", "port": 5432, "address": "0.0.0.0", "reach": "exposed", "pid": 901, "command": "com.docker.backend", "startedAt": 800, "docker": { "container": "chat-ui-db-1", "compose": "/repo/chat-ui/compose.yml" } } ], "scannedAt": 3000, "scanOk": true } },
5+
{
6+
"v": 1,
7+
"t": "event",
8+
"id": "snap4",
9+
"kind": "docs.snapshot",
10+
"snapshot": {
11+
"docs": [
12+
{
13+
"key": "/repo/makit-wt:mockups/open-ports.html",
14+
"relPath": "mockups/open-ports.html",
15+
"title": "makit — Ports: what's listening, and whose branch owns it",
16+
"kind": "html",
17+
"bytes": 106538,
18+
"modifiedAt": 2000,
19+
"worktreePath": "/repo/makit-wt",
20+
"sessionId": "s1",
21+
"changed": true
22+
},
23+
{
24+
"key": "/repo/makit-wt:docs/specs/2026-08-07-SPEC-44-ports-forward.md",
25+
"relPath": "docs/specs/2026-08-07-SPEC-44-ports-forward.md",
26+
"title": "SPEC-44 — Ports P4: forward a loopback port to the phone",
27+
"kind": "md",
28+
"bytes": 18422,
29+
"modifiedAt": 1500,
30+
"worktreePath": "/repo/makit-wt",
31+
"docStatus": "Draft",
32+
"changed": false
33+
},
34+
{
35+
"key": "/repo/makit-main:README.md",
36+
"relPath": "README.md",
37+
"title": "Makit",
38+
"kind": "md",
39+
"bytes": 4096,
40+
"modifiedAt": 900,
41+
"worktreePath": "/repo/makit-main"
42+
}
43+
],
44+
"scannedAt": 2100,
45+
"scanOk": true
46+
}
47+
}
548
]

0 commit comments

Comments
 (0)