-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Releasing Selenium
While Selenium code is tied to Chrome versions, the goal is to release a minor version of Selenium between Early Stable and Stable release dates as specified in Chromium Release Schedule
- Communicate in Selenium Chat a reminder of upcoming releases
- Blockers should be tracked the applicable Release Milestone
- Check Pull Requests for anything that needs to be added to the milestone
- Ensure CI is passing, both RBE and CI; note that the Scheduled CI are the only ones guaranteed to have everything run.
Click to see Java prerequisites
- Get a Sonatype account. Go through the initial setup if you do not have a user
- Request push access via this ticket example.
- Install GnuPG. Detailed instructions can be seen here. Follow the section that mentions how to distribute GnuPG public key. GitHub also has good instructions to generate a key.
- Use
mvn -emp
to encrypt your passphrase - Make sure your
~/.m2/settings.xml
contains the following lines in the<servers>
and<settingsSecurity>
sections:
<server>
<id>sonatype-nexus-snapshots</id>
<username>_your-username-for-oss.sonatype.org_</username>
<password>_your-password_</password>
</server>
<server>
<id>sonatype-nexus-staging</id>
<username>_your-username-for-oss.sonatype.org_</username>
<password>_your-password_</password>
<settingsSecurity>
<master>{your_encrypted_passphrase}</master>
</settingsSecurity>
</server>
Click to see .NET prerequisites
To release a new version you will need to be registered as an owner on Nuget Obtain an API Key and store it in NUGET_API_KEY environment variable
Click to see Ruby prerequisites
To release a new gem you will need to be registered as a gem owner on rubygems.org
Generate an API key from rubygems and store it in GEM_HOST_API_KEY
environment variable
Click to see Python prerequisites
To release a new version you need to be registered as a Owner/Maintainer on pypi.python.org
Create a token on pypi and put it in your .pypirc file.
Make sure you have installed twine
and it is available on your PATH (pip install twine
)
Click to see JavaScript prerequisites
To release a new version you need to be registered as a Owner/Maintainer on npmjs
- Make sure you are authenticated to
npmjs.com
. You can do that withnpm adduser
- Obtain an access token from npmjs
- Create or edit the .npmrc file in your project directory or home directory (~/.npmrc).
- Add a line with your token: //registry.npmjs.org/:_authToken=<YOUR_TOKEN_HERE>.
There is a GitHub Actions Workflow that can be manually executed to make all appropriate updates to files in preparation for a release.
This workflow:
- Updates Rust version
- Builds and publishes Selenium Manager
- Updates CDP version
- Pins latest Selenium Manager location
- Updates Java Maven dependencies
- Updates Authors File
- Updates versions for all bindings
- Adds commit messages to changelogs
- Creates PR
- Starts Tests
The GitHub workflow adds the commits to the change logs, but these need to be manually updated for format and clarity
- Pull the PR
gh pr checkout <PR_NUMBER>
- Manually edit the change log files
- Push the changes
git push
When all tests have passed and the change logs have been updated, merge the PR. This will be the commit that we run the build process on.
./go all:release
This command:
- creates release tag and pushes it
- builds everything
- publishes everything
- creates release notes for GitHub release
- updates API docs (with prompts)
- updates nightly versions (with prompts)
For the given language:
./go <language>:release
This command only does the building and publishing, so need to also:
git tag selenium-${SE_VERSION}
git push origin selenium-${SE_VERSION}
./go <language>:docs
and if the release is of a language with nightly versions, just run the versions command again, it will set to nightly by default:
./go <language>:version
git commit -am "updating versions to nightly"
git push
Whether major or minor release, Java has a few extra steps:
- Go to http://oss.sonatype.org, log in
- Navigate to https://oss.sonatype.org/#stagingRepositories
- Look in content and make sure all jars and signed files are there
- Close staging repository with message
- Wait for checks and click "release" button; if the "Release" button is not enabled, this means that the checks for the repo are still running, you can click on the activity tab to see what activities are pending. This normally takes a few minutes.
.
Click to see IE Driver release steps
- Update Atoms (optional)
bazel build //javascript/ie-driver:header
- copy
bazel-bin/javascript/ie-driver/atoms.h
tocpp/iedriver/Generated
directory
- Open cpp/IEDriverServer.sln in Visual Studio 2022
- In Solution Explorer tab, right click IEDriver/Resource Files/IEDriver.rc & view code
- Update version number in 4 places:
FILEVERSION
,PRODUCTVERSION
,FileVersion
,ProductVersion
- In Solution Explorer tab, right click IEDriverServer/Resource Files/IEDriverServer.rc & view code
- Update version number in 4 places:
FILEVERSION
,PRODUCTVERSION
,FileVersion
,ProductVersion
- Solution Configurations Dropdown in toolbar at top, select
Release
, - In Solution Platform Dropdown, select
x64
& in Build menu, selectBuild Solution
- In Solution Platform Dropdown, select
x86
& in Build menu, selectBuild Solution
- In build/cpp/x64/Release/IEDriverServer.exe compress file as
IEDriverServer_x64_x.y.z.zip
& upload it to Github Release - In build/cpp/Win32/Release/IEDriverServer.exe compress file as
IEDriverServer_Win32_x.y.z.zip
& upload it to Github Release
Skip this section if you are doing a patch release
- Create a new release https://github.com/SeleniumHQ/selenium/releases/new
- Use the recently created tag
- Set the title to be whatever the release is.
- Add artifacts from
/build/dist
to GitHub Release and publish - Copy contents from the markdown file in
build/dist
to the release description - Now publish the release.
- Update versions (either)
- Review Renovate's PRs (preferred).
- Do it immediately:
./scripts/update-versions.sh ${SE_VERSION}
- Add new examples — is there anything new in this version that needs example code?
- Review / Commit / Push
- Make sure everything is passing — https://github.com/SeleniumHQ/seleniumhq.github.io/actions
- Update versions and start a blog —
./scripts/release-updates.sh ${SE_VERSION}
- Update the newly created blog post as necessary
- Copy the GitHub user information in the console to the correct places in a blog post
- Make sure dates are properly updated in
selenium-clients-and-webdriver-bindings.html
- Review / Commit / Push
- Mastodon
- BlueSky
- Threads
This wiki is not where you want to be! Visit the Wiki Home for more useful links
Getting Involved
Build Instructions
Releasing Selenium
Updating Chromium DevTools
Ruby Development
Python Bindings
Ruby Bindings
WebDriverJs
This content is being evaluated for where it belongs
Architectural Overview
Automation Atoms
HtmlUnitDriver
Lift Style API
LoadableComponent
Logging
PageFactory
RemoteWebDriver
Xpath In WebDriver
Moved to Official Documentation
Bot Style Tests
Buck
Continuous Integration
Crazy Fun Build
Design Patterns
Desired Capabilities
Developer Tips
Domain Driven Design
Firefox Driver
Firefox Driver Internals
Focus Stealing On Linux
Frequently Asked Questions
Google Summer Of Code
Grid Platforms
History
Internet Explorer Driver
InternetExplorerDriver Internals
Next Steps
PageObjects
RemoteWebDriverServer
Roadmap
Scaling WebDriver
SeIDE Release Notes
Selenium Emulation
Selenium Grid 4
Selenium Help
Shipping Selenium 3
The Team
TLC Meetings
Untrusted SSL Certificates
WebDriver For Mobile Browsers
Writing New Drivers