Skip to content

Commit 8ed0f37

Browse files
authored
Merge branch 'trunk' into py_use_env_driver_location
2 parents b3e3484 + 01ed12f commit 8ed0f37

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+836
-435
lines changed

.github/workflows/pre-release.yml

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ jobs:
7272
with:
7373
ruby-version: '3.1'
7474
working-directory: 'rb'
75+
- name: Setup curl for Ubuntu
76+
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev
7577
- name: "Prep git"
7678
run: |
7779
git config --local user.email "[email protected]"

.github/workflows/stage-release.yml

+32-23
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ name: Release Staging
22

33
on:
44
pull_request:
5-
types: [closed]
5+
types: [ closed ]
6+
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: 'Selenium version to release'
10+
required: true
611

712
env:
813
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -11,52 +16,56 @@ env:
1116
jobs:
1217
github-release:
1318
if: >
14-
github.event.pull_request.merged == true &&
19+
(github.event.pull_request.merged == true &&
1520
github.repository_owner == 'seleniumhq' &&
16-
startsWith(github.event.pull_request.head.ref, 'release-preparation-')
21+
startsWith(github.event.pull_request.head.ref, 'release-preparation-')) ||
22+
(github.event_name == 'workflow_dispatch' &&
23+
github.event.inputs.version != '' &&
24+
github.repository_owner == 'seleniumhq')
1725
runs-on: ubuntu-latest
26+
permissions: write-all
1827
steps:
1928
- name: Checkout repo
2029
uses: actions/checkout@v4
2130
- name: Extract version from branch name
22-
id: extract_version
31+
if: github.event.pull_request.merged == true
2332
run: |
2433
VERSION=$(echo $BRANCH_NAME | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
2534
echo "VERSION=$VERSION" >> $GITHUB_ENV
35+
- name: Extract version from workflow input
36+
if: github.event_name == 'workflow_dispatch'
37+
run: |
38+
VERSION=${{ inputs.version }}
39+
echo "VERSION=$VERSION" >> $GITHUB_ENV
2640
- name: Prep git
2741
run: |
2842
git config --local user.email "[email protected]"
2943
git config --local user.name "Selenium CI Bot"
30-
- name: Tag Release
31-
run: |
32-
git tag selenium-${{ env.VERSION }}
33-
git push origin selenium-${{ env.VERSION }}
34-
- name: Update Nightly Tag to Remove pre-release
35-
run: |
36-
git fetch --tags
37-
git tag -d nightly || echo "Nightly tag not found"
38-
git tag nightly
39-
git push origin refs/tags/nightly --force
44+
# - name: Tag Release
45+
# run: |
46+
# git tag selenium-${{ env.VERSION }} || echo "Tag already exists"
47+
# git push origin selenium-${{ env.VERSION }} || echo "Tag already exists remotely"
4048
- name: Setup Java
4149
uses: actions/setup-java@v3
4250
with:
4351
java-version: 17
4452
distribution: 'temurin'
53+
- name: Setup curl for Ubuntu
54+
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev
4555
- name: Build and Stage Packages
4656
run: ./go all:package[--config=release]
4757
- name: Generate Draft Release
48-
uses: softprops/action-gh-release@v2
58+
uses: ncipollo/release-action@v1
4959
with:
50-
name: Selenium ${{ env.VERSION }}
51-
body: |
52-
## Detailed Changelogs by Component
53-
<img src="https://www.selenium.dev/images/programming/java.svg" width="20" height="20"> **[Java](https://github.com/SeleniumHQ/selenium/blob/trunk/java/CHANGELOG)** &nbsp;&nbsp;&nbsp; | &nbsp;&nbsp;&nbsp;<img src="https://www.selenium.dev/images/programming/python.svg" width="20" height="20"> **[Python](https://github.com/SeleniumHQ/selenium/blob/trunk/py/CHANGES)** &nbsp;&nbsp;&nbsp; | &nbsp;&nbsp;&nbsp;<img src="https://www.selenium.dev/images/programming/csharp.svg" width="20" height="20"> **[DotNet](https://github.com/SeleniumHQ/selenium/blob/trunk/dotnet/CHANGELOG)** &nbsp;&nbsp;&nbsp; | &nbsp;&nbsp;&nbsp;<img src="https://www.selenium.dev/images/programming/ruby.svg" width="20" height="20"> **[Ruby](https://github.com/SeleniumHQ/selenium/blob/trunk/rb/CHANGES)** &nbsp;&nbsp;&nbsp; | &nbsp;&nbsp;&nbsp;<img src="https://www.selenium.dev/images/programming/javascript.svg" width="20" height="20"> **[JavaScript](https://github.com/SeleniumHQ/selenium/blob/trunk/javascript/node/selenium-webdriver/CHANGES.md)** &nbsp;&nbsp;&nbsp; | &nbsp;&nbsp;&nbsp;<img src="https://www.selenium.dev/images/browsers/internet-explorer.svg" width="20" height="20"> **[IEDriver](https://github.com/SeleniumHQ/selenium/blob/trunk/cpp/iedriverserver/CHANGELOG)**
54-
<br>
55-
tag_name: selenium-${{ env.VERSION }}
60+
artifacts: "build/dist/*.*"
61+
bodyFile: "scripts/github-actions/release_header.md"
5662
draft: true
57-
generate_release_notes: true
63+
generateReleaseNotes: true
64+
name: "Selenium ${{ env.VERSION }}"
5865
prerelease: false
59-
files: build/dist/*.*
66+
skipIfReleaseExists: true
67+
tag: "selenium-${{ env.VERSION }}"
68+
commit: "${{ github.sha }}"
6069

6170
update-documentation:
6271
needs: github-release

.github/workflows/update-documentation.yml

+16-13
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
git config --local user.email "[email protected]"
4747
git config --local user.name "Selenium CI Bot"
4848
- name: Setup Java
49-
uses: actions/setup-java@v3
49+
uses: actions/setup-java@v4
5050
with:
5151
java-version: 17
5252
distribution: 'temurin'
@@ -58,7 +58,7 @@ jobs:
5858
git format-patch -1 HEAD --stdout > java-docs.patch
5959
- name: Upload patch
6060
if: needs.determine-language.outputs.language == 'all' || needs.determine-language.outputs.language == 'java'
61-
uses: actions/upload-artifact@v2
61+
uses: actions/upload-artifact@v4
6262
with:
6363
name: java-docs-patch
6464
path: java-docs.patch
@@ -76,10 +76,12 @@ jobs:
7676
git config --local user.email "[email protected]"
7777
git config --local user.name "Selenium CI Bot"
7878
- name: Setup Java
79-
uses: actions/setup-java@v3
79+
uses: actions/setup-java@v4
8080
with:
8181
java-version: 17
8282
distribution: 'temurin'
83+
- name: Setup curl for Ubuntu
84+
run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev
8385
- name: Update Documentation
8486
if: needs.determine-language.outputs.language == 'all' || needs.determine-language.outputs.language == 'ruby'
8587
run: ./go rb:docs
@@ -88,7 +90,7 @@ jobs:
8890
git format-patch -1 HEAD --stdout > ruby-docs.patch
8991
- name: Upload patch
9092
if: needs.determine-language.outputs.language == 'all' || needs.determine-language.outputs.language == 'ruby'
91-
uses: actions/upload-artifact@v2
93+
uses: actions/upload-artifact@v4
9294
with:
9395
name: ruby-docs-patch
9496
path: ruby-docs.patch
@@ -106,7 +108,7 @@ jobs:
106108
git config --local user.email "[email protected]"
107109
git config --local user.name "Selenium CI Bot"
108110
- name: Set up Python 3.8
109-
uses: actions/setup-python@v4
111+
uses: actions/setup-python@v5
110112
with:
111113
python-version: 3.8
112114
- name: Install dependencies
@@ -121,7 +123,7 @@ jobs:
121123
git format-patch -1 HEAD --stdout > python-docs.patch
122124
- name: Upload patch
123125
if: needs.determine-language.outputs.language == 'all' || needs.determine-language.outputs.language == 'python'
124-
uses: actions/upload-artifact@v2
126+
uses: actions/upload-artifact@v4
125127
with:
126128
name: python-docs-patch
127129
path: python-docs.patch
@@ -150,7 +152,7 @@ jobs:
150152
git format-patch -1 HEAD --stdout > dotnet-docs.patch
151153
- name: Upload patch
152154
if: needs.determine-language.outputs.language == 'all' || needs.determine-language.outputs.language == 'dotnet'
153-
uses: actions/upload-artifact@v2
155+
uses: actions/upload-artifact@v4
154156
with:
155157
name: dotnet-docs-patch
156158
path: dotnet-docs.patch
@@ -179,7 +181,7 @@ jobs:
179181
git format-patch -1 HEAD --stdout > node-docs.patch
180182
- name: Upload patch
181183
if: needs.determine-language.outputs.language == 'all' || needs.determine-language.outputs.language == 'node'
182-
uses: actions/upload-artifact@v2
184+
uses: actions/upload-artifact@v4
183185
with:
184186
name: node-docs-patch
185187
path: node-docs.patch
@@ -199,34 +201,35 @@ jobs:
199201
git checkout -b api-docs-${{ inputs.tag }}
200202
- name: Download Java patch
201203
if: needs.determine-language.outputs.language == 'all' || needs.determine-language.outputs.language == 'java'
202-
uses: actions/download-artifact@v2
204+
uses: actions/download-artifact@v4
203205
with:
204206
name: java-docs-patch
205207
path: patches/
206208
- name: Download Ruby patch
207209
if: needs.determine-language.outputs.language == 'all' || needs.determine-language.outputs.language == 'ruby'
208-
uses: actions/download-artifact@v2
210+
uses: actions/download-artifact@v4
209211
with:
210212
name: ruby-docs-patch
211213
path: patches/
212214
- name: Download Python patch
213215
if: needs.determine-language.outputs.language == 'all' || needs.determine-language.outputs.language == 'python'
214-
uses: actions/download-artifact@v2
216+
uses: actions/download-artifact@v4
215217
with:
216218
name: python-docs-patch
217219
path: patches/
218220
- name: Download .NET patch
219221
if: needs.determine-language.outputs.language == 'all' || needs.determine-language.outputs.language == 'dotnet'
220-
uses: actions/download-artifact@v2
222+
uses: actions/download-artifact@v4
221223
with:
222224
name: dotnet-docs-patch
223225
path: patches/
224226
- name: Download Node patch
225227
if: needs.determine-language.outputs.language == 'all' || needs.determine-language.outputs.language == 'node'
226-
uses: actions/download-artifact@v2
228+
uses: actions/download-artifact@v4
227229
with:
228230
name: node-docs-patch
229231
path: patches/
232+
merge-multiple: true
230233
- name: Apply patches
231234
run: |
232235
for patch in patches/*.patch; do

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ py/docs/source/**/*
7878
py/build/
7979
py/LICENSE
8080
py/pytestdebug.log
81+
py/python.iml
8182
selenium.egg-info/
8283
third_party/java/jetty/jetty-repacked.jar
8384
*.user

AUTHORS

+11-9
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ Ahmed Ashour <[email protected]>
2323
2424
Ajay Kemparaj <[email protected]>
2525
26-
Ákos Lukács <[email protected]>
2726
2827
Al Sutton <[email protected]>
2928
Alan Baird <[email protected]>
@@ -137,7 +136,6 @@ Carlos Ortega <[email protected]>
137136
Carlos Villela
138137
Carson McDonald <[email protected]>
139138
ce86f3bb9faf71e <[email protected]>
140-
Cédric Boutillier <[email protected]>
141139
Cervac Petru <[email protected]>
142140
cezarelnazli <[email protected]>
143141
@@ -174,6 +172,7 @@ Coty Rosenblath <[email protected]>
174172
Craig Nishina <[email protected]>
175173
176174
customcommander <[email protected]>
175+
Cédric Boutillier <[email protected]>
177176
178177
Damien Allison <[email protected]>
179178
@@ -232,6 +231,7 @@ Dmitry Tokarev <[email protected]>
232231
Dmytro Shpakovskyi <[email protected]>
233232
234233
doctor-house <[email protected]>
234+
Dominic Evans <[email protected]>
235235
Dominik Dary <[email protected]>
236236
Dominik Rauch <[email protected]>
237237
Dominik Stadler <[email protected]>
@@ -267,7 +267,6 @@ Eric Plaster <[email protected]>
267267
Erik Beans <[email protected]>
268268
Erik E. Beerepoot <[email protected]>
269269
Erik Kuefler <[email protected]>
270-
Étienne Barrié <[email protected]>
271270
Evan Sangaline <[email protected]>
272271
Evgeniy Roldukhin <[email protected]>
273272
@@ -279,10 +278,10 @@ Florian LOPES <[email protected]>
279278
Florian Mutter <[email protected]>
280279
Florian Zipperle <[email protected]>
281280
Francis Bergin <[email protected]>
281+
Franz Liedke <[email protected]>
282282
François Freitag <[email protected]>
283283
François JACQUES <[email protected]>
284284
François Reynaud <[email protected]>
285-
Franz Liedke <[email protected]>
286285
Frederik Carlier <[email protected]>
287286
Fredrik Wollsén <[email protected]>
288287
@@ -425,7 +424,6 @@ Jim van Musscher <[email protected]>
425424
426425
427426
jmuramatsu <[email protected]>
428-
João Luca Ripardo <[email protected]>
429427
Joaquín Romero <[email protected]>
430428
jochenberger <[email protected]>
431429
Joe Bandenburg <[email protected]>
@@ -457,12 +455,12 @@ Jonathan Lipps <[email protected]>
457455
Jonathon Kereliuk <[email protected]>
458456
Jongkuen Hong <[email protected]>
459457
Jordan Mace <[email protected]>
460-
Jörg Sautter <[email protected]>
461458
462459
Josh Goldberg <[email protected]>
463460
Joshua Bruning <[email protected]>
464461
Joshua Fehler <[email protected]>
465462
Joshua Grant <[email protected]>
463+
João Luca Ripardo <[email protected]>
466464
JT Archie <[email protected]>
467465
jugglinmike <[email protected]>
468466
Julian Didier <[email protected]>
@@ -477,6 +475,7 @@ Justin Tulloss <[email protected]>
477475
Justine Tunney <[email protected]>
478476
479477
478+
Jörg Sautter <[email protected]>
480479
Kamen Litchev <[email protected]>
481480
Karl Kuehn <[email protected]>
482481
Karl-Philipp Richter <[email protected]>
@@ -530,10 +529,10 @@ Lucas Diniz <[email protected]>
530529
Lucas Tierney <[email protected]>
531530
Luis Correia <[email protected]>
532531
Luis Pflamminger <[email protected]>
533-
Lukáš Linhart <[email protected]>
534532
Luke Hill <[email protected]>
535533
Luke Inman-Semerau <[email protected]>
536534
535+
Lukáš Linhart <[email protected]>
537536
Lyudmil Latinov <[email protected]>
538537
Machinexa2 <[email protected]>
539538
Maciej Pakulski <[email protected]>
@@ -809,15 +808,16 @@ Stuart Knightly <[email protected]>
809808
sufyanAbbasi <[email protected]>
810809
811810
sunnyyukaige <[email protected]>
811+
Swastik Baranwal <[email protected]>
812812
813813
814814
815815
Takeshi Kishi <[email protected]>
816816
Takuho NAKANO <[email protected]>
817817
Takuma Chiba <[email protected]>
818-
Tamás Buka <[email protected]>
819818
Tamas Utasi <[email protected]>
820819
Tamsil Sajid Amani <[email protected]>
820+
Tamás Buka <[email protected]>
821821
Tatsuya Hoshino <[email protected]>
822822
Terence Haddock
823823
@@ -860,7 +860,6 @@ Ulf Adams <[email protected]>
860860
Ulrich Buchgraber <[email protected]>
861861
User253489 <[email protected]>
862862
863-
Václav Votípka <[email protected]>
864863
Valery Yatsynovich <[email protected]>
865864
Varun Menon <[email protected]>
866865
varunsurapaneni <[email protected]>
@@ -885,6 +884,7 @@ Vladimir Támara Patiño <[email protected]>
885884
VladimirPodolyan <[email protected]>
886885
Vladislav Velichko <[email protected]>
887886
Vyvyan Codd
887+
Václav Votípka <[email protected]>
888888
Werner Robitza <[email protected]>
889889
890890
@@ -906,4 +906,6 @@ Zhuo Peng <[email protected]>
906906
907907
Zoltar - Knower of All
908908
909+
Ákos Lukács <[email protected]>
910+
Étienne Barrié <[email protected]>
909911
保木本将之 <[email protected]>

0 commit comments

Comments
 (0)