Skip to content

test: cover subscription state validation paths#22757

Open
amirdeljouyi wants to merge 1 commit into
apache:trunkfrom
amirdeljouyi:pr-tests-subscriptionstate
Open

test: cover subscription state validation paths#22757
amirdeljouyi wants to merge 1 commit into
apache:trunkfrom
amirdeljouyi:pr-tests-subscriptionstate

Conversation

@amirdeljouyi

Copy link
Copy Markdown

Hi,

I added focused regression coverage for offset reset and validation retry behavior. I also tightened the existing truncation tests with assertions for the string description.

Impact on coverage:

  • Covers the relevant SubscriptionState logic, including the maybeSeekUnvalidated reset guards and the validation retry paths
  • Branch coverage for SubscriptionState increases by around 15%.

Why:

These checks make sure partitions only become eligible for validation/reset at the right time and that truncation details stay visible when they are reported.

I hope you find these tests useful. 😄 Please let me know if you have any questions or concerns.

Thanks,

@github-actions github-actions Bot added triage PRs from the community consumer tests Test fixes (including flaky tests) clients small Small PRs labels Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clients consumer small Small PRs tests Test fixes (including flaky tests) triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant