Skip to content

Commit 282dbe2

Browse files
authored
Merge branch 'trunk' into rb_delete_cookie_issue
2 parents f05e0eb + 848df8b commit 282dbe2

File tree

322 files changed

+499
-7033
lines changed

Some content is hidden

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

322 files changed

+499
-7033
lines changed

.bazelignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ java/build/production
2323
java/client/build
2424
java/server/build
2525
javascript/grid-ui/node_modules
26-
javascript/node/selenium-webdriver/node_modules
26+
javascript/selenium-webdriver/node_modules
2727
node_modules

.bazelrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ build:release --stamp
119119
build:release --compilation_mode=opt
120120

121121
# As regular `release` but all the build work happens on the RBE
122-
build:remote_release --config=release
123-
build:remote_release --config=remote
124-
build:remote_release --remote_download_toplevel
122+
build:rbe_release --config=release
123+
build:rbe_release --config=rbe
124+
build:rbe_release --remote_download_toplevel
125125

126126
# RBE
127127
import %workspace%/.bazelrc.remote

.bazelrc.remote

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
11
# The RBE to use
2-
build:remote --bes_results_url=https://gypsum.cluster.engflow.com/invocation
3-
build:remote --bes_backend=grpcs://gypsum.cluster.engflow.com
4-
build:remote --remote_executor=grpcs://gypsum.cluster.engflow.com
5-
build:remote --remote_cache=grpcs://gypsum.cluster.engflow.com
2+
build:rbe --bes_results_url=https://gypsum.cluster.engflow.com/invocation
3+
build:rbe --bes_backend=grpcs://gypsum.cluster.engflow.com
4+
build:rbe --remote_executor=grpcs://gypsum.cluster.engflow.com
5+
build:rbe --remote_cache=grpcs://gypsum.cluster.engflow.com
66

77
# The number of cores available
8-
build:remote -j 50
8+
build:rbe -j 50
99

10-
build:remote --define=EXECUTOR=remote
11-
build:remote --experimental_inmemory_dotd_files
12-
build:remote --experimental_inmemory_jdeps_files
13-
build:remote --remote_timeout=3600
14-
build:remote --spawn_strategy=remote,local
15-
#build:remote --nolegacy_important_outputs
16-
build:remote --incompatible_strict_action_env=true
10+
build:rbe --define=EXECUTOR=remote
11+
build:rbe --experimental_inmemory_dotd_files
12+
build:rbe --experimental_inmemory_jdeps_files
13+
build:rbe --remote_timeout=3600
14+
build:rbe --spawn_strategy=remote,local
15+
#build:rbe --nolegacy_important_outputs
16+
build:rbe --incompatible_strict_action_env=true
1717

18-
build:remote --crosstool_top=//common/remote-build/cc:toolchain
19-
build:remote --extra_execution_platforms=//common/remote-build:platform
20-
build:remote --extra_toolchains=//common/remote-build:cc-toolchain
21-
build:remote --host_platform=//common/remote-build:platform
22-
build:remote --platforms=//common/remote-build:platform
23-
build:remote --cxxopt=-std=c++14
18+
build:rbe --crosstool_top=//common/remote-build/cc:toolchain
19+
build:rbe --extra_execution_platforms=//common/remote-build:platform
20+
build:rbe --extra_toolchains=//common/remote-build:cc-toolchain
21+
build:rbe --host_platform=//common/remote-build:platform
22+
build:rbe --platforms=//common/remote-build:platform
23+
build:rbe --cxxopt=-std=c++14
2424

2525
# The Docker images are running Linux
26-
build:remote --cpu=k8
27-
build:remote --host_cpu=k8
26+
build:rbe --cpu=k8
27+
build:rbe --host_cpu=k8
2828

29-
build:remote --disk_cache=
29+
build:rbe --disk_cache=
3030

31-
build:remote --incompatible_enable_cc_toolchain_resolution
32-
build:remote --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
33-
test:remote --test_env=DISPLAY=:99.0
34-
test:remote --test_tag_filters=-skip-rbe,-remote
31+
build:rbe --incompatible_enable_cc_toolchain_resolution
32+
build:rbe --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
33+
test:rbe --test_env=DISPLAY=:99.0
34+
test:rbe --test_tag_filters=-exclusive-if-local,-skip-rbe,-remote
3535

3636
# Env vars we can hard code
37-
build:remote --action_env=HOME=/home/dev
38-
build:remote --action_env=PATH=/bin:/usr/bin:/usr/local/bin
39-
test:remote --test_env=PATH=/bin:/usr/bin:/usr/local/bin
40-
test:remote --test_env=HOME=/home/dev
37+
build:rbe --action_env=HOME=/home/dev
38+
build:rbe --action_env=PATH=/bin:/usr/bin:/usr/local/bin
39+
test:rbe --test_env=PATH=/bin:/usr/bin:/usr/local/bin
40+
test:rbe --test_env=HOME=/home/dev
4141

