Azure / Azure/azure-sdk-tools

[Java Automation] Make the errors of autorest tool displayed in the pipeline result page

Open
#10,170 1 comment 0 reactions 1 assignee Claimed by @XiaofeiCao View on GitHub
Automation Tool Mgmt-EngSys
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

For the new generation pipeline, can Java tool capture the autorest tool related errors and customize the messages with next steps? Then make the customized messages displayed in the CI check result page.

Here's a [sample spec PR](https://github.com/Azure/azure-rest-api-specs/pull/33594/checks?check_run_id=39729836078)

```
09:34:06.058 cmdout [Java-Sdk-Automation] error | FluentGen | Failed to successfully run fluentgen plugin java.lang.IllegalStateException: Duplicate key src/samples/java/com/azure/resourcemanager/containerservicemicrosoftcontainerserviceaks/generated/generated/AgentPoolsDele.java (attempted merging values // Copyright (c) Microsoft Corporation. All rights reserved.
09:34:06.058 cmdout [Java-Sdk-Automation] // Licensed under the MIT License.
09:34:06.058 cmdout [Java-Sdk-Automation] // Code generated by Microsoft (R) AutoRest Code Generator.
09:34:06.058 cmdout [Java-Sdk-Automation] package com.azure.resourcemanager.containerservicemicrosoftcontainerserviceaks.generated.generated;

```

@XiaofeiCao could you have a look at this logging improvement issue?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.