[grid] Fix classpath packaging Redis-backed for SessionQueue#17706
[grid] Fix classpath packaging Redis-backed for SessionQueue#17706VietND96 wants to merge 1 commit into
Conversation
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
PR Summary by QodoFix SessionQueue CLI flag and bundle Redis implementation in httpd jar Description
Diagram
High-Level Assessment
Files changed (6)
|
| "//java/src/org/openqa/selenium/grid/server", | ||
| "//java/src/org/openqa/selenium/grid/sessionqueue", | ||
| "//java/src/org/openqa/selenium/grid/sessionqueue/config", | ||
| # Loaded via reflection when the default local implementation is used. |
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
🔗 Related Issues
💥 What does this PR do?
Two related bugs prevented using a Redis-backed SessionQueue via CLI:
--sessionqueue-implementationwas not a recognised flag. Passing it produced: Was passed main parameter '--sessionqueue-implementation' but no main parameter was defined in your arg class. The @parameter annotation was simply absent from NewSessionQueueFlags, unlike the equivalent flags in DistributorFlags and SessionMapFlags.RedisBackedNewSessionQueuewas not bundled into the sessionqueue server jar. The class is loaded via Class.forName() at runtime, so it must be an explicit Bazel dep of the httpd target even though nothing imports it at compile time. Without it, startup failed with ClassNotFoundException.🔧 Implementation Notes
🤖 AI assistance
💡 Additional Considerations
🔄 Types of changes