[build] build selenium manager for tests#16736
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
71288f5 to
4fa063b
Compare
4fa063b to
6d516bf
Compare
Note: This code includes #16743 for it to work
User description
💥 What does this PR do?
This code fixed constant build churn by always downloading latest manager: #13314
But this doesn't work when you change selenium manager code locally.
Conditional is now
@bonigarcia / @diemol does this look right to you?
PR Type
Enhancement
Description
Conditionally build or download Selenium Manager based on build flags
Download when using pinned browsers or stamped builds
Build locally when developing Selenium Manager code
Reduces build churn while supporting local development
Diagram Walkthrough
flowchart LR A["Build Configuration"] --> B{Check Conditions} B -->|use_pinned_browser| C["Download Manager"] B -->|stamp| C B -->|else| D["Build Manager Locally"] C --> E["Selenium Manager Binary"] D --> EFile Walkthrough
BUILD.bazel
Add conditional build vs download logic for Selenium Managercommon/manager/BUILD.bazel
select()statements
use_pinned_browserorstampflags are set//rust:selenium-manager-*targetsotherwise
aliases