Skip to content

chore(analyze-query): use shared runAst from zero-cache instead of local copy#5669

Open
tantaman wants to merge 2 commits intomainfrom
mlaw/aq-cli
Open

chore(analyze-query): use shared runAst from zero-cache instead of local copy#5669
tantaman wants to merge 2 commits intomainfrom
mlaw/aq-cli

Conversation

@tantaman
Copy link
Contributor

@tantaman tantaman commented Mar 19, 2026

fixes the analyze-query CLI so we can continue doing targeted analysis without swamping zero-cache by loading the related application.

Sometimes loading an app kills zero-cache so you can't get much query analysis done without making a bunch of changes to the app (e.g., terabugs).


Remove duplicated run-ast.ts from analyze-query and import the canonical implementation from zero-cache. Update call sites to match the new function signature (auth object, async callback).

@tantaman tantaman requested a review from arv March 19, 2026 19:08
@vercel
Copy link

vercel bot commented Mar 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
replicache-docs Ready Ready Preview, Comment Mar 19, 2026 7:41pm
zbugs Ready Ready Preview, Comment Mar 19, 2026 7:41pm

Request Review

…l copy

Remove duplicated run-ast.ts from analyze-query and import the canonical
implementation from zero-cache. Update call sites to match the new
function signature (auth object, async callback).
@github-actions
Copy link

github-actions bot commented Mar 19, 2026

🐰 Bencher Report

Branchmlaw/aq-cli
TestbedLinux
Click to view all benchmark results
BenchmarkFile SizeBenchmark Result
kilobytes (KB)
(Result Δ%)
Upper Boundary
kilobytes (KB)
(Limit %)
zero-package.tgz📈 view plot
🚷 view threshold
1,922.85 KB
(-0.07%)Baseline: 1,924.12 KB
1,962.61 KB
(97.97%)
zero.js📈 view plot
🚷 view threshold
278.62 KB
(0.00%)Baseline: 278.62 KB
284.20 KB
(98.04%)
zero.js.br📈 view plot
🚷 view threshold
73.97 KB
(0.00%)Baseline: 73.97 KB
75.45 KB
(98.04%)
🐰 View full continuous benchmarking report in Bencher

@github-actions
Copy link

github-actions bot commented Mar 19, 2026

🐰 Bencher Report

Branchmlaw/aq-cli
Testbedself-hosted

⚠️ WARNING: Truncated view!

The full continuous benchmarking report exceeds the maximum length allowed on this platform.

🚨 27 Alerts

🐰 View full continuous benchmarking report in Bencher

@github-actions
Copy link

github-actions bot commented Mar 19, 2026

🐰 Bencher Report

Branchmlaw/aq-cli
Testbedself-hosted

🚨 2 Alerts

BenchmarkMeasure
Units
ViewBenchmark Result
(Result Δ%)
Lower Boundary
(Limit %)
src/client/custom.bench.ts > big schemaThroughput
operations / second (ops/s) x 1e3
📈 plot
🚷 threshold
🚨 alert (🔔)
109.47 ops/s x 1e3
(-15.37%)Baseline: 129.35 ops/s x 1e3
114.54 ops/s x 1e3
(104.64%)

src/client/zero.bench.ts > pk compare > pk = NThroughput
operations / second (ops/s) x 1e3
📈 plot
🚷 threshold
🚨 alert (🔔)
48.92 ops/s x 1e3
(-15.93%)Baseline: 58.19 ops/s x 1e3
54.57 ops/s x 1e3
(111.55%)

Click to view all benchmark results
BenchmarkThroughputBenchmark Result
operations / second (ops/s) x 1e3
(Result Δ%)
Lower Boundary
operations / second (ops/s) x 1e3
(Limit %)
src/client/custom.bench.ts > big schema📈 view plot
🚷 view threshold
🚨 view alert (🔔)
109.47 ops/s x 1e3
(-15.37%)Baseline: 129.35 ops/s x 1e3
114.54 ops/s x 1e3
(104.64%)

src/client/zero.bench.ts > basics > All 1000 rows x 10 columns (numbers)📈 view plot
🚷 view threshold
1.98 ops/s x 1e3
(-5.01%)Baseline: 2.09 ops/s x 1e3
1.16 ops/s x 1e3
(58.69%)
src/client/zero.bench.ts > pk compare > pk = N📈 view plot
🚷 view threshold
🚨 view alert (🔔)
48.92 ops/s x 1e3
(-15.93%)Baseline: 58.19 ops/s x 1e3
54.57 ops/s x 1e3
(111.55%)

src/client/zero.bench.ts > with filter > Lower rows 500 x 10 columns (numbers)📈 view plot
🚷 view threshold
3.01 ops/s x 1e3
(-9.40%)Baseline: 3.32 ops/s x 1e3
2.42 ops/s x 1e3
(80.45%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Contributor

@arv arv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants