Files
orca/mobile/rpc-foundation/goldens/mobile-web-bundle-build-changed.json
Neil 43c066edff fix(mobile): keep the app download going over a slow link instead of timing out each queued read (#29751)
* fix(mobile): keep the app download going over a slow link instead of timing out each queued read

Each bundle window read had its own 30s request timeout, but its reply queues
behind the other three reads in flight. On a slow link (Tailscale through a
relay) the fourth reply could not land within 30s, so the download showed
progress and then failed with 'Request timed out: mobileWeb.bundle.range'.

The fetch now fails only when no window reply lands for 30s, and each read's
own deadline is a long backstop.

Fixes #29697

* fix(mobile): bound a stalled bundle fetch's pending reads to the in-flight budget

* test(mobile): re-record bundle-fetch goldens for the per-read backstop option
2026-10-16 10:13:14 -07:00

235 lines
6.6 KiB
JSON

{
"goldenFormatVersion": 6,
"operation": "mobileWeb.bundle-fetch",
"family": "mobileWeb.bundle-fetch",
"namedDeltas": [],
"values": {
"0fed70367a30": {
"name": "mobileWeb.bundle.chunk#3",
"ordinal": 8,
"json": "{\"id\":\"frame-4\",\"deviceToken\":\"recording-device\",\"method\":\"mobileWeb.bundle.chunk\",\"params\":{\"buildId\":\"973c008f6baf56072d8d3d41f451e005257b59026401473543ce96e81c5aa177\",\"path\":\"assets/app.js\",\"offset\":0}}"
},
"1432380f161f": {
"name": "mobileWeb.bundle.chunk#1",
"ordinal": 6,
"json": "{\"id\":\"frame-2\",\"deviceToken\":\"recording-device\",\"method\":\"mobileWeb.bundle.chunk\",\"params\":{\"buildId\":\"973c008f6baf56072d8d3d41f451e005257b59026401473543ce96e81c5aa177\",\"path\":\"index.html\",\"offset\":0}}"
},
"23871e324a00": {
"name": "mobileWeb.bundle.manifest#1",
"ordinal": 1,
"args": [
{
"name": "method",
"value": "mobileWeb.bundle.manifest"
},
{
"name": "params",
"value": {
"$rpc": "null"
}
},
{
"name": "options",
"value": {
"$rpc": "undefined"
}
}
],
"settlement": {
"status": "fulfilled",
"startedAt": 0,
"settledAt": 0,
"value": {
"id": "frame-1",
"ok": true,
"result": {
"chunkBytes": 16,
"manifest": {
"assets": [
{
"byteLength": 11,
"contentType": "text/javascript; charset=utf-8",
"path": "assets/app.js",
"sha256": "e99170780c392398db81fbb3dcaebc1a2c8264d4d8a9cd5932887e9c7206dc3d"
},
{
"byteLength": 26,
"contentType": "text/html; charset=utf-8",
"path": "index.html",
"sha256": "483f915496f213c851665840f49b69e05b7a6bf70ec9d6939a831b15d298f31e"
}
],
"buildId": "973c008f6baf56072d8d3d41f451e005257b59026401473543ce96e81c5aa177",
"desktopVersion": "1.4.201",
"entrypoint": "index.html",
"minCompatibleRuntimeProtocolVersion": 2,
"runtimeProtocolVersion": 2,
"schemaVersion": 1,
"totalBytes": 37
}
}
}
}
},
"775bfa42070b": {
"name": "mobileWeb.bundle.manifest#1",
"ordinal": 2,
"json": "{\"id\":\"frame-1\",\"deviceToken\":\"recording-device\",\"method\":\"mobileWeb.bundle.manifest\",\"params\":null}"
},
"79725d734e7d": {
"assets": {
"$rpc": "null"
},
"outcome": "refused: mobile_web_bundle_build_changed"
},
"82b2a7971876": {
"status": "rejected",
"startedAt": 0,
"settledAt": 0,
"error": {
"category": "Error",
"message": "invalid_argument: mobile_web_bundle_build_changed",
"isRpcDeliveryUnknown": false
}
},
"abc7c706d9a9": {
"name": "bundle-progress",
"ordinal": 9,
"value": {
"completedAssets": 1,
"receivedBytes": 11,
"totalAssets": 2
}
},
"b319547b8486": {
"name": "mobileWeb.bundle.chunk#3",
"ordinal": 5,
"args": [
{
"name": "method",
"value": "mobileWeb.bundle.chunk"
},
{
"name": "params",
"value": {
"buildId": "973c008f6baf56072d8d3d41f451e005257b59026401473543ce96e81c5aa177",
"offset": 0,
"path": "assets/app.js"
}
},
{
"name": "options",
"value": {
"timeoutMs": 150000
}
}
],
"settlement": {
"status": "fulfilled",
"startedAt": 0,
"settledAt": 0,
"value": {
"id": "frame-4",
"ok": true,
"result": {
"assetByteLength": 11,
"buildId": "973c008f6baf56072d8d3d41f451e005257b59026401473543ce96e81c5aa177",
"dataBase64": "b3JjYS5ib290KCk=",
"eof": true,
"offset": 0,
"path": "assets/app.js",
"sha256": "e99170780c392398db81fbb3dcaebc1a2c8264d4d8a9cd5932887e9c7206dc3d"
}
}
}
},
"ca2c71d90ebb": {
"name": "mobileWeb.bundle.chunk#1",
"ordinal": 3,
"args": [
{
"name": "method",
"value": "mobileWeb.bundle.chunk"
},
{
"name": "params",
"value": {
"buildId": "973c008f6baf56072d8d3d41f451e005257b59026401473543ce96e81c5aa177",
"offset": 0,
"path": "index.html"
}
},
{
"name": "options",
"value": {
"timeoutMs": 150000
}
}
],
"settlement": {
"status": "fulfilled",
"startedAt": 0,
"settledAt": 0,
"value": {
"error": {
"code": "invalid_argument",
"message": "mobile_web_bundle_build_changed"
},
"id": "frame-2",
"ok": false
}
}
},
"edc327fad90e": {
"name": "mobileWeb.bundle.chunk#2",
"ordinal": 4,
"args": [
{
"name": "method",
"value": "mobileWeb.bundle.chunk"
},
{
"name": "params",
"value": {
"buildId": "973c008f6baf56072d8d3d41f451e005257b59026401473543ce96e81c5aa177",
"offset": 16,
"path": "index.html"
}
},
{
"name": "options",
"value": {
"timeoutMs": 150000
}
}
],
"settlement": {
"status": "pending",
"startedAt": 0
}
},
"f09d3e39d35e": {
"name": "mobileWeb.bundle.chunk#2",
"ordinal": 7,
"json": "{\"id\":\"frame-3\",\"deviceToken\":\"recording-device\",\"method\":\"mobileWeb.bundle.chunk\",\"params\":{\"buildId\":\"973c008f6baf56072d8d3d41f451e005257b59026401473543ce96e81c5aa177\",\"path\":\"index.html\",\"offset\":16}}"
}
},
"recording": {
"scenario": "mobile-web-bundle-build-changed",
"checkpoints": [
{
"id": "bundle-build-changed",
"observation": {
"sender": ["23871e324a00", "ca2c71d90ebb", "edc327fad90e", "b319547b8486"],
"payloads": ["775bfa42070b", "1432380f161f", "f09d3e39d35e", "0fed70367a30"],
"settlements": {
"fetch": "82b2a7971876"
},
"state": "79725d734e7d",
"effects": ["abc7c706d9a9"]
}
}
]
}
}