Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,18 @@ task :update_browsers, [:channel] do |_task, arguments|

puts 'pinning updated browsers and drivers'
Bazel.execute('run', args, '//scripts:pinned_browsers')
SeleniumRake.git.add('common/repositories.bzl')
end

desc 'Update Selenium Manager to latest release'
task :update_manager do |_task, _arguments|
puts 'Updating Selenium Manager references'
Bazel.execute('run', [], '//scripts:selenium_manager')

SeleniumRake.git.add('common/selenium_manager.bzl')
end

desc 'Update multitool binaries to latest releases'
task :update_multitool do |_task, _arguments|
puts 'Updating multitool binary versions'
Bazel.execute('run', [], '//scripts:update_multitool_binaries')
SeleniumRake.git.add('multitool.lock.json')
end

desc 'Update dependencies for release'
Expand All @@ -92,19 +88,6 @@ task :update_cdp, [:channel] do |_task, arguments|

puts "Updating Chrome DevTools references to include latest from #{chrome_channel} channel"
Bazel.execute('run', args, '//scripts:update_cdp')

['common/devtools/',
'dotnet/src/webdriver/DevTools/',
'dotnet/src/webdriver/Selenium.WebDriver.csproj',
'dotnet/test/common/DevTools/',
'dotnet/test/common/CustomDriverConfigs/',
'dotnet/selenium-dotnet-version.bzl',
'java/src/org/openqa/selenium/devtools/',
'javascript/selenium-webdriver/BUILD.bazel',
'py/BUILD.bazel',
'rb/lib/selenium/devtools/',
'rb/Gemfile.lock',
'rake_tasks/java.rake'].each { |file| SeleniumRake.git.add(file) }
end

task ios_driver: 'appium:build'
Expand All @@ -113,7 +96,6 @@ desc 'Update AUTHORS file'
task :authors do
puts 'Updating AUTHORS file'
sh "(git log --use-mailmap --format='%aN <%aE>' ; cat .OLD_AUTHORS) | sort -uf > AUTHORS"
SeleniumRake.git.add('AUTHORS')
end

# Example: `./go prep_release[4.31.0,early-stable]`
Expand Down Expand Up @@ -293,7 +275,6 @@ namespace :all do

text = File.read(file).gsub(old_version_pattern, "The latest released version of Selenium is #{major_minor}")
File.write(file, text)
SeleniumRake.git.add(file)
end
end

Expand Down
1 change: 0 additions & 1 deletion rake_tasks/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def self.update_changelog(version, language, path, changelog, header)

content = File.read(changelog)
File.write(changelog, "#{header}\n#{entries}\n\n#{content}")
git.add(changelog)
end

def self.verify_package_published(url)
Expand Down
2 changes: 0 additions & 2 deletions rake_tasks/dotnet.rake
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ task :version, [:version] do |_task, arguments|
file = 'dotnet/selenium-dotnet-version.bzl'
text = File.read(file).gsub(old_version, new_version)
File.open(file, 'w') { |f| f.puts text }
SeleniumRake.git.add(file)
end

desc 'Update .NET dependencies to latest versions'
Expand All @@ -112,5 +111,4 @@ task :pin do
Bazel.execute('run', ['--', '--dependencies-file', "#{Dir.pwd}/dotnet/paket.dependencies",
'--output-folder', "#{Dir.pwd}/dotnet"],
'@rules_dotnet//tools/paket2bazel:paket2bazel')
%w[dotnet/paket.lock dotnet/paket.nuget.bzl].each { |f| SeleniumRake.git.add(f) }
end
2 changes: 0 additions & 2 deletions rake_tasks/java.rake
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ desc 'Pin Maven dependencies'
task :pin do
args = ['--action_env=RULES_JVM_EXTERNAL_REPIN=1']
Bazel.execute('run', args, '@maven//:pin')
%w[MODULE.bazel java/maven_install.json].each { |file| SeleniumRake.git.add(file) }
end

desc 'Update Java changelog'
Expand All @@ -382,7 +381,6 @@ task :version, [:version] do |_task, arguments|
file = 'java/version.bzl'
text = File.read(file).gsub(old_version, new_version)
File.open(file, 'w') { |f| f.puts text }
SeleniumRake.git.add(file)
end

desc 'Run Java formatter (google-java-format)'
Expand Down
2 changes: 0 additions & 2 deletions rake_tasks/node.rake
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ end
desc 'Pin JavaScript dependencies via pnpm lockfile'
task :pin do
Bazel.execute('run', ['--', 'install', '--dir', Dir.pwd, '--lockfile-only'], '@pnpm//:pnpm')
SeleniumRake.git.add('pnpm-lock.yaml')
end

desc 'Update JavaScript dependencies and refresh lockfile (use "latest" to bump ranges)'
Expand Down Expand Up @@ -119,7 +118,6 @@ task :version, [:version] do |_task, arguments|
%w[javascript/selenium-webdriver/package.json javascript/selenium-webdriver/BUILD.bazel].each do |file|
text = File.read(file).gsub(old_version, new_version)
File.open(file, 'w') { |f| f.puts text }
SeleniumRake.git.add(file)
end
end

Expand Down
2 changes: 0 additions & 2 deletions rake_tasks/python.rake
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ task :version, [:version] do |_task, arguments|
'py/docs/source/conf.py'].each do |file|
text = File.read(file).gsub(old_version, new_version)
File.open(file, 'w') { |f| f.puts text }
SeleniumRake.git.add(file)
end

old_short_version = old_version.split('.')[0..1].join('.')
Expand All @@ -150,7 +149,6 @@ task :version, [:version] do |_task, arguments|
conf = 'py/docs/source/conf.py'
text = File.read(conf).gsub(old_short_version, new_short_version)
File.open(conf, 'w') { |f| f.puts text }
SeleniumRake.git.add(conf)
end

desc 'Run Python linter (ruff check + format)'
Expand Down
5 changes: 0 additions & 5 deletions rake_tasks/ruby.rake
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ task :version, [:version] do |_task, arguments|
file = 'rb/lib/selenium/webdriver/version.rb'
text = File.read(file).gsub(old_version, new_version)
File.open(file, 'w') { |f| f.puts text }
SeleniumRake.git.add(file)

Rake::Task['rb:update'].invoke
end
Expand Down Expand Up @@ -194,16 +193,12 @@ task :pin, [:force] do |_task, arguments|

new_content = module_content.sub(/ gem_checksums = \{[^}]+\},/m, formatted)
File.write(module_bazel, new_content)

SeleniumRake.git.add(module_bazel)
end

desc 'Update Ruby dependencies and sync checksums to MODULE.bazel'
task :update do
puts 'updating and pinning gem versions'
Bazel.execute('run', [], '//rb:bundle-update')
SeleniumRake.git.add('rb/Gemfile.lock')
Bazel.execute('run', [], '//rb:rbs-update')
SeleniumRake.git.add('rb/rbs_collection.lock.yaml')
Rake::Task['rb:pin'].invoke
end
3 changes: 0 additions & 3 deletions rake_tasks/rust.rake
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ task :version, [:version] do |_task, arguments|
['rust/Cargo.toml', 'rust/BUILD.bazel'].each do |file|
text = File.read(file).gsub(old_version, new_version)
File.open(file, 'w') { |f| f.puts text }
SeleniumRake.git.add(file)
end

Rake::Task['rust:update'].invoke
SeleniumRake.git.add('rust/Cargo.Bazel.lock')
SeleniumRake.git.add('rust/Cargo.lock')
end
Loading