-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Update update-versions.sh to handle CDP versions #2514
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
Conversation
✅ Deploy Preview for selenium-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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:
|
||||||||||||||
User description
Description
This PR updates the
/scripts/update_versions.shscript:usage:
for example, if tests are currently using Selenium 4.35 and CDP v137, and you want to upgrade to everything to use Selenium 4.38 and CDP v142, you would run:
Note: I used perl instead of sed because it is portable (sed has different options in GNU version vs. FreeBSD/macOS), and sed messes up line endings if you run it on Windows/msys. I don't know if macOS typically has perl installed. If not, I can make it fall back to sed if this is run on that OS.
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Replace hardcoded version calculation with explicit old/new version parameters
Add validation for version format (major.minor.patch)
Implement CDP version replacement across example files
Add Ruby remote webdriver spec file to version update targets
Diagram Walkthrough
File Walkthrough
update-versions.sh
Refactor to explicit version parameters with CDP supportscripts/update-versions.sh
#!/bin/bashto#!/usr/bin/env bashfor betterportability
old_version, new_version, old_cdp_version, new_cdp_version
follow major.minor.patch format
examples/ruby/spec/drivers/remote_webdriver_spec.rbto fileslist for version updates
replacement
across all example source files