Skip to content

docs: add a Running section to README (tests + IR visualization) - #176

Merged
zzylol merged 3 commits into
mainfrom
docs/readme-running-section
Aug 12, 2026
Merged

zzylol merged 3 commits into
mainfrom
docs/readme-running-section

Conversation

@zzylol

@zzylol zzylol commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds a ## Running section to the README right after ## Building, covering how to actually exercise the workspace's artifacts today (there's no bin/ crate yet).
  • Documents cargo test --workspace for the test suite.
  • Documents cargo run -p asap-lower --example topk_ir for visualizing the L3 IR — includes a real (verified by running it) sample of the pretty-printed QueryExpr output for topk(5, rate(http_requests_total[5m])), plus a pointer to docs/l3-intent-algebra.md and how to point the example at a custom query.

Verification

Ran both commands locally against this branch to confirm they work and to capture real output for the README snippet (cargo test --workspace passes; cargo run -p asap-lower --example topk_ir produces the pasted tree).

🤖 Generated with Claude Code

zzylol and others added 3 commits August 12, 2026 11:44
Adds a ## Running section after ## Building that documents how to
exercise the workspace now that there's no bin/ crate yet:
- cargo test --workspace
- cargo run -p asap-lower --example topk_ir to pretty-print the L3
  QueryExpr IR for a batch of PromQL/SQL queries, with a real sample
  of the output and a pointer to docs/l3-intent-algebra.md

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Resolve conflict from README.md's simplification on main (dropped the
Troubleshooting and Key design references sections) by keeping that
trim and re-anchoring the new Running section on top of it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Removed instructions for visualizing a query in README.
@zzylol
zzylol merged commit 6f360d6 into main Aug 12, 2026
1 check passed
@zzylol
zzylol deleted the docs/readme-running-section branch August 12, 2026 17:49
zzylol added a commit that referenced this pull request Aug 12, 2026
…by a stale squash-merge (#177)

PR #176's squash-merge (via gh pr merge) used a stale cached PR head on
GitHub's side and landed the pre-#134-merge content: the README still
had the topk_ir/{:#?} section, and none of #134's actual files
(crates/ir/src/dag_export.rs, crates/lower/examples/dag_export.rs,
tools/dag-viewer/) made it into main.

This restores exactly the tree that was actually reviewed and verified
(build/test/clippy clean, dag_export CLI run end-to-end) before the
merge: the query-DAG JSON exporter + offline HTML viewer (#134, with
the Aggregate::by -> reduction compile fix), and the README's
'Visualize the IR' section pointing at it instead of topk_ir.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
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.

1 participant