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

TestRoundtrip_devopsinfrastructure #29665

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

welovej
Copy link
Member

@welovej welovej commented Jul 2, 2024

Choose a PR Template

Switch to "Preview" on this description then select one of the choices below.

Click here to open a PR for a Data Plane API.

Click here to open a PR for a Control Plane (ARM) API.

Copy link

openapi-pipeline-app bot commented Jul 2, 2024

Next Steps to Merge

Next steps that must be taken to merge this PR:
  • ❌ This is the public specs repo main branch which is not intended for iterative development.
    You must acknowledge that you understand that after this PR is merged, you won't be able to stop your changes from being published to Azure customers.
    If this is what you intend, add PublishToCustomers label to your PR.
    Otherwise, retarget this PR onto a feature branch, i.e. with prefix release- (see aka.ms/azsdk/api-versions#release--branches).
  • ❌ This PR has at least one change violating Azure versioning policy (label: VersioningReviewRequired).
    To unblock this PR, either a) introduce a new API version with these changes instead of modifying an existing API version, or b) follow the process at aka.ms/brch.
  • ❌ The required check named Swagger PrettierCheck has failed. Refer to the check in the PR's 'Checks' tab for details on how to fix it and consult the aka.ms/ci-fix guide

Copy link

openapi-pipeline-app bot commented Jul 2, 2024

Swagger Validation Report

️❌BreakingChange: 17 Errors, 1 Warnings failed [Detail]
Compared specs (v0.10.12) new version base version
devopsinfrastructure.json 2024-04-04-preview(9ee4cd9) 2024-04-04-preview(main)
Rule Message
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'AgentProfileUpdate' removed or renamed?
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L618:3
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L618:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'AutomaticResourcePredictionsProfileUpdate' removed or renamed?
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L618:3
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L618:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'ManualResourcePredictionsProfileUpdate' removed or renamed?
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L618:3
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L618:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PoolUpdate' removed or renamed?
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L618:3
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L618:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PoolUpdateProperties' removed or renamed?
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L618:3
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L618:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'ResourcePredictionsProfileUpdate' removed or renamed?
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L618:3
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L618:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'StatefulUpdate' removed or renamed?
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L618:3
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L618:3
1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'StatelessAgentProfileUpdate' removed or renamed?
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L618:3
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L618:3
1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L868:9
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L906:9
1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L463:13
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L463:13
1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L1056:9
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L1235:9
1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L1138:9
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L1260:9
1017 - ReferenceRedirection The '$ref' property points to different models in the old and new versions.
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L631:9
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L653:9
1025 - RequiredStatusChange The 'required' status changed from the old version('False') to the new version('True').
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L1122:7
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L1244:7
1034 - AddedRequiredProperty The new version lists new non-read-only properties as required: 'maximumConcurrency, organizationProfile, agentProfile, fabricProfile, devCenterProjectResourceId'. These properties were not listed as required in the old version.
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L1056:9
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L1235:9
1034 - AddedRequiredProperty The new version lists new non-read-only properties as required: 'location'. These properties were not listed as required in the old version.
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L1055:7
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L1223:7
1034 - AddedRequiredProperty The new version lists new non-read-only properties as required: 'location'. These properties were not listed as required in the old version.
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L463:13
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L463:13
⚠️ 1032 - DifferentAllOf The new version has a different 'allOf' property than the previous one.
New: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L463:13
Old: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L463:13
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️❌LintDiff: 6 Errors, 0 Warnings failed [Detail]
Compared specs (v2.2.2) new version base version
package-preview-2024-04 package-preview-2024-04(9ee4cd9) package-preview-2024-04(main)

[must fix]The following errors/warnings are introduced by current PR:

