[build] allow ruby and python to run remote tests on windows#17603
Conversation
Review Summary by Qodo(Agentic_describe updated until commit 4fb048c)Resolve JDK symlink paths for Windows remote tests
WalkthroughsDescription• Resolve JDK symlink path on Windows for Ruby and Python • Use os.path.realpath() in Python to resolve symlink • Use File.realpath() in Ruby to resolve symlink • Add platform check to apply fix only on Windows Diagramflowchart LR
A["JDK Path from Runfiles"] --> B["Resolve via rlocation"]
B --> C{"Windows Platform?"}
C -->|Yes| D["Apply realpath Resolution"]
C -->|No| E["Use Path As-Is"]
D --> F["Java Path Ready"]
E --> F
File Changes1. py/conftest.py
|
Code Review by Qodo
1. Missing env var crashes
|
88061f6 to
5718d72
Compare
1cbf19f to
8d45498
Compare
8d45498 to
4fb048c
Compare
|
Code review by qodo was updated up to the latest commit 4fb048c |
Situation
I noticed that Ruby can't run remote tests on Windows right now (server crashes) and I tracked it down to a real JDK symlink bug
💥 What does this PR do?
Creates Ruby & Python workarounds to get the JDK home, resolve it via runfiles then get the real path of Java on Windows to avoid the symlink.
🔧 Implementation Notes
I didn't want to add new Windows Remote tests with this PR, but to show that the new code works: https://github.com/SeleniumHQ/selenium/actions/runs/26725902074/job/78761168501
Considered:
JAVA_HOMEon Windows (what .NET bindings do now) breaks hermeticity.🤖 AI assistance
💡 Additional Considerations
🔄 Types of changes