-
Notifications
You must be signed in to change notification settings - Fork 0
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
test pr code #2
base: main
Are you sure you want to change the base?
test pr code #2
Conversation
|
src/aks-preview/HISTORY.rst
Outdated
@@ -9,6 +9,10 @@ If there is no rush to release a new version, please just add a description of t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary:
- Updated the VM SKU regex to include a larger set of VMs eligible for Azure Container Storage.
- Increased the version number from 7.0.0b7 to 7.0.0b8 in
setup.py
and added a new version section in the changelog.
@@ -414,7 +414,7 @@ def get_desired_resource_value_args( | |||
# Returns -1 if there is a problem with parsing the vm_size. | |||
def get_cores_from_sku(vm_size): | |||
cpu_value = -1 | |||
pattern = r'standard_([a-z]+)(\d+)([a-z]*)_v(\d+)' | |||
pattern = r'standard_([a-z]+)(\d+)([a-z]*)(?:_[^_]+)*_v(\d+)' | |||
match = re.search(pattern, vm_size.lower()) | |||
if match: | |||
series_prefix = match.group(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The updated regex pattern is more complex; clarify it with a comment explaining the logic.
- Instead of
re.search
, usere.match
since the pattern is expected to match from the start.
Refinement:
# Updated pattern to handle optional segments between the size and version
pattern = r'standard_([a-z]+)(\d+)([a-z]*)(?:_[^_]+)*_v(\d+)'
match = re.match(pattern, vm_size.lower())
@@ -9,7 +9,7 @@ | |||
|
|||
from setuptools import setup, find_packages | |||
|
|||
VERSION = "7.0.0b7" | |||
VERSION = "7.0.0b8" | |||
|
|||
CLASSIFIERS = [ | |||
"Development Status :: 4 - Beta", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version update from "7.0.0b7" to "7.0.0b8" is appropriate for indicating the new beta release. However, this diff does not show any other changes that require refining. Ensure all functional and necessary updates are included in separate commits for clarity.
7e9bcf3
to
087db12
Compare
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
General Guidelines
azdev style <YOUR_EXT>
locally? (pip install azdev
required)python scripts/ci/test_index.py -q
locally? (pip install wheel==0.30.0
required)For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.json
automatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json
.