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

[suggest-fix] Run test PRs on azure-docs-sdk-python-363 (part 1) #1931

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ness001
Copy link

@ness001 ness001 commented Aug 5, 2024

created-by-lianli

Copy link
Contributor

Learn Build status updates of commit 2eca766:

❌ Validation status: errors

Please follow instructions here which may help to resolve issue.

File Status Preview URL Details
docs-ref-autogen/azure-mgmt-apicenter/azure.mgmt.apicenter.aio.ApiCenterMgmtClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-apicenter/azure.mgmt.apicenter.ApiCenterMgmtClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-appcomplianceautomation/azure.mgmt.appcomplianceautomation.aio.AppComplianceAutomationMgmtClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-appcomplianceautomation/azure.mgmt.appcomplianceautomation.AppComplianceAutomationMgmtClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-appconfiguration/azure.mgmt.appconfiguration.v2022_03_01_preview.aio.AppConfigurationManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-appconfiguration/azure.mgmt.appconfiguration.v2022_03_01_preview.AppConfigurationManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-appconfiguration/azure.mgmt.appconfiguration.v2022_05_01.aio.AppConfigurationManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-appconfiguration/azure.mgmt.appconfiguration.v2022_05_01.AppConfigurationManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-appconfiguration/azure.mgmt.appconfiguration.v2023_03_01.aio.AppConfigurationManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-appconfiguration/azure.mgmt.appconfiguration.v2023_03_01.AppConfigurationManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-appcontainers/azure.mgmt.appcontainers.aio.ContainerAppsAPIClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-appcontainers/azure.mgmt.appcontainers.ContainerAppsAPIClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2015_05_01.aio.ApplicationInsightsManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2015_05_01.ApplicationInsightsManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2017_10_01.aio.ApplicationInsightsManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2017_10_01.ApplicationInsightsManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2018_05_01_preview.aio.ApplicationInsightsManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2018_05_01_preview.ApplicationInsightsManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2018_06_17_preview.aio.ApplicationInsightsManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2018_06_17_preview.ApplicationInsightsManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2019_10_17_preview.aio.ApplicationInsightsManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2019_10_17_preview.ApplicationInsightsManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2020_02_02_preview.aio.ApplicationInsightsManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2020_02_02_preview.ApplicationInsightsManagementClient.yml ❌Error Details
docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2020_02_02.aio.ApplicationInsightsManagementClient.yml ❌Error Details

This comment lists only the first 25 files in the pull request.

docs-ref-autogen/azure-mgmt-apicenter/azure.mgmt.apicenter.aio.ApiCenterMgmtClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-apicenter/azure.mgmt.apicenter.ApiCenterMgmtClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-appcomplianceautomation/azure.mgmt.appcomplianceautomation.aio.AppComplianceAutomationMgmtClient.yml

  • Line 20, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-appcomplianceautomation/azure.mgmt.appcomplianceautomation.AppComplianceAutomationMgmtClient.yml

  • Line 20, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-appconfiguration/azure.mgmt.appconfiguration.v2022_03_01_preview.aio.AppConfigurationManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-appconfiguration/azure.mgmt.appconfiguration.v2022_03_01_preview.AppConfigurationManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-appconfiguration/azure.mgmt.appconfiguration.v2022_05_01.aio.AppConfigurationManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-appconfiguration/azure.mgmt.appconfiguration.v2022_05_01.AppConfigurationManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-appconfiguration/azure.mgmt.appconfiguration.v2023_03_01.aio.AppConfigurationManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-appconfiguration/azure.mgmt.appconfiguration.v2023_03_01.AppConfigurationManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-appcontainers/azure.mgmt.appcontainers.aio.ContainerAppsAPIClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-appcontainers/azure.mgmt.appcontainers.ContainerAppsAPIClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2015_05_01.aio.ApplicationInsightsManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2015_05_01.ApplicationInsightsManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2017_10_01.aio.ApplicationInsightsManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2017_10_01.ApplicationInsightsManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2018_05_01_preview.aio.ApplicationInsightsManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2018_05_01_preview.ApplicationInsightsManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2018_06_17_preview.aio.ApplicationInsightsManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2018_06_17_preview.ApplicationInsightsManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2019_10_17_preview.aio.ApplicationInsightsManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2019_10_17_preview.ApplicationInsightsManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2020_02_02_preview.aio.ApplicationInsightsManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2020_02_02_preview.ApplicationInsightsManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

