Skip to content

Conversation

@calvin197
Copy link
Contributor


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

Related command

aks create --enable-fips-image
aks nodepool add --enable-fips-image

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.

Copilot AI review requested due to automatic review settings July 3, 2025 16:32
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Jul 3, 2025

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@azure-client-tools-bot-prd
Copy link

Hi @calvin197,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@github-actions
Copy link

github-actions bot commented Jul 3, 2025

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@yonzhan
Copy link
Collaborator

yonzhan commented Jul 3, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

github-actions bot commented Jul 3, 2025

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the FIPS preview test to explicitly use a non-ARM VM size for both initial cluster creation and secondary node pool operations.

  • Add --node-vm-size Standard_D2s_v3 to the aks create command
  • Add --node-vm-size Standard_D2s_v3 to the secondary node pool creation command

# 1. create
create_cmd = (
"aks create --resource-group={resource_group} --name={name} --location={location} "
"aks create --resource-group={resource_group} --name={name} --location={location} --node-vm-size Standard_D2s_v3 "
Copy link

Copilot AI Jul 3, 2025

Choose a reason for hiding this comment

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

[nitpick] The VM size 'Standard_D2s_v3' is repeated; consider extracting it to a named constant or test variable and adding a comment explaining why this specific size is required for the FIPS preview flow, which will improve readability and reduce duplication.

Copilot uses AI. Check for mistakes.
"--resource-group={resource_group} "
"--cluster-name={name} "
"--name={node_pool_name_second} "
"--node-vm-size Standard_D2s_v3 "
Copy link

Copilot AI Jul 3, 2025

Choose a reason for hiding this comment

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

[nitpick] Duplicate literal 'Standard_D2s_v3' here as well; extracting to a shared variable or constant would make updates easier and ensure consistency across the test.

Suggested change
"--node-vm-size Standard_D2s_v3 "
f"--node-vm-size {self.DEFAULT_NODE_VM_SIZE} "

Copilot uses AI. Check for mistakes.
@calvin197 calvin197 changed the title fix test_aks_create_update_fips_flow by specifying non-arm vm size fix test_aks_create_update_fips_flow by specifying non-arm64 vm size Jul 3, 2025
@pineapplethevoyager
Copy link
Contributor

Makes sense to me. Would be good to run tests to see it fixing failure rate

@yonzhan yonzhan requested a review from zhoxing-ms July 3, 2025 22:20
@yonzhan yonzhan requested a review from yanzhudd July 3, 2025 22:20
@yonzhan
Copy link
Collaborator

yonzhan commented Jul 3, 2025

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@calvin197 calvin197 changed the title fix test_aks_create_update_fips_flow by specifying non-arm64 vm size {AKS} fix test_aks_create_update_fips_flow by specifying non-arm64 vm size Jul 3, 2025
Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

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

Queued live test to validate the change, test passed!

@yanzhudd yanzhudd merged commit c24c578 into Azure:main Jul 9, 2025
26 checks passed
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.

6 participants