Azure / autorest.java

Extension for AutoRest (https://github.com/Azure/autorest) that generates Java code
MIT License
33 stars 82 forks source link

client, intermittent customization failure #2579

Closed weidongxu-microsoft closed 6 months ago

weidongxu-microsoft commented 6 months ago

PR https://github.com/Azure/azure-rest-api-specs/pull/27919/files

CI https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3529784&view=logs&j=a8a7a537-82b0-583c-7971-bac70b9822ca&t=37e3947b-3cfb-5d36-86ba-0e22bb7dbc33 re-run usually works.

customization https://github.com/Azure/azure-sdk-for-java/blob/667db3ffb14eaef151dee696a68cdde7dc84db59/sdk/communication/azure-communication-messages/customization/src/main/java/MessagesSdkCustomization.java#L115-L131 (customization looks good)

The exception appears to be from getMethod. The code had a getMethod as last line in addMethod. https://github.com/Azure/autorest.java/blob/main/customization-base/src/main/java/com/azure/autorest/customization/ClassCustomization.java#L384-L411

weidongxu-microsoft commented 6 months ago

Seems not the cause. Local run is good.