Repository navigation
Conversation
This was referenced Nov 26, 2026
Step 2 of the repository layout design (#874): folder moves only, with every path reference updated. No code or behavior change. - control_plane -> crates/control-plane, data_plane -> crates/data-plane (package names unchanged) - data_plane/examples/*_bench.rs -> benchmarks/micro/ ([[example]] entries of data_plane) - bench/demo/{campaign,harness,workloads,profile} -> eval/; {live,run_live_demo.sh} -> eval/demo/; monitoring -> deployment/monitoring; build.sh, fetch_binaries.sh, run_vm_demo.sh, README.md, .gitignore -> eval/ - scripts/{profile.sh,tiered_views_cgroup.sh} -> benchmarks/scripts/ - examples/*.json -> docs/examples/ - eval/results/ is git-ignored
Only tracing_subscriber is used.
zzylol
force-pushed
the
refactor/layout-folder-moves
branch
from
November 28, 2026 00:56
7c0fce8 to
373e0a0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bench/demo,data_plane/examplesandscripts/, so it does not match the layout proposed indocs/design/repo-layout.md(docs(design): repository layout and engine boundaries #874).git mv, and every path that pointed at an old location is updated.cargo run --release -p data_plane --example ingest_bench -- 10000 300still works; its source is nowbenchmarks/micro/ingest_bench.rs.Review guide
docs/repo-layout(docs(design): repository layout and engine boundaries #874), so the design doc is in the stack.Cargo.toml,crates/data-plane/Cargo.toml(the[[example]]entries),eval/demo/run_live_demo.sh,eval/run_vm_demo.sh,deployment/monitoring/{docker-compose.yml,run_binaries.sh,screenshot.sh}, and the three.gitignorefiles.../examples→../../docs/examples), usage lines, and comments.control_plane,data_plane), binary names, example names, CLI flags and$ASAPQ_BENCHsemantics, except that it now nameseval/.Old → new paths
control_plane/crates/control-plane/(packagecontrol_plane)data_plane/crates/data-plane/(packagedata_plane, still one crate)data_plane/examples/*_bench.rs(8 files)benchmarks/micro/data_plane/examples/remote_write_load.rscrates/data-plane/examples/(unchanged; see Decisions)bench/demo/{campaign,harness,workloads,profile}/eval/{campaign,harness,workloads,profile}/bench/demo/live/,bench/demo/run_live_demo.sheval/demo/live/,eval/demo/run_live_demo.shbench/demo/monitoring/deployment/monitoring/bench/demo/{build.sh,fetch_binaries.sh,run_vm_demo.sh,README.md}eval/bench/demo/.gitignoreeval/.gitignore(the/live/…rules become/demo/live/…); its two/monitoring/…rules move todeployment/monitoring/.gitignorescripts/profile.sh,scripts/tiered_views_cgroup.shbenchmarks/scripts/examples/*.json(4 files)docs/examples/scripts/ci/,scripts/sync-asapplanner-main.sh.gitignore:eval/results/addedPath-reference updates
members = ["crates/control-plane", "crates/data-plane"], and thecontrol_planepath dependency now points atcrates/control-plane.crates/data-plane/Cargo.tomldeclares the eight benchmarks as[[example]]entries withpath = "../../benchmarks/micro/<name>.rs".offset_bench.rs's#[path]include of the test helpers now points at../../crates/data-plane/tests/common/mod.rs.Cargo.lockloses one line (below).control-plane/tests/plan_workload.rs,data-plane/tests/common/mod.rsanddata-plane/tests/push_precompute.rsread the example workloads from../../docs/examples. Doc comments are updated to match..github/): no change needed. The workflows use package names (cargo fmt -p control_plane -p data_plane) andscripts/ci/, which did not move.$ASAPQ_BENCHis noweval/.run_live_demo.shandrun_vm_demo.shdefineMON=$ASAPQ_BENCH/../deployment/monitoringand use it wherever they used$BASE/monitoringor$ASAPQ_BENCH/monitoring.run_live_demo.shsetsLIVE=$BASE/demo/live. The recorded live sequences (eval/demo/live/chain_*.sh,demo_sequence*.sh,after_sequence_limits.sh) run from$ASAPQ_BENCHand now calldemo/run_live_demo.sh,demo/live/…and../deployment/monitoring/….limits_exporter.pyfindseval/harnessone level further up.profile_query_phase.shlooks for$BACKEND_DIR/benchmarks/scripts/profile.sh. A checkout without that file falls back to plainperf, as before.run_binaries.shandscreenshot.shuseMON=$ASAPQ_BENCH/../deployment/monitoring, anddocker-compose.ymlmounts${ASAPQ_BENCH}/../deployment/monitoring/…. Comments and themake_*_dashboard.pyhelp texts point ateval/demo/live/…. Themake_dashboard.pypanel text now sayseval/profile/profile_query_phase.sh.eval/README.mdandeval/harness/README.mdare updated, includingln -s .. "$ASAPQ_BENCH/backend", which was../... The four design docs underdocs/design/are historical, so their paths stay as they are and each gets a "Paths" note at the top that maps old paths to new ones.bench/demo,data_plane/,control_plane/,scripts/profile.sh,scripts/tiered_views_cgroup.sh,examples/planner-layering, and forlive/andmonitoring/not under their new parents, matches only the historical design docs (which carry the note), package and binary names in prose, and paths in other repositories.Behavior: before → after
Behavior is unchanged. The commands are the same; only where a file lives changes:
cargo run -p control_plane -- --workload examples/planner-layering-example1.json …cargo run -p control_plane -- --workload docs/examples/planner-layering-example1.json …cargo run --release -p data_plane --example tier_bench …(sourcedata_plane/examples/)benchmarks/micro/)export ASAPQ_BENCH=<repo>/bench/demo; ./run_live_demo.sh startexport ASAPQ_BENCH=<repo>/eval; demo/run_live_demo.sh start./run_vm_demo.shinbench/demo./run_vm_demo.shinevaldocker compose -f bench/demo/monitoring/docker-compose.ymldocker compose -f deployment/monitoring/docker-compose.ymlInterfaces
None in code. The changed paths are listed above. Package, binary and example names, CLI flags and file formats are unchanged.
Algorithm changes
None.
Decisions and open questions
Needs reviewer decision: none.
Decided (judgment calls made in this PR):
control_planeanddata_plane. Renaming them to match the folders would touch the CI fmt command, every-pin the scripts and READMEs, and the crate imports. That is not a pure move.data_plane, as[[example]]entries pointing intobenchmarks/micro/. A separate benchmarks crate would need its own manifest and dev-dependencies, while this way the build commands stay as they are. Their workload fixtures still resolve throughCARGO_MANIFEST_DIR(crates/data-plane/tests/workloads).remote_write_load.rsstays incrates/data-plane/examples/. It is a Remote Write load generator, not a*_bench.rsmicro benchmark.build.sh,fetch_binaries.sh,run_vm_demo.shandREADME.mdgo to the top ofeval/, noteval/scripts/.$ASAPQ_BENCHiseval/, and the harness, campaign scripts and READMEs call these scripts as./…or../…from there, so this placement keeps those relative calls working unchanged.bench/demo/.gitignore→eval/.gitignore. Its monitoring rules (/textfile/,/grafana/dashboards/) move to a newdeployment/monitoring/.gitignore, so nothing the scripts write becomes tracked.$ASAPQ_BENCH/../deployment/monitoring. A new environment variable or a symlink would also work, but this resolves the same way under every caller, including docker compose.Verification
An independent review checked the diff for leftover old paths, broken relative paths and non-move changes. It found one formatting break: a longer fixture path in
tests/common/mod.rsthat neededcargo fmt. It also found three stale doc comments inbenchmarks/micro/*and a missing note on path bases ineval/harness/README.md. All of these are fixed in this commit, andcargo fmt --checkpasses on the pushed head.Both trees were built and tested on the same host, with the same vendored dependencies (
Cargo.lockunchanged), one shared target directory andulimit -nraised to the hard limit. With the default limit of 1024,planner_executor_parity::push_precompute_answers_what_the_planner_executor_answersfails withToo many open filesonmainas well. Both runs list the same 189 passing test names (diffof the sortedtest … oklines is empty).main(8263b22)cargo fmt --all -- --checkcargo build --workspace --all-targets --lockedcargo clippy --workspace --all-targets --locked -- -D warningscargo test --workspace --lockedpython3 -m unittest discover -s scripts/ci,node scripts/ci/test_planner_merge.jsbash -non every*.sh,py_compileon every*.pyScript smoke runs from a copy of this branch, with
ASAPQ_BENCH=<copy>/eval:eval/demo/run_live_demo.sh bogusprints its usage, andstatusruns. Both createeval/demo/live/{data,logs,pids}anddeployment/monitoring/{textfile,grafana/dashboards}, andgit check-ignoreconfirms that all of them are ignored.deployment/monitoring/run_binaries.sh statusruns.screenshot.shandeval/profile/profile_query_phase.shprint their usage errors.benchmarks/scripts/tiered_views_cgroup.shprintsbuild first: cargo build --release -p data_plane --example tier_bench.benchmarks/scripts/profile.shreaches its tool check.--helpworks for everyeval/demo/live/*.py,deployment/monitoring/grafana/make_{demo,live}_dashboard.py,screenshot.py,eval/harness/{run,report,demo_table}.py.make_dashboard.pywrites intodeployment/monitoring/grafana/dashboards/. The harness scripts without argparse (tables*.py,accuracy_vs_vm.py,compression.py,merge_plans.py) fail on--helpexactly as they do onmain.prepare.py --helpneeds the ASAPQuery checkout, onmainas well.eval/run_vm_demo.shandeval/build.shwere not run: they download pinned binaries and build. Their$MON/$BASEpaths were checked against the tree.Whole-stack review fix
crates/control-plane/Cargo.tomldrops the unusedtracingdependency (onlytracing_subscriberis used; it predates the stack), andCargo.lockdrops that edge.--all-targets -D warningsandcargo test --workspace: 189 passed, 0 failed, 3 ignored (31 suites).Follow-ups
Some directories that the scripts create were not git-ignored before this PR, and this PR keeps it that way:
deployment/monitoring/{data,.pylib}/,eval/demo/live/.pylib/, and the campaign'seval/campaign-*/andeval/final-*/. Adding ignore rules for them is left to a separate change.Step 3 of
docs/design/repo-layout.md: splitinternal-metricsandstorageout ofcrates/data-plane.eval/baselines/anddeployment/Dockerfiles come in step 9.