Azure / azure-sdk-for-java

This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.25k stars 1.93k forks source link

sdk automation, support breaking change detection #40917

Closed XiaofeiCao closed 22 hours ago

XiaofeiCao commented 5 days ago

Description

For SDK Automation, breaking change is compared with last GA version(new feature, this is about this PR). For mgmt SDK generation, breaking change is compared with last released version(existing feature, not related to this PR).

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.

All SDK Contribution checklist:

General Guidelines and Best Practices

Testing Guidelines

XiaofeiCao commented 4 days ago

@raych1 Would you help take a look at the GenerateApiView error in pipeline? https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3918930&view=logs&j=a8a7a537-82b0-583c-7971-bac70b9822ca&t=61443e36-1bb1-529f-ff2d-19827770e639

It's looking for non-exist artifact azure-ai-contentsafety-1.1.0-beta.1-sources.json.tgz, which should be azure-ai-contentsafety-1.1.0-beta.1-sources.jar. Not sure if this is related to the change made by this PR...

Apart from that, sdk automation completed with success: https://github.com/test-repo-billy/azure-rest-api-specs/pull/3383/checks?check_run_id=26794978839

raych1 commented 1 day ago

For SDK Automation, breaking change is compared with last GA version(new feature). For mgmt SDK generation, breaking change is compared with last released version(existing feature).

@XiaofeiCao can you explain why Java uses different base versions for above two scenarios?

Regarding APIView failures, I noticed that it fails for Java in other test PRs too. But API view was created successfully for other languages. We shall take a further look. for example, this PR

weidongxu-microsoft commented 1 day ago

@raych1

The "mgmt SDK generation" part is for generating SDK for release. No changelog nor breaking change flag would sent to you or your pipeline. Here we uses our existing logic (mostly, GA compares with GA, preview compares with a prior version) for SDK changelog.

Only the "SDK Automation" relates to you / PR.

XiaofeiCao commented 1 day ago

@XiaofeiCao can you explain why Java uses different base versions for above two scenarios?

We didn't touch existing codegen logic, like Weidong explained above. This PR's only about SDK automation. I've updated the description.

Regarding APIView failures, I noticed that it fails for Java in other test PRs too. But API view was created successfully for other languages. We shall take a further look. for example, this PR

Thanks. Java's error is strange, since the output apiViewArtifact looks OK to me: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3923824&view=logs&j=a8a7a537-82b0-583c-7971-bac70b9822ca&t=37e3947b-3cfb-5d36-86ba-0e22bb7dbc33&l=1484

raych1 commented 23 hours ago

@XiaofeiCao ,

APIView has been generated successfully in this PR for Java, the failure in this PR should not be related to your changes. https://github.com/test-repo-billy/azure-rest-api-specs/pull/3390#issuecomment-2202249969

XiaofeiCao commented 22 hours ago

@XiaofeiCao ,

APIView has been generated successfully in this PR for Java, the failure in this PR should not be related to your changes. test-repo-billy/azure-rest-api-specs#3390 (comment)

Thanks @raych1 !

XiaofeiCao commented 22 hours ago

/check-enforcer override