Sync eng/common directory with azure-sdk-tools for PR 15210#48874
Sync eng/common directory with azure-sdk-tools for PR 15210#48874
Conversation
Re-creates PR #15062 on a fresh branch off current upstream/main to avoid sync-pipeline CI issues on the original branch. Original branch squad/15049-sync-shared-skills and PR #15062 are preserved unchanged for comparison. Makes skills the single source of truth by consolidating instruction file content into the corresponding skill SKILL.md files, then deleting the redundant instruction files. Also renames 5 shared skill directories with the 'azsdk-common-' prefix required by the sync pipeline. 7 instruction files deleted (content merged into skills): - local-sdk-workflow.instructions.md -> azsdk-common-generate-sdk-locally - create-release-plan.instructions.md -> azsdk-common-prepare-release-plan - sdk-details-in-release-plan.instructions.md -> azsdk-common-prepare-release-plan - verify-namespace-approval.instructions.md -> azsdk-common-prepare-release-plan - check-package-readiness.instructions.md -> azsdk-common-sdk-release - check-package-validation.instructions.md -> azsdk-common-generate-sdk-locally - copilot/sdk-release.instructions.md -> azsdk-common-sdk-release 3 skills enriched with details from instruction files: - generate-sdk-locally: commit checkpoints, language selection, config file identification, SDK project path, metadata update tools, validation params - prepare-release-plan: critical LLM instructions (NextSteps field), Release Planner Tool link, per-language package name extraction rules, valid/invalid examples table, JSON structure, namespace approval flow - sdk-release: readiness check details, interaction flow, do-not-ask-for-PR guard, case-sensitive language note 5 shared skill directories renamed with 'azsdk-common-' prefix: apiview-feedback-resolution, generate-sdk-locally, pipeline-troubleshooting, prepare-release-plan, sdk-release typespec-to-sdk orchestrator updated to reference skills directly. Removed all related_skill frontmatter and blockquotes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR syncs the eng/common Copilot/azsdk-tools instruction content with the corresponding changes from azure-sdk-tools PR 15210, primarily by removing several instruction files and updating the TypeSpec-to-SDK workflow guidance to point at “skills”.
Changes:
- Removed multiple
eng/common/instructions/**markdown instruction files related to SDK release planning, local generation workflow, and readiness/validation checks. - Updated
typespec-to-sdk.instructions.mdto reference.github/skills/*skills for local generation and release-plan preparation, and to mention additional troubleshooting/review-resolution skills.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| eng/common/instructions/copilot/sdk-release.instructions.md | Deleted SDK release instruction content (now leaves a missing target for existing links). |
| eng/common/instructions/azsdk-tools/verify-namespace-approval.instructions.md | Deleted management-plane namespace approval instructions. |
| eng/common/instructions/azsdk-tools/typespec-to-sdk.instructions.md | Updated TypeSpec-to-SDK guidance to reference skills and added mentions of troubleshooting/review-resolution skills. |
| eng/common/instructions/azsdk-tools/sdk-details-in-release-plan.instructions.md | Deleted instructions for updating SDK details in a release plan. |
| eng/common/instructions/azsdk-tools/local-sdk-workflow.instructions.md | Deleted local generation/build/test/version workflow instructions. |
| eng/common/instructions/azsdk-tools/create-release-plan.instructions.md | Deleted release plan creation instructions (including critical LLM handling notes). |
| eng/common/instructions/azsdk-tools/check-package-validation.instructions.md | Deleted package validation instruction content. |
| eng/common/instructions/azsdk-tools/check-package-readiness.instructions.md | Deleted package readiness check instruction content. |
| 3. Display generated SDK PR links when available. If pipeline fails, inform user with error details and suggest to check pipeline logs for more information. Use the `azsdk-common-pipeline-troubleshooting` skill to diagnose and resolve pipeline failures. | ||
| 4. If SDK pull request is available for all languages, ask user to review generated SDK pull request and mark them as ready for review when they are ready to get them reviewed and merged. If APIView feedback is received, use the `azsdk-common-apiview-feedback-resolution` skill to analyze and resolve review comments. |
There was a problem hiding this comment.
This guidance refers to azsdk-common-pipeline-troubleshooting and azsdk-common-apiview-feedback-resolution skills, but there are no such skills under .github/skills/ in this repo. Add those skills (or rename these references to the actual skill names present) to avoid dangling/undiscoverable instructions.
| 3. Display generated SDK PR links when available. If pipeline fails, inform user with error details and suggest to check pipeline logs for more information. Use the `azsdk-common-pipeline-troubleshooting` skill to diagnose and resolve pipeline failures. | |
| 4. If SDK pull request is available for all languages, ask user to review generated SDK pull request and mark them as ready for review when they are ready to get them reviewed and merged. If APIView feedback is received, use the `azsdk-common-apiview-feedback-resolution` skill to analyze and resolve review comments. | |
| 3. Display generated SDK PR links when available. If pipeline fails, inform user with error details and suggest checking pipeline logs to diagnose and resolve the failure. | |
| 4. If SDK pull request is available for all languages, ask user to review generated SDK pull request and mark them as ready for review when they are ready to get them reviewed and merged. If APIView feedback is received, analyze the feedback and help resolve the review comments. |
| 4. If unsure, check if a release plan already exists for API spec pull request. | ||
| 5. Prompt user to find the service id and product id in service tree `aka.ms/st` and provide them. Stress the importance of correct service id and product id for proper release plan creation. | ||
| 6. If a new release plan is needed, refer to #file:create-release-plan.instructions.md to create a release plan using the spec pull request. API spec pull request is required to create a release plan. | ||
| 6. If a new release plan is needed, refer to #file:.github/skills/azsdk-common-prepare-release-plan/SKILL.md to create a release plan using the spec pull request. API spec pull request is required to create a release plan. |
There was a problem hiding this comment.
The #file reference to .github/skills/azsdk-common-prepare-release-plan/SKILL.md is broken because that path doesn't exist in this repo. Include the skill file(s) in this PR or adjust the reference to a file that exists so release-plan creation remains documented.
| 6. If a new release plan is needed, refer to #file:.github/skills/azsdk-common-prepare-release-plan/SKILL.md to create a release plan using the spec pull request. API spec pull request is required to create a release plan. | |
| 6. If a new release plan is needed, refer to #file:../copilot/sdk-release.instructions.md to create a release plan using the spec pull request. API spec pull request is required to create a release plan. |
| --- | ||
| description: 'Generate SDKs from TypeSpec' | ||
| --- | ||
|
|
There was a problem hiding this comment.
This PR deletes local-sdk-workflow.instructions.md and copilot/sdk-release.instructions.md, but .github/copilot-instructions.md (and its duplicate under custom-instructions/repo/) still references those files. Update those references (or keep replacement stubs) to avoid broken documentation links for Copilot workflows.
| **Message to user**: "Generating SDKs locally requires you to have the development environment set up for each language. Prompt the user to create a pull request for each language after completing the following steps successfully: generation, validation, build, test and update of metadata, change log, and version." | ||
| **Actions**: | ||
| Follow the steps in #file:local-sdk-workflow.instructions.md to generate and build SDKs locally from TypeSpec project. | ||
| Follow the steps in #file:.github/skills/azsdk-common-generate-sdk-locally/SKILL.md to generate and build SDKs locally from TypeSpec project. |
There was a problem hiding this comment.
The new #file reference points to .github/skills/azsdk-common-generate-sdk-locally/SKILL.md, but that file/directory doesn't exist in this repo. Either add the referenced skill as part of this sync, or update the reference to an existing instructions/skill file so the workflow remains usable.
| Follow the steps in #file:.github/skills/azsdk-common-generate-sdk-locally/SKILL.md to generate and build SDKs locally from TypeSpec project. | |
| Follow the steps in #file:../eng/common/instructions/azsdk-tools/local-sdk-workflow.instructions.md to generate and build SDKs locally from TypeSpec project. |
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#15210 See eng/common workflow