Skip to content

Batch 3: SearchByTreeWalkingMixin sizeLimit and ModifyOp round-trip - #256

Merged
psi29a merged 1 commit into
masterfrom
fixes/batch3
Aug 25, 2026
Merged

Batch 3: SearchByTreeWalkingMixin sizeLimit and ModifyOp round-trip#256
psi29a merged 1 commit into
masterfrom
fixes/batch3

Conversation

@psi29a

@psi29a psi29a commented Aug 25, 2026

Copy link
Copy Markdown
Contributor
  • SearchByTreeWalkingMixin.search now honors sizeLimit and stops appending matches once the requested count is reached (fixes SearchByTreeWalkungMixin ignores sizeLimit #234). Truncation only -- the tree walk itself still runs to completion, because early cancellation would require an interruptible iterator the mixin does not expose.

  • delta.Modification.asLDAP no longer returns wire-encoded bytes; it returns the BERSequence object that LDAPModifyRequest.modification and ModifyOp.fromLDAP already document and expect. This fixes the ValueError: too many values to unpack round-trip failure (fixes Bug: ModifyOp in the Delta module cannot serialize from LDAP #223).

Regression tests for both. Full suite green on py3.11, 3.13, 3.14.

- SearchByTreeWalkingMixin.search now honors sizeLimit and stops
  appending matches once the requested count is reached (fixes #234).
  Truncation only -- the tree walk itself still runs to completion,
  because early cancellation would require an interruptible iterator
  the mixin does not expose.

- delta.Modification.asLDAP no longer returns wire-encoded bytes; it
  returns the BERSequence object that LDAPModifyRequest.modification
  and ModifyOp.fromLDAP already document and expect. This fixes the
  ValueError: too many values to unpack round-trip failure (fixes #223).

Regression tests for both. Full suite green on py3.11, 3.13, 3.14.
@psi29a
psi29a merged commit b6ce63c into master Aug 25, 2026
5 checks passed
@psi29a
psi29a deleted the fixes/batch3 branch August 25, 2026 13:38
@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.49%. Comparing base (df81510) to head (2158d74).
⚠️ Report is 47 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #256      +/-   ##
==========================================
+ Coverage   83.28%   83.49%   +0.20%     
==========================================
  Files          87       87              
  Lines       11567    11666      +99     
  Branches     1184     1004     -180     
==========================================
+ Hits         9634     9740     +106     
  Misses       1815     1815              
+ Partials      118      111       -7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

SearchByTreeWalkungMixin ignores sizeLimit Bug: ModifyOp in the Delta module cannot serialize from LDAP

1 participant