Repository navigation
sessions.test: the 4,000-upsert CPU bound is the least of three runs - #628
Conversation
unit:darwin measured 605.9 and 519.5 ms against the 500 ms bound on the mini while e2e jobs ran on both its desktops (runs 43206290258 and 43420507070), on paths the changes barely reached. Contention adds to process CPU time too, and only ever adds, so the cost is now the least of three runs, each on a fresh index; a slower upsert is slower in all three. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
…ing, as latency bounds are master's own code measured 512 ms on the mini with e2e jobs on both desktops (run 43429465758), so the least of three alone does not hold there. The least of three is now asserted against latency-budget's verdict: 500 ms on a quiet machine, the loose ceiling with its reason logged when the cores are busy, the desktop is shared, or a guest runs beside the host. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
|
Gate run 43431215625 (static + unit:darwin, head 270fe6f) is green: 22 of 22 files. The bound's line: So with the guest running beside the host, the least of three cost 310.5 ms, against 512-519 ms for the single runs ux-wave measured under the same kind of load. The first run in a fresh process carries the warm-up (JIT, SQLite statement preparation), and the later two do not. The bound now measures the warm upsert cost, which a regression in the upsert path still raises in every run. On this run the named 500 ms would have held too; the loaded ceiling covers the busier minutes. Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook) |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
…ange (#624) and the CPU bound's test change (#628) Incoming: four files under .github/, scripts/ci-gate-alerts.test.mjs, one tracker row, src/services/index/sessions.test.ts. No product code. One conflict, in docs/tech-debt-tracker.md (each side appended one row): both rows kept, master's first. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Incoming over 5b934b8: the requests landing's fix round (the harness page's hosts connection, the held-chord scene, the docked frame's focus hand-over with its tests), master 7b9ef82 (the spec's batch 8 documents, the gate's default-on-guest change #624, the CPU bound's test change #628) and tracker rows. One conflict, in docs/tech-debt-tracker.md (rows appended on both sides): all rows kept, the incoming ones first. src/services/index/sessions.test.ts merged without conflict: this branch's six-word cases and #628's bound. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
Incoming over 90a9100: the requests landing's fix round (the harness page's hosts connection, the held-chord scene, the docked frame's focus hand-over with its tests), master 7b9ef82 (the spec's batch 8 documents, the gate's default-on-guest change #624, the CPU bound's test change #628) and tracker rows. No conflict; two files changed on both sides merged by git: docs/tech-debt-tracker.md and .github/scripts/e2e-default-specs.test.mjs. Sminos-Session: ux-wave#10d85d03 (MAWS on macbook)
The sheet's published set, copied whole from doperpowers' merge of pull request #628 (sminos 1.57.0, set version 1) into test/fixtures/sheet/set with its provenance; a test recomputes its digest three ways. src/shared/sheet holds the model's types and schemas, the reader's computation (held to every show.*.json of the pin), the stored call's entries and ids, the delivery's block, and the draft and the Send. src/services/sheet/reader.ts lists a home's records and reads each as a verified pair of state.json and the inbox's tail. Sminos-Session: question-sheet-design#23738737 (MAWS on macbook)
unit:darwin's 500 ms CPU bound on 4,000 upserts measured 605.9, 519.5 and 518.4 ms on the mini while e2e jobs ran on both its desktops (runs 43206290258, 43420507070, 43427405095). The changes in those runs reach the measured path by at most about 4 ms (ux-wave's measurement for U7a's cutPrompt). Contention adds to process CPU time as well: shared caches, and a slower clock with every core busy.
The bound is now the least CPU time of three runs, each on a fresh index. Load only ever adds, and a slower upsert is slower in all three runs, so a real regression still fails. Test-only, so no app change and no link reruns.
Gate: static + unit:darwin on the mini (in progress). Draft until it is green.
Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)