Skip to content

docs(query): resolve the private intra-doc links in rustledger-query - #2494

Merged
robcohen merged 1 commit into
mainfrom
docs/query-private-intra-doc-links
Oct 8, 2026
Merged

robcohen merged 1 commit into
mainfrom
docs/query-private-intra-doc-links

Conversation

@robcohen

@robcohen robcohen commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

What changed

RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --document-private-items -p rustledger-query --all-features reported seven unresolved intra-doc links (the issue counted three; four more appeared since):

file link fix
executor/aggregation.rs (x4) evaluate_aggregate_expr, evaluate_having_expr, evaluate_aggregate_table_expr Self:: (they are Executor methods)
executor/mod.rs (x2) price::PriceDatabase::convert, convert_latest crate::price::... (price is not in scope there)
price.rs from_directives Self::from_directives

Doc comments only; no code change.

Verification

  • The private-items command above is now clean (it failed with the 7 errors on origin/main 184e9d1). The public cargo doc -D warnings -p rustledger-query stays clean; cargo fmt --check clean.

CI

Not added here. CI builds public docs only, so private links can rot again. A whole-workspace step is not safe to add yet: cargo doc --no-deps --document-private-items --workspace --all-features -D warnings currently fails in 9 other crates (rustledger-core, -booking, -validate, -loader, -plugin, -lsp, -wasm, -ffi-component, rustledger). A step scoped to -p rustledger-query would pass after this PR; widening it needs those crates cleaned first.

Closes #2443

🤖 Generated with Claude Code

https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr

Seven intra-doc links pointed at items rustdoc could not resolve: three
unqualified Executor methods in aggregation.rs, two PriceDatabase
methods through an out-of-scope module path in executor/mod.rs, and
from_directives in price.rs. Qualify them so the private-item docs
build cleanly with -D warnings.

Closes #2443

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012nNGPA44Dt32NyxWem26xr
@robcohen
robcohen requested a review from a team as a code owner October 7, 2026 20:33
@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

Shape rustledger beancount Speedup RSS (rledger / beancount)
simple 45.6ms ± 1.6ms 823.1ms ± 10.8ms 18.0x 51.1 MB / 50.2 MB
investment 70.5ms ± 1.0ms 3050.1ms ± 50.7ms 43.3x 55.1 MB / 58.1 MB
fifo 67.0ms ± 2.4ms 15698.7ms ± 229.7ms 234.4x 55.2 MB / 57.8 MB

vs base, measured in this run

Shape base this PR Change RSS base → PR
simple 45.7ms ± 3.6ms 45.6ms ± 1.6ms -0.1% ✅ within noise 51.1 MB → 51.1 MB (+0.0%)
investment 69.9ms ± 1.2ms 70.5ms ± 1.0ms +0.8% ✅ within noise 55.1 MB → 55.1 MB (+0.1%)
fifo 65.9ms ± 1.0ms 67.0ms ± 2.4ms +1.6% ✅ within noise 59.0 MB → 55.2 MB (-6.5%)

A difference counts only when it clears the combined spread of the two measurements, per shape (2σ: simple 1.8ms, investment 0.7ms, fifo 1.2ms), and is at least 5%.
10,000 transactions per shape · 20 runs, 3 warmup · hyperfine

What do these numbers mean?
  • simple — Two-posting transfers, one currency. The historical workload — keep as the floor, not as the benchmark.
  • investment — Cost specs, per-unit prices and lot reductions. Exercises booking and inventory, which simple leaves at 0.3%.
  • fifo — Bare {} reductions against a FIFO account — how FIFO sells are normally written. The other four shapes reach the ordered-selection path twice in 2k transactions between them, so it was effectively unprofiled until it turned out to be quadratic (plan_ordered scans every lot per reduction: FIFO ledgers are quadratic (8.8s at 20k transactions) #2083).
  • vs base: the PR and the base-branch commit it is built on, built and measured in the same job
  • RSS: peak resident set size, a single sample — reported without a verdict because there is no spread to test it against
  • A shape with no beancount column is one bean-check reports errors on; it is timed for rledger only

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

✅ Compatibility Test Results

Metric Result
Check Compatibility 100%
BQL Compatibility 100% (raw 93%, 178 masked)
Full AST Match 100%
Total Files 813
What's tested
  • Check: Exit codes and error counts match bean-check
  • BQL: Query results match bean-query
    The headline is the EFFECTIVE rate, after pairs where beanquery
    itself is wrong are masked. raw is the same run with nothing
    masked. A widening gap means the registry grew, not that rledger
    changed.
  • Files: ~800 test files downloaded from 10+ beancount repositories

Full results available in workflow artifacts

@codecov

codecov Bot commented Oct 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@robcohen

robcohen commented Oct 8, 2026 •

Copy link
Copy Markdown
Member Author

Review (final: 3 passes)

No changes needed. Private-items docs, public docs, fmt and clippy are clean, and query tests pass. On the combined tree with all four lane-A PRs, the private-items docs show 0 errors, including #2489's new TxnAccounts doc links.

Integration (final heads, plus #2487, #2490 and #2491, merged onto main 184e9d1 in a scratch tree with its own target dir): the only conflicts are in CHANGELOG.md, one hunk per merge at the top of ### Fixed; keep both entries. #2487's manifest lines and #2492's merge cleanly. On the combined tree:

  • query tests pass (804 across 37 binaries)
  • STRICT_BASELINE=1 parser and CST baselines pass
  • workspace clippy is clean, and the private-items docs show 0 errors
  • the full-corpus BQL harness reports 0 real mismatches (150 files in CI order, fixtures included)

Merge order: #2494 → #2489 → #2492 → #2493; #2487, #2490 and #2491 can go anywhere. Nothing is order-dependent.

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.

docs: three unresolved intra-doc links in rustledger-query's aggregation.rs (private items, not caught by CI)

1 participant