Skip to content

Conversation

@ubaskota
Copy link
Contributor

@ubaskota ubaskota commented Nov 14, 2025

Description of changes:
This change adds hostPrefix support to the RPC v2 CBOR serializer by including the host prefix in the serialized request.

Testing
Verified that all tests pass successfully.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov-commenter
Copy link

codecov-commenter commented Nov 14, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.71%. Comparing base (8121342) to head (c8ec4e0).
⚠️ Report is 128 commits behind head on develop.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3592      +/-   ##
===========================================
- Coverage    93.17%   92.71%   -0.47%     
===========================================
  Files           68       68              
  Lines        15411    15560     +149     
===========================================
+ Hits         14359    14426      +67     
- Misses        1052     1134      +82     

☔ 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.

Copy link
Contributor

@SamRemis SamRemis left a comment

Choose a reason for hiding this comment

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

So I'm alright without a changelog since no services that are released today use CBOR in botocore, but I'd like to update the description a bit. Can we clarify that this is bringing it inline with every other protocol, not just JSON, or remove that sentence?


self.assertNotIn('host_prefix', serialized)

def test_no_host_prefix_when_params_invalid(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

This test isn't actually testing anything about host prefix, right? We shouldn't include this unless it's testing related behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, the test doesn’t reach the change in serialize.py, but it validates that ParamValidationError is raised when a parameter with an invalid key name (that doesn’t exist in the shape : ’Foo-Non-existant’) is used.

@ubaskota ubaskota merged commit cee3e31 into boto:develop Dec 2, 2025
40 checks passed
aws-sdk-python-automation added a commit that referenced this pull request Dec 3, 2025
* release-1.42.2:
  Bumping version to 1.42.2
  Update to latest models
  Add hostPrefix support to RPC v2 CBOR serializer (#3592)
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.

4 participants