Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arn resource delimiter regex to string methods #2834

Merged
merged 1 commit into from
Dec 13, 2022

Conversation

dlm6693
Copy link
Contributor

@dlm6693 dlm6693 commented Dec 12, 2022

This is a follow-up to #2831. While there was nothing wrong with it, splitting a string using a compiled regular expression object is significantly slower (roughly 3x) than using plain Python string manipulation methods.

@codecov-commenter
Copy link

Codecov Report

Base: 93.53% // Head: 93.51% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (374f889) compared to base (3c4101b).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2834      +/-   ##
===========================================
- Coverage    93.53%   93.51%   -0.03%     
===========================================
  Files           63       63              
  Lines        13382    13381       -1     
===========================================
- Hits         12517    12513       -4     
- Misses         865      868       +3     
Impacted Files Coverage Δ
botocore/endpoint_provider.py 99.35% <100.00%> (-0.01%) ⬇️
botocore/httpsession.py 91.40% <0.00%> (-0.40%) ⬇️
botocore/utils.py 79.07% <0.00%> (-0.13%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@jonemo jonemo left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for following up on this!

@dlm6693 dlm6693 merged commit cd13db2 into boto:develop Dec 13, 2022
@dlm6693 dlm6693 deleted the arn-delimiter-endpoints branch December 13, 2022 14:32
aws-sdk-python-automation added a commit that referenced this pull request Dec 13, 2022
* release-1.29.29:
  Bumping version to 1.29.29
  Update to latest partitions and endpoints
  Update to latest models
  arn resource delimiter regex to string methods (#2834)
  Add Type field for query errors from JSON protocol
kyleknap added a commit to kyleknap/aws-cli that referenced this pull request Dec 13, 2022
Specifically, the previous implementation did not handle ARNs that
use both colon and slashes as delimeters. This is a port from the
original implementation across the following PRs:

* boto/botocore#2831
* boto/botocore#2834
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