-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[dotnet] toggle starting test server with Java if Runfiles are not available #14010
Conversation
PR Review 🔍
|
PR Code Suggestions ✨
|
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.
If it worked locally for you, I would merge it.
It doesn't work on my side.
This is because The code in |
Good point, I thought it wasn't getting used if it wasn't needed, I'll recheck the flow. My windows dev environment seems to have broken again. I'm still trying to debug locally. |
After doing way too much work, apparently all that was needed was 6785dac |
User description
Description
This allows users to run .NET tests with bazel (both pinned and unpinned browsers), as well as locally with Java using dotnet on Mac. @nvborisenko can you verify this works on Windows? I can spin up a VM if I need to.
This might be more of a hack than the right solution, but it's the best I know how to do. Feedback appreciated.
Motivation and Context
Current code does not work on Mac to run tests locally
PR Type
Enhancement, Bug fix
Description
Runfiles
handling inEnvironmentManager
by adding null checks and adjusting logic forFileNotFoundException
.TestWebServer
startup logic:JAVA_HOME
environment variable.Changes walkthrough 📝
EnvironmentManager.cs
Improve `Runfiles` handling in `EnvironmentManager`
dotnet/test/common/Environment/EnvironmentManager.cs
Runfiles
creation.FileNotFoundException
whenRunfiles
are notavailable.
TestWebServer.cs
Enhance `TestWebServer` startup logic and error handling
dotnet/test/common/Environment/TestWebServer.cs
JAVA_HOME
environment variable ifjavaHomeDirectory
is not set.
Start
method to handle different platforms and executablepaths.