Rule Message Related RPC [For API reviewers]
PatchBodyParametersSchema Properties of a PATCH request body must not be required, property:maximumConcurrency.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L463
RPC-Patch-V1-10
PatchBodyParametersSchema Properties of a PATCH request body must not be required, property:organizationProfile.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L463
RPC-Patch-V1-10
PatchBodyParametersSchema Properties of a PATCH request body must not be required, property:agentProfile.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L463
RPC-Patch-V1-10
PatchBodyParametersSchema Properties of a PATCH request body must not be required, property:fabricProfile.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L463
RPC-Patch-V1-10
PatchBodyParametersSchema Properties of a PATCH request body must not be required, property:devCenterProjectResourceId.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L463
RPC-Patch-V1-10
PatchBodyParametersSchema Properties of a PATCH request body must not be required, property:location.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L463
RPC-Patch-V1-10


The following errors/warnings exist before current PR submission:

Rule Message
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L346
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L400
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L406
UnSupportedPatchProperties Mark the property 'properties.provisioningState', specified in the patch operation body, as readOnly or immutable. You could also choose to remove it from the request payload of the Patch operation. This property is not patchable.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L458
PatchBodyParametersSchema Properties of a PATCH request body must not be required, property:type.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L463
PatchBodyParametersSchema Properties of a PATCH request body must not be required, property:kind.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L463
ProvisioningStateMustBeReadOnly provisioningState property must be set to readOnly.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L471
⚠️ ListInOperationName Since operation response has model definition in array type, it should be of the form '_list'.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L145
⚠️ GetInOperationName 'GET' operation 'SubscriptionUsages_Usages' should use method name 'Get' or Method name start with 'List'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L146
⚠️ MissingSegmentsInNestedResourceListOperation A nested resource type's List operation must include all the parent segments in its api path.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L225
⚠️ LocationMustHaveXmsMutability Property location must have 'x-ms-mutability':['read', 'create'] extension defined.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L1466
⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
Location: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L1771
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️❌ModelValidation: 1 Errors, 0 Warnings failed [Detail]
Rule Message
OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: location
Url: Microsoft.DevOpsInfrastructure/preview/2024-04-04-preview/devopsinfrastructure.json#L1052:13
ExampleUrl: preview/2024-04-04-preview/examples/UpdatePool.json#L9:19
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️Automated merging requirements met succeeded [Detail] [Expand]
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented Jul 2, 2024

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
️⚠️ azure-sdk-for-python warning [Detail]
    For more instructions, please refer to the FAQ .
  • ⚠️Warning in generating from 944090e. SDK Automation 14.0.0
    command	sh scripts/automation_init.sh ../azure-sdk-for-python_tmp/initInput.json ../azure-sdk-for-python_tmp/initOutput.json
    cmderr	[automation_init.sh] W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/azure-cli.list:1 and /etc/apt/sources.list.d/azure-cli.sources:1
    cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
    cmderr	[automation_init.sh] npm notice
    cmderr	[automation_init.sh] npm notice New minor version of npm available! 10.7.0 -> 10.8.2
    cmderr	[automation_init.sh] npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.2
    cmderr	[automation_init.sh] npm notice To update run: npm install -g [email protected]
    cmderr	[automation_init.sh] npm notice
    command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
  • ️✔️azure-mgmt-devopsinfrastructure [Preview SDK Changes] Breaking Change Detected
    info	[Changelog] ### Features Added
    info	[Changelog]
    info	[Changelog]   - Added operation SubscriptionUsagesOperations.usages
    info	[Changelog]
    info	[Changelog] ### Breaking Changes
    info	[Changelog]
    info	[Changelog]   - Model Quota has a new required parameter current_value
    info	[Changelog]   - Model Quota has a new required parameter limit
    info	[Changelog]   - Model Quota has a new required parameter unit
    info	[Changelog]   - Model Quota no longer has parameter name
    info	[Changelog]   - Model Quota no longer has parameter properties
    info	[Changelog]   - Model Quota no longer has parameter system_data
    info	[Changelog]   - Model Quota no longer has parameter type
    info	[Changelog]   - Parameter id of model Quota is now required
    info	[Changelog]   - Removed operation SubscriptionUsagesOperations.list_by_location
    Present SDK breaking changes suppressions
    No suppression file added.
    Absent SDK breaking changes suppressions
    - Model Quota has a new required parameter current_value
    - Model Quota has a new required parameter limit
    - Model Quota has a new required parameter unit
    - Model Quota no longer has parameter name
    - Model Quota no longer has parameter properties
    - Model Quota no longer has parameter system_data
    - Model Quota no longer has parameter type
    - Parameter id of model Quota is now required
    - Removed operation SubscriptionUsagesOperations.list_by_location
    Parse Suppression File Errors
    No suppression file added.
    Please refer to the guidance for suppressing SDK breaking changes.
