Repository navigation
test(mobile-perf): upload-success window, sparse scoring, semantics knob; lag stalls name work in flight - #23910
Git-on-my-level wants to merge 2 commits into
Conversation
…nob; tag lag stalls with work in flight - --upload accept --upload-wals N appends wal_sync_upload_success: synthetic uploads and jobs drive real sync phases, persistence and reconcile. - cold_start, home_idle_sync_refresh and the upload window are sparse: cold readiness keeps the 15% spread gate and each run has a stall budget (<=2 stalls over 100 ms, <=500 ms). Dense windows keep 15% p90; no run dropped. - Semantics is off for heavy perf by default; --semantics on is a separate dataset and compare refuses mixed settings. - LagWorkRegistry: bounded, allocation-free begin/end; mobile_lag_stall records overlapping sync/upload/reconcile/WAL-load work. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0dee88b234
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Without one, device_run.main() exits 2 on hosts with no scratch mount, so the manifest check failed on ordinary Linux checkouts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Folded into survivor #24591 ( Carried as-is: the full perf-harness change set (upload-success window, sparse scoring, semantics knob, lag work registry, |
|
Hey @Git-on-my-level 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
Why
Follow-on to #23859. The device harness could not reproduce the field's worst stall cluster: main-isolate stalls are ~20x over-represented right after sync phase boundaries and successful uploads, but the fixture refused every upload. Two sparse windows (cold_start, home_idle_sync_refresh) failed the 15% p90 spread rule on healthy runs (70–164%, 21–36%) because they hold only a handful of frames, so no 3-run batch could become a baseline. The heavy harness also kept the semantics tree on, which is about half of its main-thread time but is only paid by people using assistive tech. Field lag logs said that the main isolate stalled, not what was running.
What
--upload accept --upload-wals Nappendswal_sync_upload_success. Synthetic, loopback-only uploads and jobs drive real sync phases, persistence and reconcile. Existing windows keep their names and order.cache_ready_us) keeps the 15% spread gate, and every run of a sparse window must stay within a stall budget (at most 2 stalls over 100 ms, totaling 500 ms or less). Frame p90 is still reported for sparse windows. Dense windows keep the unchanged 15% p90 gate, no run is ever dropped, and summaries carryscoring_protocol, so compare refuses older baselines.--semantics onis a separately recorded dataset, and compare refuses to compare runs whose semantics settings differ.LagWorkRegistry(bounded slots, begin/end allocate nothing) tags eachmobile_lag_stallwith overlapping sync, sync phase, upload, reconcile and WAL-load work. Instrumented in SyncProvider anduploadLocalFilesV2/fetchSyncJobStatuswith pure try/finally wraps.Review
GLM (zai/glm-5.3) adversarial review found two issues, both fixed with a regression test:
_performSync; the new test fails without the fix.Noted, not changed: refuse-mode windows now upload through the fixture gate, which skips production upload telemetry work. That changes the measured workload, so
scoring_protocolforces a new baseline.Evidence
python3 -m unittest discover -s app/tool: OK.python3 -m unittest discover -s app/tool/perf -p 'test_*.py': OK.flutter test test/perf test/unit/lag_recorder_test.dart test/providerson main + this commit: 1,260 passed.flutter analyzeon the changed Dart files: clean. Profile iOS kernel compile of the integration target passed. Device qualification of the new window is still to come and will be posted here.Product invariants affected
UI-Evidence: none -- perf harness, scoring tools and diagnostic tags only; no rendered UI changed.
Failure-Class: none
🤖 Generated with Claude Code