Add end-to-end local CLI workflow coverage #35
No reviewers
Labels
No labels
area/cli
area/core
area/database
area/indexing
area/query
type/epic
type/feature
type/foundation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
JayKobe6k/ClariTree!35
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-18-cli-workflows"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Tests
nix develop --command cargo fmt --all -- --checknix develop --command cargo lintnix develop --command cargo test --all-targets --all-featuresnix develop --command cargo doc --no-deps --all-featuresBegins #18.
Found one actionable issue.
@ -0,0 +215,4 @@assert!(lineage["result"]["edges"].as_array().is_some_and(|edges| !edges.is_empty())[P2] This assertion accepts edges from either direction, so the test still passes if this bidirectional query loses all downstream traversal:
secondalready has upstream producers that satisfy both nonempty checks, while merely echoing the downstream bound does not prove thatthirdwas reached. Please assert that the result contains nodes with both upstream and downstream depth (or equivalent producer and consumer edges) so the advertised end-to-end bidirectional path is protected.Review comment #1357: Fixed in
6da4ec4. Replaced the generic nonempty result checks with assertions requiring nonzeroupstream_depthanddownstream_depthnodes, so the production CLI workflow now proves traversal in both directions. Tests:nix develop --command cargo test --test cli_workflow;nix develop --command cargo fmt --all -- --check;nix develop --command cargo lint;nix develop --command cargo test --all-targets --all-features;nix develop --command cargo doc --no-deps --all-features.