Skip to content

[BUG] CI ADO Task "Verify Type Spec Code Generation" does not insert code-snippets into Java code, when emitting an SDK for comparison #38337

Open
@dargilco

Description

@dargilco

Describe the bug
The Image Analysis SDK is emitted from TypeSpec files (with some hand-customization). When you build the Image Analysis SDK (\sdk\vision\azure-ai-vision-imageanalysis), it inserts several code-snippets into the client Java source code, such that they show up in JavaDocs.
However, when I run the CI pipeline, this results in the task "Verify Type Spec Code Generation" failing, and the diff shown is the inserted code-snippets. Looks like the tool that is emitting the SDK for comparison, is not running code-snippet insertion. This may be related to the fact that the operation methods ("analyze"), where the code-snippet were inserted, are both hand-written.

To overcome this and unblock PR merge, I added the pipeline variable EnableVerifyTypeSpecCodeGeneration, which is true by default, but set to false in \sdk\vision\ci.yml. So the task "Verify Type Spec Code Generation" is skipped when building the Image Analysis SDK. See relevant PR: #38307

Related issue in the autorest repo: Azure/autorest.java#2492

Metadata

Metadata

Labels

DPGEngSysThis issue is impacting the engineering system.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions