Normalize TypeSpec path inputs ending in tspconfig.yaml for release plan updates#15785
Merged
Conversation
Co-authored-by: praveenkuttappan <55455725+praveenkuttappan@users.noreply.github.com>
Co-authored-by: praveenkuttappan <55455725+praveenkuttappan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix AzSDK MCP tool path handling for tspconfig.yaml
Normalize TypeSpec path inputs ending in May 28, 2026
tspconfig.yaml for release plan updates
praveenkuttappan
approved these changes
May 28, 2026
raych1
approved these changes
May 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
azsdk_update_release_planand related TypeSpec path handling assumed a project-directory input and could mis-handle paths that already includedtspconfig.yaml(e.g., appending it again). This change normalizes both relative and absolute.../tspconfig.yamlinputs to the project root before validation/parsing/path extraction.Path normalization in TypeSpec model parsing
TypeSpecProjectpath handling to canonicalize inputs:specification/.../service/tspconfig.yaml→specification/.../service/abs/.../service/tspconfig.yaml→/abs/.../serviceIsValidTypeSpecProjectPathParseTypeSpecConfigHelper-level sanitization for release-plan flows
TypeSpecHelperto treattspconfig.yamlinputs as project-root paths in:ParseTypeSpecProjectAsyncGetTypeSpecProjectRelativePathspecification/...behavior.Focused test coverage
.../tspconfig.yamlinputstspconfig.yamlUpdateReleasePlansucceeds with both relative and absolute.../tspconfig.yamlinputs