Skip to content

Commit 49ea97d

Browse files
committed
chore(gates): follow the daemon proxy into packages/proxy
Repoints the wire-compat ledger, surface, and mutation case at the moved declarations (digests unchanged) and registers the proxy package zone.
1 parent bbf3cf2 commit 49ea97d

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

‎scripts/layering/model.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export const UNRANKED_ZONES: ReadonlySet<string> = new Set([
108108
...PLATFORMS.map((family) => `platform-${family}`),
109109
'provider-webdriver',
110110
'provider-limrun',
111+
'proxy',
111112
'xml',
112113
]);
113114

‎test/wire-compat/ledger.json‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@
185185
"packages/contracts/src/daemon-http.ts#DAEMON_HTTP_UPSTREAM_INSTANCE_HEADER": "sha256:4564c2ce437d30d7a823e3326f4375c0750ba8d42bec22b4d02e8eb7f7db2973",
186186
"packages/contracts/src/daemon-http.ts#DAEMON_HTTP_INSTANCE_MISMATCH_HEADER": "sha256:a197edaf7f9fa94a6aab269856aa852da3204cc586f5fd23198689eb11908b61",
187187
"src/daemon/server/http-instance-precondition.ts#refuseStaleDaemonInstance": "sha256:cf9b6f9dd95bb2593e4810c5b5939936b6d6358bf2614c7c234266cab1922d29",
188-
"src/remote/daemon-proxy.ts#refuseStaleProxyInstance": "sha256:82d39a1c241f1fb91c6bda2a55e9fde7b6d70db1a1a1496bef0eabf546ea706e",
189-
"src/remote/daemon-proxy.ts#sendInstanceMismatch": "sha256:d61ce46ef35d7aee9be4a41a79c84f372b05370097e3d8c8c109f06d494bfc55",
188+
"packages/proxy/src/daemon-proxy.ts#refuseStaleProxyInstance": "sha256:82d39a1c241f1fb91c6bda2a55e9fde7b6d70db1a1a1496bef0eabf546ea706e",
189+
"packages/proxy/src/daemon-proxy.ts#sendInstanceMismatch": "sha256:d61ce46ef35d7aee9be4a41a79c84f372b05370097e3d8c8c109f06d494bfc55",
190190
"packages/contracts/src/daemon-http.ts#buildDaemonInstanceMismatchRpcResponse": "sha256:24e50130bbd0c4a21dfc51005cabf118525b9121f918719a2c16f73fcfcfbcf9",
191-
"src/remote/daemon-proxy.ts#buildUpstreamInstancePreconditionHeaders": "sha256:9f7a2f1a3f86fce2c939f03fce3c6db061c31d1a4bb8074a563e3c81196ecfbe",
191+
"packages/proxy/src/daemon-proxy.ts#buildUpstreamInstancePreconditionHeaders": "sha256:9f7a2f1a3f86fce2c939f03fce3c6db061c31d1a4bb8074a563e3c81196ecfbe",
192192
"src/daemon-client/daemon-client-transport.ts#buildRemoteInstancePreconditionHeaders": "sha256:70241561c4070a8ebbdbbdb4ebcdbdfcb9543501cbb649a6d71cf041aee55a08",
193193
"src/daemon-client/daemon-client-transport.ts#isRemoteInstanceMismatchResponse": "sha256:7670f48fe0fc7344f8a000cd303e49788ec7ea9d1c729bcdc2af73ff02dae04d",
194194
"src/daemon-client/daemon-client-transport.ts#isRemoteInstanceMismatch": "sha256:6d4cfdd36bd44686d2a48990491faf63ba9117fb760f982fd72922c99be8daee"
@@ -400,17 +400,17 @@
400400
"rationale": "#2650 adds conditional RPC refusal and retry only for peers that advertise complete instance IDs. Released peers advertise none, so new clients keep per-command health probes and send their unchanged RPC; older clients omit the new request precondition and parse existing responses as before."
401401
},
402402
{
403-
"declaration": "src/remote/daemon-proxy.ts#refuseStaleProxyInstance",
403+
"declaration": "packages/proxy/src/daemon-proxy.ts#refuseStaleProxyInstance",
404404
"digest": "sha256:82d39a1c241f1fb91c6bda2a55e9fde7b6d70db1a1a1496bef0eabf546ea706e",
405405
"rationale": "#2650 adds conditional RPC refusal and retry only for peers that advertise complete instance IDs. Released peers advertise none, so new clients keep per-command health probes and send their unchanged RPC; older clients omit the new request precondition and parse existing responses as before."
406406
},
407407
{
408-
"declaration": "src/remote/daemon-proxy.ts#sendInstanceMismatch",
408+
"declaration": "packages/proxy/src/daemon-proxy.ts#sendInstanceMismatch",
409409
"digest": "sha256:d61ce46ef35d7aee9be4a41a79c84f372b05370097e3d8c8c109f06d494bfc55",
410410
"rationale": "#2650 adds conditional RPC refusal and retry only for peers that advertise complete instance IDs. Released peers advertise none, so new clients keep per-command health probes and send their unchanged RPC; older clients omit the new request precondition and parse existing responses as before."
411411
},
412412
{
413-
"declaration": "src/remote/daemon-proxy.ts#buildUpstreamInstancePreconditionHeaders",
413+
"declaration": "packages/proxy/src/daemon-proxy.ts#buildUpstreamInstancePreconditionHeaders",
414414
"digest": "sha256:9f7a2f1a3f86fce2c939f03fce3c6db061c31d1a4bb8074a563e3c81196ecfbe",
415415
"rationale": "#2650 adds conditional RPC refusal and retry only for peers that advertise complete instance IDs. Released peers advertise none, so new clients keep per-command health probes and send their unchanged RPC; older clients omit the new request precondition and parse existing responses as before."
416416
},

‎test/wire-compat/surface.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const PROGRESS_PROTOCOL = 'src/request-progress-protocol.ts';
5656
const CLIENT_RPC = 'src/daemon-client/daemon-client-rpc.ts';
5757
const CLIENT_PROGRESS = 'src/daemon-client/daemon-client-progress.ts';
5858
const CLIENT_TRANSPORT = 'src/daemon-client/daemon-client-transport.ts';
59-
const DAEMON_PROXY = 'src/remote/daemon-proxy.ts';
59+
const DAEMON_PROXY = 'packages/proxy/src/daemon-proxy.ts';
6060
const UPLOAD_CLIENT = 'src/remote/upload-client.ts';
6161
const REMOTE_ARTIFACTS = 'src/remote/daemon-artifacts.ts';
6262
const ARTIFACT_DOWNLOAD = 'src/remote/artifact-download.ts';

‎test/wire-compat/wire-mutations.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const MUTATIONS: readonly WireMutation[] = [
5858
},
5959
{
6060
breakClass: 'instance refusal: the proxy drops the mismatch response header',
61-
file: 'src/remote/daemon-proxy.ts',
61+
file: 'packages/proxy/src/daemon-proxy.ts',
6262
name: 'sendInstanceMismatch',
6363
from: "res.setHeader(DAEMON_HTTP_INSTANCE_MISMATCH_HEADER, 'true');",
6464
to: '',

0 commit comments

Comments
 (0)