Skip to content

[ACS][JobRouter] GA Version#25763

Merged
anuchandy merged 118 commits intoAzure:mainfrom
sarkar-rajarshi:rsarkar/jobrouter/ga-version-typespec
Nov 8, 2023
Merged

[ACS][JobRouter] GA Version#25763
anuchandy merged 118 commits intoAzure:mainfrom
sarkar-rajarshi:rsarkar/jobrouter/ga-version-typespec

Conversation

@sarkar-rajarshi
Copy link
Copy Markdown
Member

@sarkar-rajarshi sarkar-rajarshi commented Sep 12, 2023

Data Plane API - Pull Request

API Info: The Basics

Most of the information about your service should be captured in the issue that serves as your API Spec engagement record.

  • Link to API Spec engagement record issue:

Is this review for (select one):

  • a private preview
  • a public preview
  • GA release

Change Scope

This section will help us focus on the specific parts of your API that are new or have been modified.
Please share a link to the design document for the new APIs, a link to the previous API Spec document (if applicable), and the root paths that have been updated.

  • Design Document:
  • Previous API Spec Doc:
  • Updated paths:

Viewing API changes

For convenient view of the API changes made by this PR, refer to the URLs provided in the table
in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.

Suppressing failures

If one or multiple validation error/warning suppression(s) is detected in your PR, please follow the
Swagger-Suppression-Process
to get approval.

❔Got questions? Need additional info?? We are here to help!

Contact us!

The Azure API Review Board is dedicated to helping you create amazing APIs. You can read about our mission and learn more about our process on our wiki.

Click here for links to tools, specs, guidelines & other good stuff

Tooling

Guidelines & Specifications

Helpful Links

@openapi-pipeline-app
Copy link
Copy Markdown

openapi-pipeline-app bot commented Sep 12, 2023

Next Steps to Merge

⌛ Please wait, next steps to merge this PR are being evaluated by automation. ⌛

@openapi-pipeline-app
Copy link
Copy Markdown

openapi-pipeline-app bot commented Sep 12, 2023

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
️⚠️Breaking Change(Cross-Version): 424 Warnings warning [Detail]
compared swaggers (via Oad v0.10.4)] new version base version
communicationservicejobrouter.json 2023-11-01(a396918) 2022-07-18-preview(main)

The following breaking changes are detected by comparison with the latest preview version:

Only 30 items are listed, please refer to log for more details.

