-
Notifications
You must be signed in to change notification settings - Fork 384
Remove $(RepoRootDir) dependency from Debugger.Tests.Config.txt files #5684
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
base: main
Are you sure you want to change the base?
Conversation
… RepoRootDir Co-authored-by: max-charlamb <44248479+max-charlamb@users.noreply.github.com>
|
While we're making these changes, can we move the 'free-floating' debuggees under src/test/ to under the CommonTestRunner/Debuggees similar to the specific DbgShim and SOS debuggees. |
| DestinationFolder="$(DebuggeesDestDir)/Tracee/%(RecursiveDir)" | ||
| SkipUnchangedFiles="true" /> | ||
| <Copy SourceFiles="@(EventPipeTraceeFiles)" | ||
| DestinationFolder="$(DebuggeesDestDir)/EventPipeTracee/%(RecursiveDir)" | ||
| SkipUnchangedFiles="true" /> | ||
| <Copy SourceFiles="@(StackTraceeFiles)" | ||
| DestinationFolder="$(DebuggeesDestDir)/StackTracee/%(RecursiveDir)" | ||
| SkipUnchangedFiles="true" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is missing ExitCodeTracee.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added ExitCodeTracee and moved all free-floating debuggees (Tracee, EventPipeTracee, StackTracee, ExitCodeTracee) to CommonTestRunner/Debuggees in 673c858.
|
@copilot , address feedback |
…itCodeTracee Co-authored-by: max-charlamb <44248479+max-charlamb@users.noreply.github.com>
Done. Moved Tracee, EventPipeTracee, StackTracee, and ExitCodeTracee to Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot , remove the nuget binary file from the diff. It looks like a mistake. |
Co-authored-by: max-charlamb <44248479+max-charlamb@users.noreply.github.com>
|
@copilot , fix the build break. There are other references to |
…g lldbplugin.tests Co-authored-by: max-charlamb <44248479+max-charlamb@users.noreply.github.com>
Fixed the
Commit: 8a5798d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR removes the dependency on $(RepoRootDir) from Debugger.Tests.Config.txt files to prepare the diagnostics tests for execution on Helix, where the repository structure may not be available. The changes enable tests to run on remote machines by copying necessary files to the artifacts directory and updating configuration files to use $(ArtifactsDir) paths instead.
Changes:
- Updated Debugger.Tests.Config.txt files across CommonTestRunner, DbgShim.UnitTests, and SOS.UnitTests to use
$(ArtifactsDir)instead of$(RepoRootDir)for debuggee sources and auxiliary MSBuild files - Added MSBuild targets to copy debuggee sources, AuxMsbuildFiles, and lldbplugin.tests to the artifacts directory during build
- Moved debuggee projects (Tracee, EventPipeTracee, StackTracee, ExitCodeTracee) under CommonTestRunner/Debuggees subdirectory
- Updated SOS.cs to use ArtifactsDir paths for lldbplugin tests
- Removed RepoRootDir from generated Debugger.Tests.Common.txt configuration files
Reviewed changes
Copilot reviewed 13 out of 22 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/tests/CommonTestRunner/CommonTestRunner.csproj | Added CopyDebuggeeSources target to copy debuggee sources and aux files; removed RepoRootDir from config; excluded Debuggees folder from compilation |
| src/tests/CommonTestRunner/ConfigFiles/Windows/Debugger.Tests.Config.txt | Updated DebuggeeSourceRoot and DebuggeeMsbuildAuxRoot to use ArtifactsDir paths |
| src/tests/CommonTestRunner/ConfigFiles/Unix/Debugger.Tests.Config.txt | Updated DebuggeeSourceRoot and DebuggeeMsbuildAuxRoot to use ArtifactsDir paths |
| src/tests/DbgShim.UnitTests/DbgShim.UnitTests.csproj | Added CopyDebuggeeSources target; removed RepoRootDir from config files |
| src/tests/DbgShim.UnitTests/ConfigFiles/Windows/Debugger.Tests.Config.txt | Updated paths to use ArtifactsDir |
| src/tests/DbgShim.UnitTests/ConfigFiles/Unix/Debugger.Tests.Config.txt | Updated paths to use ArtifactsDir |
| src/tests/SOS.UnitTests/SOS.UnitTests.csproj | Added CopyDebuggeeSources target for debuggees, aux files, and lldbplugin tests; removed RepoRootDir |
| src/tests/SOS.UnitTests/SOS.cs | Updated to use ArtifactsDir for lldbplugin.tests and TestDebuggee paths |
| src/tests/SOS.UnitTests/ConfigFiles/Windows/Debugger.Tests.Config.txt | Updated paths to use ArtifactsDir |
| src/tests/SOS.UnitTests/ConfigFiles/Unix/Debugger.Tests.Config.txt | Updated paths to use ArtifactsDir |
| src/tests/Grape/Grape.csproj | Updated Tracee project reference to new location under CommonTestRunner/Debuggees |
| src/tests/CommonTestRunner/Debuggees/Tracee/* | New debuggee project with pipe-based synchronization |
| src/tests/CommonTestRunner/Debuggees/EventPipeTracee/* | New debuggee project for EventPipe testing with metrics and logging |
| src/tests/CommonTestRunner/Debuggees/StackTracee/* | New simple debuggee for stack testing |
| src/tests/CommonTestRunner/Debuggees/ExitCodeTracee/* | New debuggee that returns exit codes |
| src/tests/CommonTestRunner/Debuggees/Directory.Build.props | New build configuration file for debuggees |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
noahfalk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@hoyosjs - any concerns?
eng/AuxMsbuildFilessrc/tests/DbgShim.UnitTests/Debuggeesandeng/AuxMsbuildFilessrc/tests/SOS.UnitTests/Debuggees,eng/AuxMsbuildFiles, andlldbplugin.testsOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.