Fix TypeSpec Python regenerate workflow: apply README template from generated-tests branch layout#47491
Open
Copilot wants to merge 8 commits into
Open
Fix TypeSpec Python regenerate workflow: apply README template from generated-tests branch layout#47491Copilot wants to merge 8 commits into
Copilot wants to merge 8 commits into
Conversation
… typespec-python-generated-tests branch Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
msyyc
June 15, 2026 02:08
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes the TypeSpec Python test regeneration workflow by sourcing the README template from the typespec-python-generated-tests branch (where it now lives after PR #47288), rather than expecting it to exist in the main checkout.
Changes:
- Update the “Apply README template” step to
git fetchthetypespec-python-generated-testsbranch andgit showthe template into a temporary file. - Improve the failure message to indicate the branch/path to check when the template can’t be retrieved.
- Clean up the temporary README template file after copying.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
msyyc
reviewed
Jun 15, 2026
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Copilot
AI
changed the title
Fix TypeSpec Python regenerate workflow: source README template from generated-tests branch
Fix TypeSpec Python regenerate workflow: apply README template from generated-tests branch layout
Jun 15, 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.
The "Regenerate TypeSpec Python tests" job failed at the Apply README template step with
Template README not found at eng/tools/azure-sdk-tools/emitter/generated/template/README.md. PR #47288 removedemitter/generated/frommainby design, leaving the template only on thetypespec-python-generated-testsbranch, but the workflow still expected it in the main checkout.Changes
.github/workflows/typespec-python-regenerate.yml— the workflow now stages regeneratedazureandunbrandedtest packages in$RUNNER_TEMP, checks out thetypespec-python-generated-testsbranch layout, and applies the existing in-branchtemplate/README.mddirectly:typespec-python-generated-testsbefore copying regenerated files intoeng/tools/azure-sdk-tools/emitter/generatedeng/tools/azure-sdk-tools/emitter/generated/template/README.mdfrom that branch layout instead of fetching the template into a temp file