[build] Use target_compatible_with to gate IE/Safari tests #17566
Conversation
Review Summary by QodoReplace skip-rbe tags with target_compatible_with for OS-gated tests
WalkthroughsDescription• Replace skip-rbe tags with target_compatible_with for OS-specific tests • Remove selenium.skiptest Java system property checks from test code • Add explicit target_compatible_with constraints to IE/Safari browser configurations • Simplify JVM flags by eliminating conditional skiptest logic Diagramflowchart LR
A["skip-rbe tags"] -->|"replaced by"| B["target_compatible_with constraints"]
C["selenium.skiptest property"] -->|"removed from"| D["Java test code"]
E["Conditional JVM flags"] -->|"simplified to"| F["Direct target_compatible_with"]
B --> G["IE/Safari tests gated by OS"]
D --> G
F --> G
File Changes1. java/test/org/openqa/selenium/devtools/NetworkInterceptorRestTest.java
|
Code Review by Qodo
1. target_compatible_with kwarg collision
|
92a1eb5 to
dfb8c18
Compare
|
Persistent review updated to latest commit dfb8c18 |
[build] Use target_compatible_with to gate IE/Safari tests
💥 What does this PR do?
We're using the skip-rbe tag to prevent Mac and Windows specific tests from running on RBE. We don't need that if we use
target_compatible_withand specify the OS.🔧 Implementation Notes
I also removed the Java skiptest check because it was being used by bazel to tell JUnit not to run based on OS, which it shouldn't need to do with this.
🤖 AI assistance