Rule Message
⚠️ 1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/routing/jobs/{id}:complete' removed or restructured?
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L834:5
⚠️ 1005 - RemovedPath The new version is missing a path that was found in the old version. Was path '/routing/jobs/{id}:close' removed or restructured?
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L890:5
⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CancelJobRequest' removed or renamed?
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2136:3
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1744:3
⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CloseJobRequest' removed or renamed?
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2136:3
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1744:3
⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'CompleteJobRequest' removed or renamed?
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2136:3
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1744:3
⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'DeclineJobOfferRequest' removed or renamed?
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2136:3
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1744:3
⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'Oauth2ClientCredential' removed or renamed?
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2136:3
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1744:3
⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'ReclassifyJobRequest' removed or renamed?
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2136:3
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1744:3
⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'UnassignJobRequest' removed or renamed?
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2136:3
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1744:3
⚠️ 1007 - RemovedClientParameter The new version is missing a client parameter that was found in the old version. Was 'ApiVersionParameter' removed or renamed?
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L4488:3
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L3606:3
⚠️ 1007 - RemovedClientParameter The new version is missing a client parameter that was found in the old version. Was 'Endpoint' removed or renamed?
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L4488:3
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L3606:3
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouterAdministration_GetClassificationPolicy' to 'JobRouterAdministrationOperations_GetClassificationPolicy'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L85:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L72:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouterAdministration_UpsertClassificationPolicy' to 'JobRouterAdministrationOperations_UpsertClassificationPolicy'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L138:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L10:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouterAdministration_DeleteClassificationPolicy' to 'JobRouterAdministrationOperations_DeleteClassificationPolicy'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L229:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L113:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouterAdministration_ListClassificationPolicies' to 'JobRouterAdministrationOperations_ListClassificationPolicies'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L37:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L153:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouterAdministration_GetDistributionPolicy' to 'JobRouterAdministrationOperations_GetDistributionPolicy'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L318:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L262:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouterAdministration_UpsertDistributionPolicy' to 'JobRouterAdministrationOperations_UpsertDistributionPolicy'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L371:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L200:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouterAdministration_DeleteDistributionPolicy' to 'JobRouterAdministrationOperations_DeleteDistributionPolicy'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L462:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L303:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouterAdministration_ListDistributionPolicies' to 'JobRouterAdministrationOperations_ListDistributionPolicies'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L270:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L343:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouterAdministration_GetExceptionPolicy' to 'JobRouterAdministrationOperations_GetExceptionPolicy'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L551:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L452:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouterAdministration_UpsertExceptionPolicy' to 'JobRouterAdministrationOperations_UpsertExceptionPolicy'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L604:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L390:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouterAdministration_DeleteExceptionPolicy' to 'JobRouterAdministrationOperations_DeleteExceptionPolicy'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L695:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L493:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouterAdministration_ListExceptionPolicies' to 'JobRouterAdministrationOperations_ListExceptionPolicies'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L503:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L533:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_GetJob' to 'JobRouterOperations_GetJob'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L921:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L645:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_UpsertJob' to 'JobRouterOperations_UpsertJob'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L974:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L580:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_DeleteJob' to 'JobRouterOperations_DeleteJob'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L1068:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L686:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_ReclassifyJobAction' to 'JobRouterOperations_ReclassifyJob'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L1109:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L726:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_CancelJobAction' to 'JobRouterOperations_CancelJob'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L1162:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L780:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_ListJobs' to 'JobRouterOperations_ListJobs'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L736:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L953:7
⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_GetInQueuePosition' to 'JobRouterOperations_GetInQueuePosition'. This will impact generated code.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L1398:7
Old: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1059:7
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️LintDiff: 111 Warnings warning [Detail]
compared tags (via openapi-validator v2.1.6) new version base version
package-jobrouter-2023-11-01 package-jobrouter-2023-11-01(a396918) default(main)

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

Only 30 items are listed, please refer to log for more details.

Rule Message Related RPC [For API reviewers]
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L37
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L85
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L93
⚠️ SchemaTypeAndFormat Schema with type: string has unrecognized format: eTag
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L104
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L138
⚠️ OperationId OperationId for patch method should contain both 'Create' and 'Update'
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L139
⚠️ PatchInOperationName 'PATCH' operation 'JobRouterAdministrationOperations_UpsertClassificationPolicy' should use method name 'Update'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L139
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L149
⚠️ SchemaTypeAndFormat Schema with type: string has unrecognized format: eTag
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L175
⚠️ SchemaTypeAndFormat Schema with type: string has unrecognized format: eTag
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L192
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L229
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L237
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L270
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L318
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L326
⚠️ SchemaTypeAndFormat Schema with type: string has unrecognized format: eTag
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L337
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L371
⚠️ OperationId OperationId for patch method should contain both 'Create' and 'Update'
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L372
⚠️ PatchInOperationName 'PATCH' operation 'JobRouterAdministrationOperations_UpsertDistributionPolicy' should use method name 'Update'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L372
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L382
⚠️ SchemaTypeAndFormat Schema with type: string has unrecognized format: eTag
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L408
⚠️ SchemaTypeAndFormat Schema with type: string has unrecognized format: eTag
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L425
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L462
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L470
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L503
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L551
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L559
⚠️ SchemaTypeAndFormat Schema with type: string has unrecognized format: eTag
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L570
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L604
⚠️ OperationId OperationId for patch method should contain both 'Create' and 'Update'
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L605