4242
# Make sure we sniff credentials properly
43-
build:remote --credential_helper=gypsum.cluster.engflow.com=%workspace%/scripts/credential-helper.sh
43+
build:rbe --credential_helper=gypsum.cluster.engflow.com=%workspace%/scripts/credential-helper.sh
4444

4545
# Use pinned browsers when running remotely
46-
build:remote --//common:pin_browsers
46+
build:rbe --//common:pin_browsers
4747

4848
# The remote build machines are pretty small, and 50 threads may leave them
4949
# thrashing, but our dev machines are a lot larger. Scale the workload so we
5050
# make reasonable usage of everything, everywhere, all at once.
51-
build:remote --local_resources=cpu='HOST_CPUS*10'
52-
build:remote --local_resources=memory='HOST_RAM*4.0'
51+
build:rbe --local_resources=cpu='HOST_CPUS*10'
52+
build:rbe --local_resources=memory='HOST_RAM*4.0'
5353

5454
# A small hint that we're running our tests remotely
55-
test:remote --test_env=REMOTE_BUILD=1
55+
test:rbe --test_env=REMOTE_BUILD=1
5656

5757
# Wait for up to 5 minutes for a test to pass
58-
test:remote --test_timeout=600
58+
test:rbe --test_timeout=600
5959

6060
# Extend the remote config for CI
61-
build:remote-ci --config=remote
62-
build:remote-ci --curses=no --color=yes --show_timestamps --show_progress_rate_limit=5
63-
build:remote-ci --bes_upload_mode=wait_for_upload_complete
64-
build:remote-ci --remote_download_minimal
61+
build:rbe-ci --config=rbe
62+
build:rbe-ci --curses=no --color=yes --show_timestamps --show_progress_rate_limit=5
63+
build:rbe-ci --bes_upload_mode=wait_for_upload_complete
64+
build:rbe-ci --remote_download_minimal
6565

6666
# Configuration changes suggested by EngFlow
67-
build:remote --grpc_keepalive_time=30s
68-
build:remote --nolegacy_important_outputs
67+
build:rbe --grpc_keepalive_time=30s
68+
build:rbe --nolegacy_important_outputs

.github/workflows/nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ jobs:
174174
cache-key: javascript-nightly
175175
node-version: '22.x'
176176
run: |
177-
sed -i 's|https://registry.npmjs.org/|https://npm.pkg.github.com|g' javascript/node/selenium-webdriver/package.json
178-
sed -i 's|"name": "selenium-webdriver"|"name": "@seleniumhq/selenium-webdriver"|g' javascript/node/selenium-webdriver/package.json
177+
sed -i 's|https://registry.npmjs.org/|https://npm.pkg.github.com|g' javascript/selenium-webdriver/package.json
178+
sed -i 's|"name": "selenium-webdriver"|"name": "@seleniumhq/selenium-webdriver"|g' javascript/selenium-webdriver/package.json
179179
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}" >> ~/.npmrc
180180
echo "@seleniumhq:registry=https://npm.pkg.github.com" >> ~/.npmrc
181181
echo "always-auth=true" >> ~/.npmrc