️️✔️ azure-sdk-for-java succeeded [Detail] [Expand]
    For more instructions, please refer to the FAQ .
  • ️✔️Succeeded in generating from 944090e. SDK Automation 14.0.0
    command	./eng/automation/init.sh ../azure-sdk-for-java_tmp/initInput.json ../azure-sdk-for-java_tmp/initOutput.json
    command	./eng/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    command	./eng/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
  • ️✔️azure-resourcemanager-devopsinfrastructure [Preview SDK Changes]
    info	[Changelog]
  • ️✔️azure-resourcemanager-devopsinfrastructure [Preview SDK Changes]
    info	[Changelog]
️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    For more instructions, please refer to the FAQ .
  • ️✔️Succeeded in generating from 944090e. SDK Automation 14.0.0
    command	sh ./eng/scripts/automation_init.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
    warn		Warning: cannot find emitter config for azure-sdk-for-go in tspconfig.yaml for typespec project specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/tspconfig.yaml. This SDK will be skipped from the generation for this project. Please add the right emitter config in the 'tspconfig.yaml' file. The example project can be found at https://github.com/Azure/azure-rest-api-specs/blob/main/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml.
    command	generator automation-v2 ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
  • ️✔️sdk/resourcemanager/devopsinfrastructure/armdevopsinfrastructure [Preview SDK Changes]
️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
    For more instructions, please refer to the FAQ .
  • ️✔️Succeeded in generating from 944090e. SDK Automation 14.0.0
    command	sh .scripts/automation_init.sh ../azure-sdk-for-js_tmp/initInput.json ../azure-sdk-for-js_tmp/initOutput.json
    warn	Warning: File azure-sdk-for-js_tmp/initOutput.json not found to read. Please re-run the pipeline if the error is transitient error or report this issue through https://aka.ms/azsdk/support/specreview-channel.
    command	sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
    warn		Warning: cannot find emitter config for azure-sdk-for-js in tspconfig.yaml for typespec project specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/tspconfig.yaml. This SDK will be skipped from the generation for this project. Please add the right emitter config in the 'tspconfig.yaml' file. The example project can be found at https://github.com/Azure/azure-rest-api-specs/blob/main/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml.
  • ️✔️@azure/arm-devopsinfrastructure [Preview SDK Changes]