The following errors/warnings exist before current PR submission:

Rule Message
⚠️ OperationId OperationId for patch method should contain both 'Create' and 'Update'
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L1885
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2033
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2084
⚠️ 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: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2530
⚠️ 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: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L3908
⚠️ 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: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L4008
⚠️ 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: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L4184
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️❌SemanticValidation: 3 Errors, 0 Warnings failed [Detail]
Rule Message
DISCRIMINATOR_NOT_REQUIRED Discriminator must be a required property.
JsonUrl: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L3824:33
DISCRIMINATOR_NOT_REQUIRED Discriminator must be a required property.
JsonUrl: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2545:39
DISCRIMINATOR_NOT_REQUIRED Discriminator must be a required property.
JsonUrl: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2869:38
️️✔️PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️️✔️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?

@openapi-pipeline-app
Copy link
Copy Markdown

openapi-pipeline-app bot commented Sep 12, 2023

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
️️✔️SDK Breaking Change Tracking succeeded [Detail] [Expand]

Breaking Changes Tracking


️❌ azure-sdk-for-net-track2 failed [Detail]
  • Failed [Logs]Release - Generate from de1ef06. 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		specification/communication/data-plane/JobRouter/readme.md skipped due to azure-sdk-for-net-track2 not found in 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] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/Invoke-GenerateAndBuildV2.ps1:131
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 131 | �[0m               �[36;1mGeneratePackage `�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m               ~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to build sdk. exit code: False
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/Invoke-GenerateAndBuildV2.ps1:131
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 131 | �[0m               �[36;1mGeneratePackage `�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m               ~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to packe sdk. exit code: False
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGet-ChildItem: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/automation/GenerateAndBuildLib.ps1:807
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 807 | �[0m … rtifacts += �[36;1mGet-ChildItem $artifactsPath -Filter *.nupkg -exclude *.s�[0m …
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mCannot find path
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m'/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/packages/Debug/' because
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1mit does not exist.
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1mGeneratePackage: �[0m/mnt/vss/_work/1/s/azure-sdk-for-net/eng/scripts/Invoke-GenerateAndBuildV2.ps1:131
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1mLine |
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m 131 | �[0m               �[36;1mGeneratePackage `�[0m
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[36;1m     | �[31;1m               ~~~~~~~~~~~~~~~~~
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[31;1m�[36;1m     | �[31;1mFailed to generate sdk artifact
    cmderr	[Invoke-GenerateAndBuildV2.ps1] �[0m
  • Azure.Communication.JobRouter [View full logs]  [Release SDK Changes]
    info	[Changelog]
️❌ azure-sdk-for-python failed [Detail]
  • Code Generator Failed [Logs]Release - Generate from de1ef06. 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] WARNING: azure-devtools 1.2.1 does not provide the extra 'ci-tools'
    cmderr	[automation_init.sh] WARNING: azure-devtools 1.2.1 does not provide the extra 'ci-tools'
    cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
    warn		specification/communication/data-plane/JobRouter/readme.md skipped due to azure-sdk-for-python not found in swagger-to-sdk
    command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
    cmderr	[automation_generate.sh]  notice
    cmderr	[automation_generate.sh] npm notice New major version of npm available! 9.8.1 -> 10.2.3
    cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.3>
    cmderr	[automation_generate.sh] npm notice Run `npm install -g npm@10.2.3` to update!
    cmderr	[automation_generate.sh] npm notice
    cmdout	[automation_generate.sh] [Autorest]/mnt/vss/_work/1/s/azure-sdk-for-python_tmp/venv-sdk/auto_temp.json does not exist!!!Error happened during codegen
    error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-python]: sh scripts/automation_generate.sh
    warn	Skip package processing as generation is failed
️❌ azure-sdk-for-java failed [Detail]
  • Pipeline Framework Failed [Logs]Release - Generate from de1ef06. SDK Automation 14.0.0
    command	./eng/mgmt/automation/init.sh ../azure-sdk-for-java_tmp/initInput.json ../azure-sdk-for-java_tmp/initOutput.json
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.3.1
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    cmderr	[init.sh] [notice] A new release of pip is available: 23.0.1 -> 23.3.1
    cmderr	[init.sh] [notice] To update, run: pip install --upgrade pip
    warn		specification/communication/data-plane/JobRouter/readme.md skipped due to azure-sdk-for-java not found in swagger-to-sdk
    command	./eng/mgmt/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    cmderr	[generate.py] �[31;1mGet-PackageDir: �[0m/mnt/vss/_work/1/s/azure-sdk-for-java/eng/common/scripts/TypeSpec-Project-Process.ps1:33
    cmderr	[generate.py] �[36;1mLine |
    cmderr	[generate.py] �[36;1m  33 | �[0m   $packageDir = �[36;1mGet-PackageDir $tspConfig�[0m
    cmderr	[generate.py] �[36;1m     | �[31;1m                 ~~~~~~~~~~~~~~~~~~~~~~~~~
    cmderr	[generate.py] �[31;1m�[36;1m     | �[31;1mMissing package-dir in @azure-tools/typespec-java options of
    cmderr	[generate.py] �[36;1m     | �[31;1mtspconfig.yaml. Please refer to
    cmderr	[generate.py] �[36;1m     | �[31;1mhttps://github.com/Azure/azure-rest-api-specs/blob/main/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml for the right schema.
    cmderr	[generate.py] �[0m
    error	Fatal error: The "path" argument must be of type string. Received undefined
    The "path" argument must be of type string. Received undefined
    TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
        at new NodeError (node:internal/errors:387:5)
        at validateString (node:internal/validators:162:11)
        at Object.basename (node:path:1309:5)
        at Object.exports.getPackageData (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/types/PackageData.js:38:82)
        at /mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflow.js:210:194
        at Array.map (<anonymous>)
        at workflowHandleReadmeMdOrTypeSpecProject (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflow.js:210:164)
        at processTicksAndRejections (node:internal/process/task_queues:96:5)
        at async Object.exports.workflowMain (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflow.js:98:13)
        at async Object.exports.sdkAutoMain (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/entrypoint.js:211:13)
        at async /mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/cli/cli.js:20:18
️❌ azure-sdk-for-js failed [Detail]
  • Failed [Logs]Release - Generate from de1ef06. 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	File azure-sdk-for-js_tmp/initOutput.json not found to read
    warn		specification/communication/data-plane/JobRouter/readme.md skipped due to azure-sdk-for-js not found in swagger-to-sdk
    command	sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
    cmderr	[automation_generate.sh] [ERROR] Error:
    cmderr	[automation_generate.sh] [ERROR] An error occurred while run build for typespec project: "specification/communication/Communication.JobRouter":
    cmderr	[automation_generate.sh] [ERROR] Err: Error: Command failed: rush build -t @azure/communication-job-router
    cmderr	[automation_generate.sh] [ERROR] Stderr: "null"
    cmderr	[automation_generate.sh] [ERROR] Stdout: "null"
    cmderr	[automation_generate.sh] [ERROR] ErrorStack: "Error: Command failed: rush build -t @azure/communication-job-router
    cmderr	[automation_generate.sh] [ERROR]     at checkExecSyncError (node:child_process:885:11)
    cmderr	[automation_generate.sh] [ERROR]     at Object.execSync (node:child_process:957:15)
    cmderr	[automation_generate.sh] [ERROR]     at Object.<anonymous> (/home/cloudtest/.nvm/versions/node/v18.15.0/lib/node_modules/@azure-tools/js-sdk-release-tools/dist/llc/generateRLCInPipeline/generateRLCInPipeline.js:209:29)
    cmderr	[automation_generate.sh] [ERROR]     at Generator.next (<anonymous>)
    cmderr	[automation_generate.sh] [ERROR]     at fulfilled (/home/cloudtest/.nvm/versions/node/v18.15.0/lib/node_modules/@azure-tools/js-sdk-release-tools/node_modules/tslib/tslib.js:112:62)
    cmderr	[automation_generate.sh] [ERROR]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)"
  • @azure/communication-job-router [View full logs]  [Release SDK Changes]
    info	[Changelog]
    error	breakingChangeTracking is enabled, but version or changelogItem is not found in output.
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link
Copy Markdown

openapi-pipeline-app bot commented Sep 12, 2023

Generated ApiView

Language Package Name ApiView Link
Swagger communication-data-plane-JobRouter https://apiview.dev/Assemblies/Review/98c61714f4d242bfa86e028298776d9c

@openapi-pipeline-app
Copy link
Copy Markdown

Swagger Validation Report

️🔄BreakingChange inProgress [Detail]
️⌛Breaking Change(Cross-Version) pending [Detail]
️⌛CredScan pending [Detail]
️⌛LintDiff pending [Detail]
️⌛Avocado pending [Detail]
️⌛SwaggerAPIView pending [Detail]
️⌛TypeSpecAPIView pending [Detail]
️⌛ModelValidation pending [Detail]
️⌛SemanticValidation pending [Detail]
️⌛PoliCheck pending [Detail]
️🔄PrettierCheck inProgress [Detail]
️⌛SpellCheck pending [Detail]
️⌛Lint(RPaaS) pending [Detail]
️⌛PR Summary pending [Detail]
️⌛Automated merging requirements met pending [Detail]
Posted by Swagger Pipeline | How to fix these errors?

@openapi-pipeline-app
Copy link
Copy Markdown

openapi-pipeline-app bot commented Sep 20, 2023

Next Steps to Merge

✔️ All automated merging requirements have been met! Refer to step 4 in the PR workflow diagram (even if your PR is for data plane, not ARM).

Copy link
Copy Markdown
Member

@mikekistler mikekistler left a comment

Choose a reason for hiding this comment

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

I scrubbed through your TypeSpec and left a bunch of questions.

@sarkar-rajarshi sarkar-rajarshi force-pushed the rsarkar/jobrouter/ga-version-typespec branch from e1555a8 to cad19d6 Compare November 1, 2023 02:02
@mikeharder
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@mikeharder
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@mikeharder
Copy link
Copy Markdown
Member

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

Copy link
Copy Markdown
Member

@mikekistler mikekistler left a comment

Choose a reason for hiding this comment

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

Looking very good. I found one more round of minor improvements.

Copy link
Copy Markdown
Member

@mikekistler mikekistler left a comment

Choose a reason for hiding this comment

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

Looks good! 👍

Thanks for all the fixes! I found two more small things but I'll approve to avoid a re-review for these small changes.

sarkar-rajarshi and others added 2 commits November 8, 2023 11:01
Co-authored-by: Mike Kistler <mikekistler@microsoft.com>
Co-authored-by: Mike Kistler <mikekistler@microsoft.com>
@sarkar-rajarshi
Copy link
Copy Markdown
Member Author

@anuchandy this is ready to be merged

@anuchandy anuchandy merged commit de1ef06 into Azure:main Nov 8, 2023
@openapi-pipeline-app
Copy link
Copy Markdown

Swagger pipeline restarted successfully, please wait for status update in this comment.

partial-update: true
"@azure-tools/typespec-ts":
emitter-output-dir: "{js-sdk-folder}/sdk/{service-directory-name}/communication-job-router-rest"
package-dir: "communication-job-router"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think we should specify the emitter-output-dir here because we use the option package-dir. And it should be ${folder-name}-rest. See name convention here.

Could you update with below?

package-dir: "communication-job-router-rest"

zman-ms pushed a commit that referenced this pull request Jan 10, 2024
* jobrouter ga typespec initial commit

* add x-ms-example

* change unknown to object

* fix consumes for upsert routes

* fix naming validation error

* remove x-ms-examples

* unreferenced json file validation fix

* change to using unknown

* rename generated client to XXXXXRestClient

* test generating convenience methods

* add line

* rebased

* correctly represent uri

* try out standard operations for classification policy

* use standard ops wherever possible

* try placing route decorator at namespace level

* remove router decorator from namespace

* update tspconfig

* add conditional headers

* use azure core etag

* fix floats to doubles

* update typespec-python options + regenerate rest specs

* fix lint errors

* add examples

* ci fixes 2

* ci fixes 3

* remove reference to Azure.Core.Etag (throws lint error)

* review feedback

* added list query params

* try codegen without url scalar

* retry python emitter with url fix

* try specifying python output directory

* python emitter - change package-mode to azure-dataplane

* remove @example decorator

* remove redundant imports

* fix examples

* make ScheduleAndSuspendMode.ScheduleAt a required field

* uri scalar add

* clean up

* Update JS sdk config to azure-rest

* change JobMatchingMode polymorphic type

* rename client remove Rest

* rename acceptJob, declineJob to acceptJobOffer, declineJobOffer

* test internal decorator

* make all upsert methods internal

* specify python package version

* Make upsert methods internal

* make status selectors internal for python

* sdk feedback review items

* more review feedback items

* update examples

* Add partial-update for java

* try updating client.tsp to rename method for .NET

* make ExceptionAction.Id optional

* run prettier

* fix more examples

* minor doc update

* Update projected names and internal modifier

* Modify internal to only apply for java, csharp, python

* Update internal

* make upsert method visible for python

* modify enums for python

* revert

* sdk review comment 3

* Test generator without endpoint

* Revert change

* manually add empty response schemas in swagger because of #25605 (comment)

* add linter in tspconfig.yaml

* add to custom words

* doc updates

* fix nextlink lint error

* test changes in client.tsp for validation failures

* run cleanup

* Update java internal models

* Remove projectedName annotations

* more linter fixes

* exception action make id not readonly since needs to be serialized

* make methods for canceljon, complete job, close job and decline offer internal so as to not expose empty response objects

* update azure-tools/typespec-ts emitter options

* try update example for LintDiff errors

* set nextLink value to null

* Update unassignJob internal csharp

* move out assignmentId to path

* linter fixes

* Revert unassign job changes

* Add internal for unassign csharp

* use standard ResourceAction for all action except closeJob

* fix linters

* close job should always return 200

* fix linter errors

* Suppress violation ValidFormats in LintDiff

* test method rename

* try rename again

* try again

* try again

* try again

* set default values for min and maz concurrent offer

* set default value of bypass selectors

* try codegen removing @route decorator

* clean up @route decorator

* revert making unassign internal for csharp

* try renaming completeJob to completeJobInternal for csharp

* rename op cancel, close, complete, decline for csharp

* Add "where" clause to ValidFormats suppression

* redefine empty model differently

* fix spelling of primitive

* Suppress INVALID_TYPE caused by bug in ModelValidation
- #25381

* add default and change empty model representation

* Make unassign job internal

* linter fixes

* Update specification/communication/Communication.JobRouter/models.tsp

Co-authored-by: Mike Kistler <mikekistler@microsoft.com>

* Update specification/communication/Communication.JobRouter/models.tsp

Co-authored-by: Mike Kistler <mikekistler@microsoft.com>

* linter fixes

---------

Co-authored-by: Adam Tuck <adamtuck@microsoft.com>
Co-authored-by: Marc Ma <marcma@microsoft.com>
Co-authored-by: Charandeep Parisineti <cparisineti@microsoft.com>
Co-authored-by: williamzhao87 <williamzhao87@gmail.com>
Co-authored-by: Mike Harder <mharder@microsoft.com>
Co-authored-by: Mike Kistler <mikekistler@microsoft.com>
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.

[IC3 ACS CCaaP ] API Review