Skip to content

test: lift project_history.py coverage 81% to 99% - #766

Merged
seonghobae merged 1 commit into
mainfrom
test/project-history-edge-coverage
Aug 27, 2026
Merged

test: lift project_history.py coverage 81% to 99%#766
seonghobae merged 1 commit into
mainfrom
test/project-history-edge-coverage

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Tests-only change targeting the evidence-bound project-history projection shipped in #762.

22 edge tests cover the validation and safety branches the happy-path suite misses: UTF-8 key bound, score numeric/finite validation, DAG skips (outside-window/backward edges), depth and per-event path ceilings, projection bounds + focus membership, match-row dedup/truth/confidence/display-name, cataloged actor keys, and unknown-event role skipping.

project_history.py: 33 -> 1 missing line (the residual is a defensive guard structurally unreachable with forward-only edges). Package line coverage 95.1%. Full suite 1673 passed + 12 skipped.


Devin Review

22 edge tests for the evidence-bound project-history projection: key
bytes/UTF-8 bound, score numeric/finite validation, DAG safety skips
(outside-window and backward edges), maximum-depth and per-event path
ceilings, projection parameter bounds and focus-membership validation,
match-row processing (dedup, truth mapping, confidence scoring, display
name), cataloged actor keys, and role/unknown event skipping.

project_history.py 33 -> 1 missing line; package line coverage 95.1%.
1673 Python tests green; tests-only change.
@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 12 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0df1d42a-24cf-408e-9032-da995bf9e4f4

📥 Commits

Reviewing files that changed from the base of the PR and between 604def5 and 1d2cd9b.

📒 Files selected for processing (1)
  • tests/test_project_history_edges.py

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

Devin Review

maximum_depth=8,
maximum_paths_per_event=32,
)
assert all(path["event_ids"][-1] == "spec" for path in paths["spec"])

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📝 Info: Backward-edge test asserts a tautology

In test_prior_paths_skips_backward_or_simultaneous_edges the check all(path["event_ids"][-1] == "spec" ...) is vacuously true: the list is empty, and every path for target spec ends with spec regardless. The test drives coverage but cannot fail even if the backward-edge skip were removed.

Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

@seonghobae
seonghobae merged commit f09146e into main Aug 27, 2026
30 checks passed
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