️❌ azure-resource-manager-schemas failed [Detail]
    For more instructions, please refer to the FAQ .
  • Code Generator Failed in generating from 944090e. Schema Automation 14.0.0
    command	.sdkauto/initScript.sh ../azure-resource-manager-schemas_tmp/initInput.json ../azure-resource-manager-schemas_tmp/initOutput.json
    cmderr	[initScript.sh] Submodule 'bicep-types-az' (https://github.com/Azure/bicep-types-az) registered for path 'bicep-types-az'
    cmderr	[initScript.sh] Cloning into '/mnt/vss/_work/1/s/azure-resource-manager-schemas/bicep-types-az'...
    cmderr	[initScript.sh] Submodule 'bicep-types' (https://github.com/Azure/bicep-types) registered for path 'bicep-types-az/bicep-types'
    cmderr	[initScript.sh] Cloning into '/mnt/vss/_work/1/s/azure-resource-manager-schemas/bicep-types-az/bicep-types'...
    cmderr	[initScript.sh] npm notice
    cmderr	[initScript.sh] npm notice New minor version of npm available! 10.7.0 -> 10.8.2
    cmderr	[initScript.sh] npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.2
    cmderr	[initScript.sh] npm notice To update run: npm install -g [email protected]
    cmderr	[initScript.sh] npm notice
    error	Script return with result [failed] code [1] signal [null] cwd [azure-resource-manager-schemas]: .sdkauto/initScript.sh
    warn	Warning: File azure-resource-manager-schemas_tmp/initOutput.json not found to read. Please re-run the pipeline if the error is transitient error or report this issue through https://aka.ms/azsdk/support/specreview-channel.
    command	.sdkauto/generateScript.sh ../azure-resource-manager-schemas_tmp/generateInput.json ../azure-resource-manager-schemas_tmp/generateOutput.json
    cmderr	[generateScript.sh] /mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:500
    cmderr	[generateScript.sh]     return new TSError(diagnosticText, diagnosticCodes)
    cmderr	[generateScript.sh]            ^
    cmderr	[generateScript.sh] TSError: ⨯ Unable to compile TypeScript:
    cmderr	[generateScript.sh] cmd/generateall.ts(6,20): error TS2307: Cannot find module 'colors' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(10,19): error TS2307: Cannot find module 'yargs' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(11,18): error TS2307: Cannot find module 'path' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(13,35): error TS2307: Cannot find module 'fs' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(14,23): error TS2307: Cannot find module 'strip-ansi' or its corresponding type declarations.
    cmderr	[generateScript.sh] cmd/generateall.ts(42,9): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(53,9): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(69,67): error TS7006: Parameter 'x' implicitly has an 'any' type.
    cmderr	[generateScript.sh] cmd/generateall.ts(70,49): error TS7006: Parameter 'f' implicitly has an 'any' type.
    cmderr	[generateScript.sh] cmd/generateall.ts(94,21): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(105,21): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(106,21): error TS2584: Cannot find name 'console'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.
    cmderr	[generateScript.sh] cmd/generateall.ts(157,13): error TS2591: Cannot find name 'process'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.
    cmderr	[generateScript.sh]     at createTSError (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:500:12)
    cmderr	[generateScript.sh]     at reportTSError (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:504:19)
    cmderr	[generateScript.sh]     at getOutput (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:739:36)
    cmderr	[generateScript.sh]     at Object.compile (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:955:32)
    cmderr	[generateScript.sh]     at Module.m._compile (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:1043:43)
    cmderr	[generateScript.sh]     at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    cmderr	[generateScript.sh]     at Object.require.extensions.<computed> [as .ts] (/mnt/vss/_work/1/a/unified-pipeline-runtime/common/temp/node_modules/.pnpm/[email protected][email protected]/node_modules/ts-node/src/index.ts:1046:12)
    cmderr	[generateScript.sh]     at Module.load (node:internal/modules/cjs/loader:1203:32)
    cmderr	[generateScript.sh]     at Function.Module._load (node:internal/modules/cjs/loader:1019:12)
    cmderr	[generateScript.sh]     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
    error	Script return with result [failed] code [1] signal [null] cwd [azure-resource-manager-schemas]: .sdkauto/generateScript.sh
    warn	Warning: Package processing is skipped as the SDK generation fails. Please look into the above generation errors or report this issue through https://aka.ms/azsdk/support/specreview-channel.
    warn		Warning: cannot find emitter config for azure-resource-manager-schemas in tspconfig.yaml for typespec project specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/tspconfig.yaml. This SDK will be skipped from the generation for this project. Please add the right emitter config in the 'tspconfig.yaml' file. The example project can be found at https://github.com/Azure/azure-rest-api-specs/blob/main/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml.
    warn		Warning: cannot find emitter config for azure-resource-manager-schemas in tspconfig.yaml for typespec project specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/tspconfig.yaml. This SDK will be skipped from the generation for this project. Please add the right emitter config in the 'tspconfig.yaml' file. The example project can be found at https://github.com/Azure/azure-rest-api-specs/blob/main/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml.
️️✔️ azure-powershell succeeded [Detail] [Expand]
    For more instructions, please refer to the FAQ .
  • ️✔️Succeeded in generating from 944090e. SDK Automation 14.0.0
    command	sh ./tools/SwaggerCI/init.sh ../azure-powershell_tmp/initInput.json ../azure-powershell_tmp/initOutput.json
    warn		Warning: cannot find emitter config for azure-powershell in tspconfig.yaml for typespec project specification/devopsinfrastructure/Microsoft.DevOpsInfrastructure.Management/tspconfig.yaml. This SDK will be skipped from the generation for this project. Please add the right emitter config in the 'tspconfig.yaml' file. The example project can be found at https://github.com/Azure/azure-rest-api-specs/blob/main/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml.
    command	pwsh ./tools/SwaggerCI/psci.ps1 ../azure-powershell_tmp/generateInput.json ../azure-powershell_tmp/generateOutput.json
  • ️✔️Az.devopsinfrastructure.DefaultTag [Preview SDK Changes]
️❌ azure-sdk-for-net-track2 failed [Detail]
    For more instructions, please refer to the FAQ .
  • Failed in generating from 944090e. SDK Automation 14.0.0
    command	pwsh ./eng/scripts/Automation-Sdk-Init.ps1 ../azure-sdk-for-net_tmp/initInput.json ../azure-sdk-for-net_tmp/initOutput.json
    warn		Warning: azure-sdk-for-net-track2 cannot be found in specification/devopsinfrastructure/resource-manager/readme.md. This SDK will be skipped from SDK generation. Please add the right config to the readme file according to this guidance https://github.com/Azure/azure-rest-api-specs/blob/main/documentation/code-gen/configure-go-sdk.md#swagger-to-sdk.
    command	pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 ../azure-sdk-for-net_tmp/generateInput.json ../azure-sdk-for-net_tmp/generateOutput.json
    cmderr	[Invoke-GenerateAndBuildV2.ps1] npm notice
    cmderr	[Invoke-GenerateAndBuildV2.ps1] npm notice New minor version of npm available! 10.7.0 -> 10.8.2
    cmderr	[Invoke-GenerateAndBuildV2.ps1] npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.2
    cmderr	[Invoke-GenerateAndBuildV2.ps1] npm notice To update run: npm install -g [email protected]
    cmderr	[Invoke-GenerateAndBuildV2.ps1] npm notice
    cmderr	[Invoke-GenerateAndBuildV2.ps1] GeneratePackage: /mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/Invoke-GenerateAndBuildV2.ps1:144
    cmderr	[Invoke-GenerateAndBuildV2.ps1] Line |
    cmderr	[Invoke-GenerateAndBuildV2.ps1]  144 |              GeneratePackage `
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      |              ~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1]      | Failed to build project. exit code: False
  • Azure.ResourceManager.DevOpsInfrastructure [Preview SDK Changes]
    info	[Changelog]
Posted by Swagger Pipeline | How to fix these errors?

@raych1
Copy link
Member

raych1 commented Jul 4, 2024

/azp run

Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@welovej welovej changed the title create tspconfig.yaml TestRoundtrip_devopsinfrastructure Jul 9, 2024
Copy link

PR validation pipeline can not start as the pull request is not merged or mergeable - most likely it has merge conflicts.

Copy link

PR validation pipeline can not start as the pull request is not merged or mergeable - most likely it has merge conflicts.

Copy link

PR validation pipeline can not start as the pull request is not merged or mergeable - most likely it has merge conflicts.

Copy link

PR validation pipeline can not start as the pull request is not merged or mergeable - most likely it has merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BreakingChange-Python-Sdk resource-manager RPaaS TypeSpec Authored with TypeSpec VersioningReviewRequired <valid label in PR review process>add this label when versioning review is required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants