Skip to content

[CLIENT-3466] Raise an exception if a Python integer is out of bounds when converted to a fixed length integer#935

Open
DomPeliniAerospike wants to merge 30 commits intodevfrom
CLIENT-3466-Length-Check-Fixed-Integers
Open

[CLIENT-3466] Raise an exception if a Python integer is out of bounds when converted to a fixed length integer#935
DomPeliniAerospike wants to merge 30 commits intodevfrom
CLIENT-3466-Length-Check-Fixed-Integers

Conversation

@DomPeliniAerospike
Copy link
Copy Markdown
Contributor

@DomPeliniAerospike DomPeliniAerospike commented Feb 2, 2026

TODO

  • Documentation
  • Maybe break down into smaller tickets to limit scope

Extra changes

  • Improve naming for add_op() helper function

Manual testing

https://aerospike-python-client--935.org.readthedocs.build/en/935/aerospike_helpers.operations.html#module-aerospike_helpers.operations.map_operations

Massif=false
Massif=true
Build wheels

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 2, 2026

Codecov Report

❌ Patch coverage is 58.61244% with 173 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.04%. Comparing base (339439b) to head (8890cbd).
⚠️ Report is 1 commits behind head on dev.

Files with missing lines Patch % Lines
src/main/client/type.c 34.61% 102 Missing ⚠️
src/main/conversions.c 60.15% 51 Missing ⚠️
src/main/client/query.c 54.54% 5 Missing ⚠️
src/main/client/operate.c 84.00% 4 Missing ⚠️
src/main/policy_config.c 78.57% 3 Missing ⚠️
src/main/client/remove.c 0.00% 2 Missing ⚠️
src/main/config_provider/type.c 60.00% 2 Missing ⚠️
src/main/convert_partition_filter.c 91.30% 2 Missing ⚠️
src/main/query/where.c 71.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #935      +/-   ##
==========================================
- Coverage   83.89%   83.04%   -0.85%     
==========================================
  Files          99       99              
  Lines       14514    14666     +152     
==========================================
+ Hits        12176    12180       +4     
- Misses       2338     2486     +148     

☔ View full report in Codecov by Sentry.
📢 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.

@juliannguyen4 juliannguyen4 changed the title CLIENT-3466: Add length checking to fixed length integers [CLIENT-3466] Raise an exception if a Python integer is out of bounds when converted to a fixed length integer Feb 2, 2026
DomPeliniAerospike and others added 26 commits February 23, 2026 09:05
Added helper functions
Fixed some bugs from previous implementation
Fixed test case which returned different error string for py 3.14
Changed error message to more accurate description of the failure.
… calls take in int64_t for index and rank, so change variable to be the same type. In Windows the C long type is only a signed 32-bit integer, so the integer/rank from Python can get truncated which is also implementation-defined behavior for signed integers
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.

3 participants