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

test pr code #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

test pr code #2

wants to merge 2 commits into from

Conversation

AllyW
Copy link
Owner

@AllyW AllyW commented Aug 27, 2024


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

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.

Copy link

Repository owner deleted a comment from github-actions bot Aug 27, 2024
Repository owner deleted a comment from github-actions bot Aug 27, 2024
Repository owner deleted a comment from github-actions bot Aug 27, 2024
Repository owner deleted a comment from github-actions bot Aug 27, 2024
Repository owner deleted a comment from github-actions bot Aug 27, 2024
@AllyW AllyW added the enhancement New feature or request label Aug 27, 2024
Repository owner deleted a comment from github-actions bot Aug 27, 2024
Repository owner deleted a comment from github-actions bot Aug 27, 2024
Repository owner deleted a comment from github-actions bot Aug 27, 2024
Repository owner deleted a comment from github-actions bot Aug 27, 2024
@AllyW AllyW removed the enhancement New feature or request label Aug 27, 2024
@@ -9,6 +9,10 @@ If there is no rush to release a new version, please just add a description of t

Choose a reason for hiding this comment

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

PR Summary:

  1. Updated the VM SKU regex to include a larger set of VMs eligible for Azure Container Storage.
  2. 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)

Choose a reason for hiding this comment

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

  1. The updated regex pattern is more complex; clarify it with a comment explaining the logic.
  2. Instead of re.search, use re.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",

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.

@AllyW AllyW force-pushed the main branch 2 times, most recently from 7e9bcf3 to 087db12 Compare August 30, 2024 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant