Skip to content

tsp, update tsp-location of EASM to point to the commit ID which includes client.tsp#37962

Merged
weidongxu-microsoft merged 4 commits intoAzure:mainfrom
weidongxu-microsoft:tsp_temporary-fix-azure-core-version
Dec 8, 2023
Merged

tsp, update tsp-location of EASM to point to the commit ID which includes client.tsp#37962
weidongxu-microsoft merged 4 commits intoAzure:mainfrom
weidongxu-microsoft:tsp_temporary-fix-azure-core-version

Conversation

@weidongxu-microsoft
Copy link
Copy Markdown
Member

@weidongxu-microsoft weidongxu-microsoft commented Dec 7, 2023

There is behavior change on @azure-tools/typespec-azure-core 0.37.0, that affect codegen LRO logic, which would impact generated code (when typespec-java does not change at all).

PS: here is what happens without this pin https://github.com/Azure/azure-sdk-for-java/pull/37961/files (ignore documentintelligence). You can see typespec-java emitter is not changed at all.


Therefore, temporary pin @azure-tools/typespec-azure-core to 0.36.0, to avoid affect OpenAI SDK.

I will remove this "devDependencies" after I figure out why behavior changed, and mitigated it in next release (aka 0.12.0).

EASM is solved via Azure/azure-rest-api-specs#26980 (for the client hierarchy behavior change). Hence here I update the commit in tsp-location to latest main.

@weidongxu-microsoft
Copy link
Copy Markdown
Member Author

/azp run java - openai

@weidongxu-microsoft
Copy link
Copy Markdown
Member Author

/azp run java - easm

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@azure-sdk
Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

@weidongxu-microsoft
Copy link
Copy Markdown
Member Author

/azp run java - openai

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@weidongxu-microsoft
Copy link
Copy Markdown
Member Author

/azp run java - easm

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@weidongxu-microsoft weidongxu-microsoft changed the title tsp, temporary fix @azure-tools/typespec-azure-core to 0.36.0 tsp, temporary pin @azure-tools/typespec-azure-core to 0.36.0 Dec 7, 2023
@weidongxu-microsoft
Copy link
Copy Markdown
Member Author

/azp run java - openai

@weidongxu-microsoft
Copy link
Copy Markdown
Member Author

/azp run java - easm

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

Comment thread eng/emitter-package.json Outdated
Comment on lines 6 to 14
"devDependencies": {
"@typespec/openapi": "0.50.0",
"@typespec/compiler": "0.50.0",
"@typespec/versioning": "0.50.0",
"@typespec/rest": "0.50.0",
"@typespec/http": "0.50.0",
"@azure-tools/typespec-azure-core": "0.36.0",
"@azure-tools/typespec-client-generator-core": "0.36.1"
}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will revert the change on "devDependencies", if OpenAI is not affected in their new PR #37739

@@ -1,3 +1,3 @@
directory: specification/riskiq/Easm
commit: f5f584c65071dc0306544a195fbcdff156023040
commit: 11dd0dbfb9bec989f3a9a3536ae526407ff17c78
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is required for TCGC behavior change. This commit ID added a client.tsp https://github.com/Azure/azure-rest-api-specs/pull/26980/files

Revert change to emitter-package.json, as in OpenAI latest PR, they no longer need the LRO Azure#37739
@weidongxu-microsoft
Copy link
Copy Markdown
Member Author

/azp run java - easm

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@weidongxu-microsoft weidongxu-microsoft changed the title tsp, temporary pin @azure-tools/typespec-azure-core to 0.36.0 tsp, update tsp-location of EASM to point to the commit ID which includes client.tsp Dec 8, 2023
@weidongxu-microsoft weidongxu-microsoft merged commit be48b09 into Azure:main Dec 8, 2023
@weidongxu-microsoft weidongxu-microsoft deleted the tsp_temporary-fix-azure-core-version branch December 8, 2023 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants