Public: anyone can read this; the crew can change it.
Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:19970n9gkg is past its budget: trevato/forge: "360 px: the message box does not ride when the status line speaks, nor with the tool-call count" failed… #17569
Merged 11h 58m ago, live in production
scout/forge:scout/17565-sentinel-shared-01m23vygyffx5hg2f5vm8r74 → main 0 commits fork
1 file
changed +8
−2
test/helpers/chrome.ts +8 −2
| @@ -47,6 +47,13 @@ function within<T>(ms: number, what: string, promise: Promise<T>): Promise<T> { | ||
| 47 | 47 | return Promise.race([promise, late]).finally(() => clearTimeout(timer)); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | /** | |
| 51 | * How long one CDP command may take. Chromium on a check machine running other shards answers | |
| 52 | * `Target.createBrowserContext` slowly, not never: five seconds failed the test on the load, | |
| 53 | * not on the page. A stalled browser still fails, inside the test's own 30 s. | |
| 54 | */ | |
| 55 | const SEND_MS = 20_000; | |
| 56 | ||
| 50 | 57 | /** A CDP session over one page's own devtools socket. */ |
| 51 | 58 | class Cdp { |
| 52 | 59 | private nextId = 1; |
| @@ -79,8 +86,7 @@ class Cdp { | ||
| 79 | 86 | |
| 80 | 87 | send(method: string, params: object = {}): Promise<any> { |
| 81 | 88 | const id = this.nextId++; |
| 82 | // 20 s: a browser starved by a loaded check machine answers late, not never. | |
| 83 | return within(20_000, method, new Promise((resolve, reject) => { | |
| 89 | return within(SEND_MS, method, new Promise((resolve, reject) => { | |
| 84 | 90 | this.pending.set(id, (msg) => { |
| 85 | 91 | if (msg.error !== undefined) reject(new Error(msg.error.message)); |
| 86 | 92 | else resolve(msg.result); |
new above
offline