Repository navigation
id benchmarks: D1 workload adapter and native counters (C9133-02-D1) - #11142
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 6 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Codex disposition (lane any-u, task 17012): the Codex code review on this PR failed to run — "You have reached your Codex usage limits for code reviews" (review status: failed, 2026-11-17T07:51Z). It posted no findings: zero inline review comments exist on this PR. There is therefore no Codex finding to fix or rebut; the failure is a reviewer-capacity limit, not a code verdict. Merging under the standing criteria (targeted tests verified locally, diff matches the slice scope, no held labels). |
Implements ID/Atlas slice C9133-02-D1 for #10162: the D1 workload adapter and native counters for the #9133 benchmark contract (S2.1–S2.3, S2.16).
What
pkgs/id/benchmarks/src/adapters/d1.rs(new): maps each supported logical operation onto D1 (SQLite) statements overobjects/generations/generation_refs/physical_objects, and captures D1's native result counters per operation (rows_read,rows_written,duration,size_after,changes,last_row_id). Execution runs againstFakeD1, an in-memory fake of the D1 SQL API in the same finite, timer-free, provider-free style as the crate's reference store — no network call, and duration is synthetic (0.0), never a latency measurement. D1 support terms follow the crate'ssupport_level: tombstone delete is authority-fence-only (the tombstone is the fence), captured-key delete is delete-captured-key-after-fence.pkgs/id/benchmarks/tests/d1_adapter.rs(new, written first): drives the synthetic workload fixture through the adapter and checks every transition against both the fixture's expected rows and the independentReferenceStore, plus the extracted counters against an expected counter fixture (totals: 28 rows read, 11 rows written), and asserts DB size grows on put and shrinks on the captured-key delete.pkgs/id/benchmarks/src/lib.rs: minimalpub mod adapterswiring.Evidence
cargo test --manifest-path pkgs/id/benchmarks/Cargo.toml --test d1_adapter— 2 passed, 0 failed (laptop, via fleet-build-lock).cargo fmt --checkclean aftercargo fmt.workload_oracle) was queued behind the shared build lock under heavy CI load and was not re-run this shift; the change to existing code is additive only (one module declaration), and thed1_adapterbuild compiles the full library.Rollback: remove the D1 adapter module and its wiring; the benchmark harness and other adapters remain usable.
Closes #10162.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.