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

Add version floor for transfer feature #3957

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

nateprewitt
Copy link
Contributor

Set a version floor for the CRT transfer feature for cases where customers may be deployed on a platform with an outdated version of awscrt.

@nateprewitt nateprewitt requested a review from kyleknap November 29, 2023 18:53
Copy link
Contributor

@kyleknap kyleknap left a comment

Choose a reason for hiding this comment

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

Looks good. Just had a small comment on the test

assert has_minimum_crt_version((0, 16, 12)) is True

@requires_crt()
def test_minimum_crt_version_bad_crt_version(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

It might be worth parameterizing this to test out other edge cases that could cause issues. Off the top of my head, we could add cases when __version__:

  • Is a value that can't be converted to an int(). Like if there are are beta or alpha identifiers.
  • The value does not follow the pattern of x.y.z (e.g. 0.20)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

0.20 should actually still work with tuple comparison. I can add a 0.0.0-dev or something though for the first case.

Copy link
Contributor

Choose a reason for hiding this comment

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

We can also fast follow on making these test updates. Does not need to block getting this released

@nateprewitt nateprewitt merged commit 7230084 into develop Nov 29, 2023
76 checks passed
@nateprewitt nateprewitt deleted the crt_version_opt_out branch November 29, 2023 19:26
aws-sdk-python-automation added a commit that referenced this pull request Nov 29, 2023
* release-1.33.3:
  Bumping version to 1.33.3
  Add changelog entries from botocore
  Add version floor for transfer feature (#3957)
  Improve UnknownAPIVersionError exception message (#3955)
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.

2 participants