-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add agent definitions for reproducing SDK build-related issues, and analyzing reproduction binlogs #52917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add agent definitions for reproducing SDK build-related issues, and analyzing reproduction binlogs #52917
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,190 @@ | ||||||
| --- | ||||||
| name: investigate-sdk-issue | ||||||
| description: Investigate a GitHub issue filed against the .NET SDK (or related dotnet repos) by reproducing the problem, analyzing build logs, tracing through MSBuild targets, and producing a root cause analysis with links to the relevant source code and a suggested fix. Use this when pointed at a GitHub issue URL or when asked to investigate an SDK build/publish/pack behavior problem. | ||||||
| argument-hint: [issue-number] | ||||||
| --- | ||||||
|
|
||||||
| # Investigate .NET SDK Issue | ||||||
|
|
||||||
| You are investigating a GitHub issue to determine the root cause of unexpected .NET SDK behavior. Your goal is to produce a detailed root cause analysis in GitHub-flavored markdown, with links to the specific source code that causes the problem and a suggested fix. | ||||||
|
|
||||||
| ## Step 1: Read the issue | ||||||
|
|
||||||
| Use `gh issue view <number> --repo dotnet/sdk --json title,body,comments,labels` to fetch the issue details. | ||||||
|
|
||||||
| Extract from the issue: | ||||||
| - **Symptom**: What the user observes (e.g., unexpected files in output, build error, wrong behavior). | ||||||
| - **Expected behavior**: What the user expected instead. | ||||||
| - **Reproduction steps**: How to reproduce the issue. | ||||||
| - **Attachments**: Look for linked binlog files (`.binlog` or `.zip` containing binlogs), reproduction projects (`.zip`, `.tar`), or inline project files. | ||||||
| - **Environment**: SDK version, OS, target framework, any special properties (`PublishAot`, `PublishSingleFile`, `SelfContained`, etc.). | ||||||
|
|
||||||
| ## Step 2: Obtain or create a reproduction | ||||||
|
|
||||||
| ### If the issue includes a binlog | ||||||
|
|
||||||
| 1. Download the binlog attachment using `gh` or `curl`. | ||||||
| 2. If it is a `.zip` or `.tar`, extract it with `unzip` or `tar`. | ||||||
| 3. Proceed to **Step 3**. | ||||||
|
|
||||||
| ### If the issue includes a reproduction project but no binlog | ||||||
|
|
||||||
| 1. Download and extract the reproduction project. | ||||||
| 2. Restore and build/publish/pack (matching the scenario described in the issue) with a binary log: | ||||||
| ```bash | ||||||
| dotnet restore | ||||||
| dotnet publish -c Release /bl:1.binlog | ||||||
| ``` | ||||||
| Use the `binlog-generation` skill conventions: name binlogs with incrementing numbers (`1.binlog`, `2.binlog`, etc.). | ||||||
|
||||||
| Use the `binlog-generation` skill conventions: name binlogs with incrementing numbers (`1.binlog`, `2.binlog`, etc.). | |
| Name binlogs with incrementing numbers (`1.binlog`, `2.binlog`, etc.) so you can distinguish multiple runs. |
baronfel marked this conversation as resolved.
Outdated
baronfel marked this conversation as resolved.
Outdated
baronfel marked this conversation as resolved.
Outdated
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.
Uh oh!
There was an error while loading. Please reload this page.