Skip to content

Add graph-slice property tests (#117) - #149

Draft
leynos wants to merge 1 commit into
mainfrom
issue-117-graph-slice-add-proptest-property-based-tests-for-budget-deduplication-ordering-and-spillover-invariants
Draft

Add graph-slice property tests (#117)#149
leynos wants to merge 1 commit into
mainfrom
issue-117-graph-slice-add-proptest-property-based-tests-for-budget-deduplication-ordering-and-spillover-invariants

Conversation

@leynos

@leynos leynos commented May 25, 2026

Copy link
Copy Markdown
Owner

Summary

This branch adds property-based coverage for the observe graph-slice invariants raised in issue #117. It verifies card-budget limits, spillover truncation, deterministic ordering and same-file card deduplication across generated inputs.

Closes #117.

Review walkthrough

Validation

  • make check-fmt: passed
  • make lint: passed
  • make test: passed, 1439 tests passed and 4 skipped
  • coderabbit review --agent: passed with 0 findings after addressing the earlier proptest assertion concern

Notes

The integration-style deduplication coverage drives both the serialized handler response and the discover_same_file_cards boundary. This keeps the property focused on the discovery invariant while still checking the response path that callers consume.

Cover the `observe graph-slice` budget, spillover, ordering, and
same-file deduplication invariants with `proptest` cases.

Drive the deduplication invariant both through the handler response and
through `discover_same_file_cards` so duplicate `symbol_id` values are
caught at the discovery boundary and in serialized output.

@sourcery-ai sourcery-ai 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.

Sorry @leynos, you have reached your weekly rate limit of 2500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@coderabbitai

coderabbitai Bot commented May 25, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 86dfbec3-8a62-453e-9bb1-5fde7d4bb2ff

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch issue-117-graph-slice-add-proptest-property-based-tests-for-budget-deduplication-ordering-and-spillover-invariants

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

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.

graph-slice: add proptest property-based tests for budget, deduplication, ordering, and spillover invariants

1 participant