.github/workflows/stage-release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,13 @@ jobs:
1919
(github.event.pull_request.merged == true &&
2020
github.repository_owner == 'seleniumhq' &&
2121
startsWith(github.event.pull_request.head.ref, 'release-preparation-')) ||
22-
(github.event_name == 'workflow_dispatch' &&
23-
github.event.inputs.version != '' &&
22+
(github.event_name == 'workflow_dispatch' &&
23+
github.event.inputs.version != '' &&
2424
github.repository_owner == 'seleniumhq')
2525
runs-on: ubuntu-latest
2626
permissions: write-all
27+
outputs:
28+
version: ${{ env.VERSION }}
2729
steps:
2830
- name: Checkout repo
2931
uses: actions/checkout@v4
@@ -41,10 +43,6 @@ jobs:
4143
run: |
4244
git config --local user.email "[email protected]"
4345
git config --local user.name "Selenium CI Bot"
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"
4846
- name: Setup Java
4947
uses: actions/setup-java@v3
5048
with:
@@ -71,4 +69,5 @@ jobs:
7169
needs: github-release
7270
uses: ./.github/workflows/update-documentation.yml
7371
with:
74-
tag: selenium-${{ needs.github-release.outputs.version }}
72+
version: ${{ needs.github-release.outputs.version }}
73+
sha: ${{ github.sha }}

.github/workflows/update-documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
if: ${{ matrix.language == 'node' }}
8888
run: |
8989
npm install
90-
npm install --prefix javascript/node/selenium-webdriver
90+
npm install --prefix javascript/selenium-webdriver
9191
- name: Update Documentation
9292
run: ./go ${{ matrix.language }}:docs
9393
- name: Documentation Pull Request

.gitignore

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ dotnet/packages/
1919
java/client/src/org/openqa/selenium/ie/IeReturnTypes.java
2020
java/server/test/org/openqa/selenium/example
2121
javascript/deps.js
22-
javascript/node/selenium-webdriver/node_modules/
23-
javascript/node/selenium-webdriver/lib/atoms/find-elements.js
24-
javascript/node/selenium-webdriver/lib/atoms/get-attribute.js
25-
javascript/node/selenium-webdriver/lib/atoms/is-displayed.js
26-
javascript/node/selenium-webdriver/lib/atoms/mutation-listener.js
22+
javascript/selenium-webdriver/node_modules/
23+
javascript/selenium-webdriver/lib/atoms/find-elements.js
24+
javascript/selenium-webdriver/lib/atoms/get-attribute.js
25+
javascript/selenium-webdriver/lib/atoms/is-displayed.js
26+
javascript/selenium-webdriver/lib/atoms/mutation-listener.js
2727
javascript/safari-driver/node_modules/
2828
javascript/webdriver/devtools/types/
2929
.idea/vcs.xml
@@ -137,7 +137,7 @@ MODULE.bazel.lock
137137
# Engflow
138138
*.crt
139139
*.key
140-
javascript/node/selenium-webdriver/.vscode/settings.json
140+
javascript/selenium-webdriver/.vscode/settings.json
141141

142142
dotnet-bin
143143
.metadata/

.skipped-tests

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@
1919
-//javascript/atoms:test-edge
2020
-//javascript/atoms:test-firefox-beta
2121
-//javascript/chrome-driver/...
22-
-//javascript/node/selenium-webdriver:test-bidi-network-test.js-chrome
23-
-//javascript/node/selenium-webdriver:test-builder-test.js-chrome
24-
-//javascript/node/selenium-webdriver:test-builder-test.js-firefox
25-
-//javascript/node/selenium-webdriver:test-chrome-devtools-test.js-chrome
26-
-//javascript/node/selenium-webdriver:test-chrome-options-test.js-chrome
27-
-//javascript/node/selenium-webdriver:test-chrome-service-test.js-chrome
28-
-//javascript/node/selenium-webdriver:test-firefox-options-test.js-firefox
29-
-//javascript/node/selenium-webdriver:test-lib-capabilities-test.js-chrome
22+
-//javascript/selenium-webdriver:test-bidi-network-test.js-chrome
23+
-//javascript/selenium-webdriver:test-builder-test.js-chrome
24+
-//javascript/selenium-webdriver:test-builder-test.js-firefox
25+
-//javascript/selenium-webdriver:test-chrome-devtools-test.js-chrome
26+
-//javascript/selenium-webdriver:test-chrome-options-test.js-chrome
27+
-//javascript/selenium-webdriver:test-chrome-service-test.js-chrome
28+
-//javascript/selenium-webdriver:test-firefox-options-test.js-firefox
29+
-//javascript/selenium-webdriver:test-lib-capabilities-test.js-chrome
3030
-//py:test-chrome-test/selenium/webdriver/chrome/chrome_launcher_tests.py
3131
-//py:test-chrome-test/selenium/webdriver/chrome/chrome_service_tests.py
3232
-//py:test-chrome-test/selenium/webdriver/chrome/proxy_tests.py

BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ java_binary(
7272

7373
npm_link_package(
7474
name = "node_modules/selenium-webdriver",
75-
src = "//javascript/node/selenium-webdriver",
75+
src = "//javascript/selenium-webdriver",
7676
)
7777

7878
platform(

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ installed on your local machine, or by executing:
109109

110110
```shell
111111
# Example of adding a dep to the JS webdriver bindings
112-
cd javascript/node/selenium-webdriver
112+
cd javascript/selenium-webdriver
113113
bazel run javascript:pnpm -- install my-amazing-dep --dir $PWD
114114
```
115115

@@ -255,12 +255,12 @@ Build your code for the latest changes and run tests locally.
255255

256256
Node Tests
257257
```shell
258-
% bazel test //javascript/node/selenium-webdriver:tests
258+
% bazel test //javascript/selenium-webdriver:all
259259
```
260260

261261
Firefox Atom Tests
262262
```shell
263-
% bazel test --test_tag_filters=firefox //javascript/atoms/... //javascript/selenium-atoms/... //javascript/webdriver/...
263+
% bazel test --test_tag_filters=firefox //javascript/atoms/... //javascript/webdriver/...
264264
```
265265

266266
Grid UI Unit Tests
@@ -358,8 +358,8 @@ Check https://selenium.dev/support/ for a complete list of options to communicat
358358

359359
To access the EngFlow RBE, a developer needs to be granted access to our project
360360
container repository. Once that has been done, then any bazel command can be run
361-
remotely by using `--config=remote`. For example: `bazel build --config=remote
362-
grid` or `bazel test --config=remote java/test/...`
361+
remotely by using `--config=rbe`. For example: `bazel build --config=rbe
362+
grid` or `bazel test --config=rbe java/test/...`
363363

364364
When you run a remote build, one of the first lines of output from Bazel will
365365
include a link to the EngFlow UI so you can track the progress of the build and

0 commit comments

Comments
 (0)