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

Batch 3 sdk gen test #3485

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Sdk gen batch tesing

ab9b785
Select commit
Loading
Failed to load commit list.
Open

Batch 3 sdk gen test #3485

Sdk gen batch tesing
ab9b785
Select commit
Loading
Failed to load commit list.
openapi-pipeline-app-test / SDK azure-sdk-for-java failed Aug 19, 2024 in 13m 30s

SDK azure-sdk-for-java failed

Details

    For more instructions, please refer to the FAQ .
  • Code Generator Failed in generating from a59e4ad. 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
    warn		Warning: azure-sdk-for-java cannot be found in specification/azurestackhci/resource-manager/Microsoft.AzureStackHCI/StackHCIVM/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	./eng/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    warn		Warning: azure-sdk-for-java cannot be found in specification/batch/data-plane/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	./eng/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    warn		Warning: azure-sdk-for-java cannot be found in specification/cognitiveservices/data-plane/AnomalyDetector/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.
    warn		Warning: azure-sdk-for-java cannot be found in specification/cognitiveservices/data-plane/AzureOpenAI/inference/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	./eng/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    warn	Warning: No file changes detected after the generation. Please refer to the generation errors to understand the reasons.
    warn	Warning: No package detected after generation. Please refer to the above logs to understand why the package hasn't been generated.
    warn		Warning: azure-sdk-for-java cannot be found in specification/cognitiveservices/data-plane/Language/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.
    warn		Warning: azure-sdk-for-java cannot be found in specification/cognitiveservices/data-plane/Language/preview/2024-05-15-preview/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.
    warn		Warning: cannot find emitter config for azure-sdk-for-java in tspconfig.yaml for typespec project specification/azurelargeinstance/AzureLargeInstance.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-sdk-for-java in tspconfig.yaml for typespec project specification/azurestackhci/AzureStackHCI.StackHCIVM.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-sdk-for-java in tspconfig.yaml for typespec project specification/azurestackhci/Operations.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	./eng/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    cmderr	[Java-Sdk-Automation] Diagnostics were reported during compilation. Use the `--debug` flag to see if there is warning diagnostic output.
    cmdout	[Java-Sdk-Automation] [ERROR] COMPILATION ERROR :
    cmdout	[Java-Sdk-Automation] [ERROR] /mnt/vss/_work/1/s/azure-sdk-for-java/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/FileProperties.java:[166,90] incompatible types: long cannot be converted to java.lang.String
    cmdout	[Java-Sdk-Automation] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project azure-compute-batch: Compilation failure
    cmdout	[Java-Sdk-Automation] [ERROR] /mnt/vss/_work/1/s/azure-sdk-for-java/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/FileProperties.java:[166,90] incompatible types: long cannot be converted to java.lang.String
    cmdout	[Java-Sdk-Automation] [ERROR]
    cmdout	[Java-Sdk-Automation] [ERROR] -> [Help 1]
    cmdout	[Java-Sdk-Automation] [ERROR]
    cmdout	[Java-Sdk-Automation] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    cmdout	[Java-Sdk-Automation] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    cmdout	[Java-Sdk-Automation] [ERROR]
    cmdout	[Java-Sdk-Automation] [ERROR] For more information about the errors and possible solutions, please read the following articles:
    cmdout	[Java-Sdk-Automation] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
    cmdout	[Java-Sdk-Automation] [ERROR]
    cmdout	[Java-Sdk-Automation] [ERROR] After correcting the problems, you can resume the build with the command
    cmdout	[Java-Sdk-Automation] [ERROR]   mvn <args> -rf :azure-compute-batch
    cmdout	[Java-Sdk-Automation] 2024-08-19 06:37:32 [ERROR] [COMPILE] Maven build fail.
    cmdout	[Java-Sdk-Automation] 2024-08-19 06:37:32 [ERROR] One reason of the compilation failure is that the existing code customization in SDK repository being incompatible with the class generated from updated TypeSpec source. In such case, you can ignore the failure, and fix the customization in SDK repository. You can inquire in "Language - Java" Teams channel. Please include the link of this Pull Request in the query.
    warn		Warning: cannot find emitter config for azure-sdk-for-java in tspconfig.yaml for typespec project specification/codesigning/CodeSigning.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	./eng/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    cmderr	[Java-Sdk-Automation] Traceback (most recent call last):
    cmderr	[Java-Sdk-Automation]   File "/mnt/vss/_work/1/s/azure-sdk-for-java/./eng/automation/generate.py", line 429, in <module>
    cmderr	[Java-Sdk-Automation]     main()
    cmderr	[Java-Sdk-Automation]   File "/mnt/vss/_work/1/s/azure-sdk-for-java/./eng/automation/generate.py", line 340, in main
    cmderr	[Java-Sdk-Automation]     return sdk_automation(args["config"][0], args["config"][1])
    cmderr	[Java-Sdk-Automation]   File "/mnt/vss/_work/1/s/azure-sdk-for-java/./eng/automation/generate.py", line 115, in sdk_automation
    cmderr	[Java-Sdk-Automation]     packages = sdk_automation_typespec(config)
    cmderr	[Java-Sdk-Automation]   File "/mnt/vss/_work/1/s/azure-sdk-for-java/./eng/automation/generate.py", line 234, in sdk_automation_typespec
    cmderr	[Java-Sdk-Automation]     packages.append(sdk_automation_typespec_project_data(tsp_project, config))
    cmderr	[Java-Sdk-Automation]   File "/mnt/vss/_work/1/s/azure-sdk-for-java/eng/automation/generate_data.py", line 39, in sdk_automation_typespec_project
    cmderr	[Java-Sdk-Automation]     succeeded, require_sdk_integration, sdk_folder, service, module = generate_typespec_project(
    cmderr	[Java-Sdk-Automation]   File "/mnt/vss/_work/1/s/azure-sdk-for-java/eng/automation/generate_utils.py", line 363, in generate_typespec_project
    cmderr	[Java-Sdk-Automation]     tspconfig_valid = validate_tspconfig(tsp_dir)
    cmderr	[Java-Sdk-Automation]   File "/mnt/vss/_work/1/s/azure-sdk-for-java/eng/automation/typespec_utils.py", line 29, in validate_tspconfig
    cmderr	[Java-Sdk-Automation]     service_dir: str = yaml_json["parameters"]["service-dir"]["default"]
    cmderr	[Java-Sdk-Automation] KeyError: 'service-dir'
    error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-java]: ./eng/automation/generate.py
    warn	Warning: File azure-sdk-for-java_tmp/generateOutput.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.
    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.
    command	./eng/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    cmderr	[Java-Sdk-Automation] Diagnostics were reported during compilation. Use the `--debug` flag to see if there is warning diagnostic output.
    warn		Warning: cannot find emitter config for azure-sdk-for-java in tspconfig.yaml for typespec project specification/cognitiveservices/Language.AnalyzeText/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-sdk-for-java in tspconfig.yaml for typespec project specification/cognitiveservices/Language.Conversations/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	./eng/automation/generate.py ../azure-sdk-for-java_tmp/generateInput.json ../azure-sdk-for-java_tmp/generateOutput.json
    cmderr	[Java-Sdk-Automation] Diagnostics were reported during compilation. Use the `--debug` flag to see if there is warning diagnostic output.
  • ️✔️azure-resourcemanager-largeinstance [Preview SDK Changes]
  • ️✔️azure-resourcemanager-azurestackhci [Preview SDK Changes]
  • ️✔️azure-resourcemanager-codesigning [Preview SDK Changes]
  • azure-compute-batch [Preview SDK Changes]
  • ️✔️azure-ai-contentsafety [Preview SDK Changes]
    info	[Changelog] ### Features Added
    info	[Changelog] #### `models.AddOrUpdateTextBlocklistItemsResult` was modified
    info	[Changelog] * `toJson(com.azure.json.JsonWriter)` was added
    info	[Changelog] * `fromJson(com.azure.json.JsonReader)` was added
    info	[Changelog] #### `BlocklistAsyncClient` was modified
    info	[Changelog] * `createOrUpdateTextBlocklist(java.lang.String,models.TextBlocklist)` was added
    info	[Changelog] #### `models.AnalyzeTextResult` was modified
    info	[Changelog] * `toJson(com.azure.json.JsonWriter)` was added
    info	[Changelog] * `fromJson(com.azure.json.JsonReader)` was added
    info	[Changelog] #### `models.TextBlocklistMatch` was modified
    info	[Changelog] * `fromJson(com.azure.json.JsonReader)` was added
    info	[Changelog] * `toJson(com.azure.json.JsonWriter)` was added
    info	[Changelog] #### `models.AnalyzeImageOptions` was modified
    info	[Changelog] * `toJson(com.azure.json.JsonWriter)` was added
    info	[Changelog] * `fromJson(com.azure.json.JsonReader)` was added
    info	[Changelog] #### `models.TextBlocklistItem` was modified
    info	[Changelog] * `toJson(com.azure.json.JsonWriter)` was added
    info	[Changelog] * `fromJson(com.azure.json.JsonReader)` was added
    info	[Changelog] #### `models.RemoveTextBlocklistItemsOptions` was modified
    info	[Changelog] * `toJson(com.azure.json.JsonWriter)` was added
    info	[Changelog] * `fromJson(com.azure.json.JsonReader)` was added
    info	[Changelog] #### `models.TextBlocklist` was modified
    info	[Changelog] * `toJson(com.azure.json.JsonWriter)` was added
    info	[Changelog] * `fromJson(com.azure.json.JsonReader)` was added
    info	[Changelog] #### `models.AnalyzeTextOptions` was modified
    info	[Changelog] * `fromJson(com.azure.json.JsonReader)` was added
    info	[Changelog] * `toJson(com.azure.json.JsonWriter)` was added
    info	[Changelog] #### `implementation.JsonMergePatchHelper$TextBlocklistAccessor` was modified
    info	[Changelog] * `isJsonMergePatch(models.TextBlocklist)` was added
    info	[Changelog] #### `models.ImageCategoriesAnalysis` was modified
    info	[Changelog] * `toJson(com.azure.json.JsonWriter)` was added
    info	[Changelog] * `fromJson(com.azure.json.JsonReader)` was added
    info	[Changelog] #### `models.AnalyzeImageResult` was modified
    info	[Changelog] * `fromJson(com.azure.json.JsonReader)` was added
    info	[Changelog] * `toJson(com.azure.json.JsonWriter)` was added
    info	[Changelog] #### `models.AddOrUpdateTextBlocklistItemsOptions` was modified
    info	[Changelog] * `fromJson(com.azure.json.JsonReader)` was added
    info	[Changelog] * `toJson(com.azure.json.JsonWriter)` was added
    info	[Changelog] #### `models.ContentSafetyImageData` was modified
    info	[Changelog] * `fromJson(com.azure.json.JsonReader)` was added
    info	[Changelog] * `toJson(com.azure.json.JsonWriter)` was added
    info	[Changelog] #### `models.TextCategoriesAnalysis` was modified
    info	[Changelog] * `toJson(com.azure.json.JsonWriter)` was added
    info	[Changelog] * `fromJson(com.azure.json.JsonReader)` was added
    info	[Changelog] #### `BlocklistClient` was modified
    info	[Changelog] * `createOrUpdateTextBlocklist(java.lang.String,models.TextBlocklist)` was added
    warn	Warning: Skip command for failed context: ./eng/automation/install_instruction.py ../azure-sdk-for-java_tmp/installInstructionInput.json ../azure-sdk-for-java_tmp/installInstructionOutput.json. Please ensure the script runs successfully to proceed the SDK generation.
  • ️✔️azure-ai-openai [Preview SDK Changes]
    warn	Warning: Skip command for failed context: ./eng/automation/install_instruction.py ../azure-sdk-for-java_tmp/installInstructionInput.json ../azure-sdk-for-java_tmp/installInstructionOutput.json. Please ensure the script runs successfully to proceed the SDK generation.