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 --ampls-resource-id and --enable-high-log-scale-mode options #7754

Merged
merged 28 commits into from
Jul 31, 2024

Conversation

ganga1980
Copy link
Contributor

@ganga1980 ganga1980 commented Jun 28, 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

azure-client-tools-bot-prd bot commented Jun 28, 2024

⚠️Azure CLI Extensions Breaking Change Test
⚠️aks-preview
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd aks addon enable cmd aks addon enable added parameter ampls_resource_id
⚠️ 1006 - ParaAdd aks addon enable cmd aks addon enable added parameter enable_high_log_scale_mode
⚠️ 1006 - ParaAdd aks addon update cmd aks addon update added parameter ampls_resource_id
⚠️ 1006 - ParaAdd aks addon update cmd aks addon update added parameter enable_high_log_scale_mode
⚠️ 1006 - ParaAdd aks create cmd aks create added parameter ampls_resource_id
⚠️ 1006 - ParaAdd aks create cmd aks create added parameter enable_high_log_scale_mode
⚠️ 1006 - ParaAdd aks enable-addons cmd aks enable-addons added parameter ampls_resource_id
⚠️ 1006 - ParaAdd aks enable-addons cmd aks enable-addons added parameter enable_high_log_scale_mode

@yonzhan
Copy link
Collaborator

yonzhan commented Jun 28, 2024

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

Copy link

github-actions bot commented Jun 28, 2024

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.

please add some live tests for the newly added options.

src/aks-preview/azext_aks_preview/custom.py Outdated Show resolved Hide resolved
@github-actions github-actions bot added the release-version-block Updates do not qualify release version rules label Jun 28, 2024
@github-actions github-actions bot removed the release-version-block Updates do not qualify release version rules label Jun 28, 2024
@yanzhudd
Copy link
Contributor

yanzhudd commented Jul 1, 2024

please fix the CI issues

@ganga1980
Copy link
Contributor Author

Hi, @yanzhudd , @FumingZhang - CI test failures not to related to this PR and CI test failures related to this test "FAILED src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py::AzureKubernetesServiceScenarioTest::test_aks_create_with_pod_ip_allocation_mode_static_block" and I see same CI tests failures in other PRs also.

@FumingZhang
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

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.

lgtm

Queued live test to validate the change.

  • test_aks_create_with_monitoring_aad_auth_with_highlogscale
  • test_aks_create_with_private_cluster_with_monitoring_aad_auth_msi_with_ampls
  • test_aks_create_with_private_cluster_with_monitoring_aad_auth_msi_with_ampls_with_highlogscale

failed with error

  • azure.cli.testsdk.exceptions.JMESPathCheckAssertionError: Query 'properties.dataCollectionEndpointId' doesn't yield expected value '/subscriptions/79a7390d-3a85-432d-9f6f-a11a703c8b83/resourceGroups/clitestfk7a24nt2b/providers/Microsoft.Insights/dataCollectionEndpoints/MSCI-ingest-westus2-cliakstestgm5hrh', instead the actual value is '/subscriptions/79a7390d-3a85-432d-9f6f-a11a703c8b83/resourceGroups/clitestfk7a24nt2b/providers/Microsoft.Insights/dataCollectionEndpoints/MSCI-westus2-cliakstestgm5hrh'. Data: ...
  • azure.cli.core.azclierror.HTTPError: Not Found({"error":{"code":"ResourceNotFound"}})

@FumingZhang
Copy link
Member

lgtm

Queued live test to validate the change.

  • test_aks_create_with_monitoring_aad_auth_with_highlogscale
  • test_aks_create_with_private_cluster_with_monitoring_aad_auth_msi_with_ampls
  • test_aks_create_with_private_cluster_with_monitoring_aad_auth_msi_with_ampls_with_highlogscale

failed with error

  • azure.cli.testsdk.exceptions.JMESPathCheckAssertionError: Query 'properties.dataCollectionEndpointId' doesn't yield expected value '/subscriptions/79a7390d-3a85-432d-9f6f-a11a703c8b83/resourceGroups/clitestfk7a24nt2b/providers/Microsoft.Insights/dataCollectionEndpoints/MSCI-ingest-westus2-cliakstestgm5hrh', instead the actual value is '/subscriptions/79a7390d-3a85-432d-9f6f-a11a703c8b83/resourceGroups/clitestfk7a24nt2b/providers/Microsoft.Insights/dataCollectionEndpoints/MSCI-westus2-cliakstestgm5hrh'. Data: ...
  • azure.cli.core.azclierror.HTTPError: Not Found({"error":{"code":"ResourceNotFound"}})

Requeued test

@FumingZhang
Copy link
Member

Requeued another live test

@FumingZhang
Copy link
Member

FumingZhang commented Jul 22, 2024

Queued live test

  • test_aks_create_with_monitoring_aad_auth_with_highlogscale
  • test_aks_create_with_private_cluster_with_monitoring_aad_auth_msi_with_ampls
  • test_aks_create_with_private_cluster_with_monitoring_aad_auth_msi_with_ampls_with_highlogscale

@FumingZhang
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@FumingZhang
Copy link
Member

Live test failed

@FumingZhang
Copy link
Member

FumingZhang commented Jul 31, 2024

Please fix style issues.
https://dev.azure.com/azclitools/public/_build/results?buildId=177380&view=logs&j=506b8f13-8269-5210-246e-a3964e53141e&t=db7247cb-300d-5b59-fd6c-6258fad20b89&l=152

ERROR: ************* Module azext_aks_preview._helpers
src/aks-preview/azext_aks_preview/_helpers.py:346:11: W0718: Catching too general exception Exception (broad-exception-caught)
src/aks-preview/azext_aks_preview/_helpers.py:338:19: W1508: os.getenv default type is builtins.bool. Expected str or None. (invalid-envvar-default)

Requeued live test, test passed!

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.

lgtm

Please update VERSION (in file src/aks-preview/setup.py) to 7.0.0b3

)
finally:
if monitor_options_specified and (
core_version < "2.63.0" and
Copy link
Member

Choose a reason for hiding this comment

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

not blocking: it would be better to do the comparison semantically

@yanzhudd yanzhudd merged commit a297133 into Azure:main Jul 31, 2024
19 checks passed
@azclibot
Copy link
Collaborator

azclibot commented Aug 1, 2024

[Release] Update index.json for extension [ aks-preview ] : https://dev.azure.com/azclitools/release/_build/results?buildId=177816&view=results

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.

None yet

6 participants