Skip to content

Commit 0d4251b

Browse files
authored
Merge branch 'trunk' into java-bidi-onNavigationCommitted
2 parents 5697f93 + 1e908d8 commit 0d4251b

File tree

7 files changed

+36
-46
lines changed

7 files changed

+36
-46
lines changed

.bazelrc.remote

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ build:rbe --disk_cache=
3131
build:rbe --incompatible_enable_cc_toolchain_resolution
3232
build:rbe --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
3333
test:rbe --test_env=DISPLAY=:99.0
34-
test:rbe --test_tag_filters=-exclusive-if-local,-skip-rbe,-remote
34+
test:rbe --test_tag_filters=-skip-rbe,-remote
3535

3636
# Env vars we can hard code
3737
build:rbe --action_env=HOME=/home/dev

.github/label-commenter-config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ labels:
122122
* 📮 [StackOverflow](https://stackoverflow.com/questions/tagged/selenium)
123123
* 🗣 Our [IRC/Slack/Matrix channels](https://www.selenium.dev/support/) where the community can help you as well
124124
action: close
125-
- name: help wanted
125+
- name: R-help wanted
126126
labeled:
127127
issue:
128128
body: |
129129
This issue is looking for contributors.
130130
131131
Please comment below or reach out to us through our [IRC/Slack/Matrix channels](https://www.selenium.dev/support/) if you are interested.
132-
- name: I-logging
132+
- name: J-logging
133133
labeled:
134134
issue:
135135
body: |

.github/workflows/issue-labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,3 +181,8 @@ jobs:
181181
with:
182182
github_token: ${{ secrets.GITHUB_TOKEN }}
183183
labels: J-awaiting answer
184+
- name: Remove label
185+
if: steps.version-check.outputs.is-outdated == 'true'
186+
uses: actions-ecosystem/action-remove-labels@v1
187+
with:
188+
labels: A-needs-triaging

.github/workflows/pre-release.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,21 @@ jobs:
3030
run: |
3131
git config --local user.email "[email protected]"
3232
git config --local user.name "Selenium CI Bot"
33-
if git rev-parse --verify release-${{ github.event.inputs.version }} >/dev/null 2>&1; then
34-
git branch -D release-${{ github.event.inputs.version }}
33+
if git rev-parse --verify release-preparation-${{ github.event.inputs.version }} >/dev/null 2>&1; then
34+
git branch -D release-preparation-${{ github.event.inputs.version }}
3535
fi
36-
git checkout -b release-${{ github.event.inputs.version }}
36+
git checkout -b release-preparation-${{ github.event.inputs.version }}
3737
- name: Update Rust Version
3838
run: |
39-
./go rust:version[${{ github.event.inputs.version }}]
40-
./go rust:version:commit
39+
./go rust:version ${{ github.event.inputs.version }}
40+
./go rust:changelog
41+
- name: Commit Rust updates
42+
run: git commit -m "update selenium manager version and rust changelog"
4143
- name: Push changes
4244
uses: ad-m/github-push-action@master
4345
with:
4446
github_token: ${{ secrets.SELENIUM_CI_TOKEN }}
45-
branch: release-${{ github.event.inputs.version }}
47+
branch: release-preparation-${{ github.event.inputs.version }}
4648
force: true
4749

4850
selenium-manager:
@@ -51,7 +53,7 @@ jobs:
5153
uses: ./.github/workflows/ci-rust.yml
5254
with:
5355
release: true
54-
branch: release-${{ github.event.inputs.version }}
56+
branch: release-preparation-${{ github.event.inputs.version }}
5557
secrets:
5658
SELENIUM_CI_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }}
5759

@@ -79,11 +81,11 @@ jobs:
7981
git config --local user.email "[email protected]"
8082
git config --local user.name "Selenium CI Bot"
8183
- name: Update browser versions
82-
run: ./go update_browsers[${{ github.event.inputs.chrome_channel }}]
84+
run: ./go update_browsers ${{ github.event.inputs.chrome_channel }}
8385
- name: Commit browser updates
8486
run: git commit -m "update pinned browser versions"
8587
- name: Update devtools versions
86-
run: ./go all:update_cdp[${{ github.event.inputs.chrome_channel }}]
88+
run: ./go all:update_cdp ${{ github.event.inputs.chrome_channel }}
8789
- name: Commit DevTools updates
8890
run: git commit -m "update devtools versions"
8991
- name: Update Selenium Manager versions
@@ -99,11 +101,11 @@ jobs:
99101
- name: Commit Authors updates
100102
run: git commit -m "update authors file"
101103
- name: Bump minor version
102-
run: ./go all:version
104+
run: ./go all:version ${{ github.event.inputs.version }}
103105
- name: Commit version updates
104106
run: git commit -m "bump versions in preparation for release"
105107
- name: Update changelog
106-
run: ./go all:changelog
108+
run: ./go all:changelogs
107109
- name: Commit changelog updates
108110
run: git commit -m "WIP - rough auto-update of changelog, please edit"
109111
- name: List untracked files

Rakefile

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ end
166166
desc 'Update Selenium Manager to latest release'
167167
task :update_manager do |_task, _arguments|
168168
puts 'Updating Selenium Manager references'
169-
Bazel.execute('run', args, '//scripts:selenium_manager')
169+
Bazel.execute('run', [], '//scripts:selenium_manager')
170170

171171
@git.add('common/selenium_manager.bzl')
172172
end
@@ -1092,18 +1092,6 @@ namespace :rust do
10921092
@git.add('rust/Cargo.Bazel.lock')
10931093
@git.add('rust/Cargo.lock')
10941094
end
1095-
1096-
# Creating a special task for this because Rust version needs to be managed at a different place than
1097-
# everything else; want to use changelog updates later in process
1098-
namespace :version do
1099-
desc 'Commits updates from Rust version changes'
1100-
task :commit do
1101-
@git.reset
1102-
commit!("update Rust version to #{rust_version}",
1103-
['rust/BUILD.bazel', 'rust/Cargo.Bazel.lock', 'rust/Cargo.lock', 'rust/Cargo.toml'])
1104-
commit!('Rust Changelog', ['rust/CHANGELOG.md'])
1105-
end
1106-
end
11071095
end
11081096

11091097
namespace :all do
@@ -1181,6 +1169,7 @@ namespace :all do
11811169
Rake::Task['py:lint'].invoke
11821170
end
11831171

1172+
# Example: `./go all:prepare 4.31.0 early-stable`
11841173
desc 'Update everything in preparation for a release'
11851174
task :prepare, [:version, :channel] do |_task, arguments|
11861175
version = arguments[:version]
@@ -1203,10 +1192,9 @@ namespace :all do
12031192
Rake::Task['node:version'].invoke(version)
12041193
Rake::Task['py:version'].invoke(version)
12051194
Rake::Task['dotnet:version'].invoke(version)
1206-
Rake::Task['rust:version'].invoke(version)
12071195

12081196
unless version == 'nightly'
1209-
Rake::Task['all:changelogs']
1197+
Rake::Task['all:changelogs'].invoke
12101198

12111199
major_minor = arguments[:version][/^\d+\.\d+/]
12121200
file = '.github/ISSUE_TEMPLATE/bug-report.yml'
@@ -1225,7 +1213,6 @@ namespace :all do
12251213
Rake::Task['node:changelog'].invoke
12261214
Rake::Task['py:changelog'].invoke
12271215
Rake::Task['dotnet:changelog'].invoke
1228-
Rake::Task['rust:changelog'].invoke
12291216
end
12301217
end
12311218

@@ -1324,13 +1311,3 @@ def update_changelog(version, language, path, changelog, header)
13241311
File.write(changelog, "#{header}\n#{commits}\n\n#{content}")
13251312
@git.add(changelog)
13261313
end
1327-
1328-
def commit!(message, files = [], all: false)
1329-
files.each do |file|
1330-
puts "adding: #{file}"
1331-
@git.add(file)
1332-
end
1333-
all ? @git.commit_all(message) : @git.commit(message)
1334-
rescue Git::FailedError => e
1335-
puts e.message
1336-
end

rb/spec/integration/selenium/webdriver/bidi/browsing_context_spec.rb

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ class BiDi
8181
expect(driver.execute_script('return window.devicePixelRatio')).to eq(2.0)
8282
end
8383

84-
it 'accepts users prompts without text' do
84+
it 'accepts users prompts without text',
85+
except: {browser: %i[edge chrome],
86+
reason: 'https://github.com/GoogleChromeLabs/chromium-bidi/issues/3281'} do
8587
browsing_context = described_class.new(bridge)
8688

8789
driver.navigate.to url_for('alerts.html')
@@ -94,7 +96,9 @@ class BiDi
9496
expect(driver.title).to eq('Testing Alerts')
9597
end
9698

97-
it 'accepts users prompts with text' do
99+
it 'accepts users prompts with text',
100+
except: {browser: %i[edge chrome],
101+
reason: 'https://github.com/GoogleChromeLabs/chromium-bidi/issues/3281'} do
98102
browsing_context = described_class.new(bridge)
99103
driver.navigate.to url_for('alerts.html')
100104
driver.find_element(id: 'prompt').click
@@ -106,7 +110,8 @@ class BiDi
106110
expect(driver.title).to eq('Testing Alerts')
107111
end
108112

109-
it 'rejects users prompts' do
113+
it 'rejects users prompts', except: {browser: %i[edge chrome],
114+
reason: 'https://github.com/GoogleChromeLabs/chromium-bidi/issues/3281'} do
110115
browsing_context = described_class.new(bridge)
111116
driver.navigate.to url_for('alerts.html')
112117
driver.find_element(id: 'alert').click

rb/spec/integration/selenium/webdriver/fedcm_spec.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
module Selenium
2323
module WebDriver
2424
module FedCM
25-
describe FedCM, exclusive: [{ bidi: false, reason: 'Not yet implemented with BiDi' }, { browser: %i[chrome edge] }] do
25+
describe FedCM,
26+
exclusive: [{bidi: false, reason: 'Not yet implemented with BiDi'}, {browser: %i[chrome edge]}] do
2627
let(:dialog) { driver.fedcm_dialog }
2728

2829
before { driver.get url_for('fedcm/fedcm.html') }
@@ -66,8 +67,8 @@ module FedCM
6667
expect(dialog.select_account(1)).to be_nil
6768
end
6869

69-
it 'clicks the dialog', except: { browser: %i[chrome edge],
70-
reason: "error: 'Use another account' not supported for this IDP" } do
70+
it 'clicks the dialog', except: {browser: %i[chrome edge],
71+
reason: "error: 'Use another account' not supported for this IDP"} do
7172
expect(dialog.click).to be_nil
7273
end
7374

0 commit comments

Comments
 (0)