docs-ref-autogen/azure-mgmt-applicationinsights/azure.mgmt.applicationinsights.v2020_02_02.aio.ApplicationInsightsManagementClient.yml

  • Line 25, Column 19: [Error: yaml-syntax-error - See documentation] While scanning for the next token, found character that cannot start any token.

This comment lists only the first 25 errors (including error/warning/suggestion) in the pull request.
For more details, please refer to the build report.

Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.

For any questions, please:

Copy link
Contributor

@nickwalkmsft nickwalkmsft left a comment

Choose a reason for hiding this comment

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

@mimisasouvanh A couple of comments, prep for Thursday's call about these proposals.

@@ -32,7 +32,7 @@ constructor:
description: 'URL to use for credential authentication with AAD. Its value could
be

"[https://management.azure.com](https://management.azure.com)", "[https://management.chinacloudapi.cn](https://management.chinacloudapi.cn)"
"`https://management.azure.com`", "[https://management.chinacloudapi.cn](https://management.chinacloudapi.cn)"
Copy link
Contributor

@nickwalkmsft nickwalkmsft Aug 6, 2024

Choose a reason for hiding this comment

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

These proposals (backtick wrapping and zapping management.azure.com links specifically) are drowning out any potentially interesting ones, can they be disabled and the tool rerun to see what the output looks like?

  • These URLs are not actually links in the source, I believe the docs translator tool detects URLs in description fields and renders them as markdown links. For this small set of URLs that appears frequently, if the link-fixer is just going to remove them (and why is it only removing management.azure.com and not the others?), I think we'd be better off just not putting them in. Maybe we can detect and skip in the translator.
  • Wrapping of URLs in backticks might be something we can do in the translator as well, at least for description fields (I don't think they get detected elsewhere, which is why they aren't Markdown links in fields like syntax and defaultvalue). The convention in the source appears to be to put them in double-quotes instead; having both together looks kind of funky and sort of defeats the point I think.

(Link to relevant translator source for posterity)

Copy link
Contributor

Choose a reason for hiding this comment

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

Looping in @junshi356 for opinions/input on py2docfx.

Jun, the context here is that we are looking into running the automated link-checker on ref repos. We're aware that any changes committed here would be eliminated with the next pipeline run, this is just an experiment at this point.

Here in the python repo we see many instances of a couple of the same items (listed above). Would these be feasible changes in py2docfx?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Hi, @nickwalkmsft sorry for the delay, the github notification didn't reach my MSFT mail. All API yaml documents in Python reference repos are purged then added again in each of the pipeline execution, so manual changes will be overwritten as long as the converter or the source package isn't updated. I think it's the right way to add the fix into py2docfx converter to make it persistent and valid for future documents.

@@ -8,7 +8,7 @@ inheritances:
summary: Azure API Center Resource Provider.
constructor:
syntax: 'ApiCenterMgmtClient(credential: TokenCredential, subscription_id: str,
base_url: str = ''https://management.azure.com'', **kwargs: Any)'
base_url: str = ''`https://management.azure.com`'', **kwargs: Any)'
Copy link
Contributor

Choose a reason for hiding this comment

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

syntax gets rendered to code blocks, we don't want anything modified in these.

@@ -48,7 +48,8 @@ variables:
- description: 'Specifies the tags that are assigned to the virtual machine. For more
information

about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md).'
about using tags, see [Using tags to organize your Azure resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags).'
Copy link
Contributor

Choose a reason for hiding this comment

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

MD fix

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.

3 participants