You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here are some key observations to aid the review process:
⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review
Performance Improvement The change from (@ignored & id).any? to @ignored.intersect?(id) may improve performance for large sets. Verify if this change is intentional and if it maintains the same functionality.
Configuration Update The target Ruby version has been updated to 3.1. Ensure that all code is compatible with Ruby 3.1 and that no deprecated features are being used.
Documentation Update The supported Ruby version in the README has been updated to 3.1. Verify that this change is consistent with other documentation and release notes.
-return if (@ignored & id).any?+return if @ignored.intersect?(id)
Apply this suggestion
Suggestion importance[1-10]: 9
Why: The suggestion accurately reflects the change made in the PR, replacing a manual intersection check with the intersect? method, which is more idiomatic and potentially more efficient in Ruby 3.1.
9
Use method chaining to improve readability of conditional statements
Consider using the then method to chain the conditional return, improving code readability.
return if @ignored.intersect?(id)
-return if @allowed.any? && (@allowed & id).none?+return if @allowed.any?.then { (@allowed & id).none? }
Apply this suggestion
Suggestion importance[1-10]: 5
Why: While the suggestion to use method chaining with then could improve readability, it is a stylistic choice and does not significantly impact functionality or performance. The original code is already clear and concise.
An error occurred during the fetch of the repository rules_rubyruby~ruby because the Ruby version truffleruby-24.1.1 was not found in ruby-build definitions.
This missing definition caused the package @@rules_rubyruby~ruby// to fail to fetch, leading to the failure of the target //rb/spec/unit/selenium/webdriver:guard.
As a result, the build analysis failed, and no test targets were found, although testing was requested.
Relevant error logs:
1: ##[group]Operating System2: Ubuntu
...
971: Package 'php-symfony-debug-bundle' is not installed, so not removed972: Package 'php-symfony-dependency-injection' is not installed, so not removed973: Package 'php-symfony-deprecation-contracts' is not installed, so not removed974: Package 'php-symfony-discord-notifier' is not installed, so not removed975: Package 'php-symfony-doctrine-bridge' is not installed, so not removed976: Package 'php-symfony-doctrine-messenger' is not installed, so not removed977: Package 'php-symfony-dom-crawler' is not installed, so not removed978: Package 'php-symfony-dotenv' is not installed, so not removed979: Package 'php-symfony-error-handler' is not installed, so not removed
...
1864: �[32mAnalyzing:�[0m 63 targets (199 packages loaded, 1253 targets configured)1865: �[32m[1 / 1]�[0m checking cached actions1866: �[32mAnalyzing:�[0m 63 targets (200 packages loaded, 1469 targets configured)1867: �[32m[1 / 1]�[0m checking cached actions1868: �[32mINFO: �[0mRepository rules_ruby~~ruby~ruby instantiated at:1869: <builtin>: in <toplevel>1870: Repository rule rb_download defined at:1871: /home/runner/.bazel/external/rules_ruby~/ruby/private/download.bzl:242:30: in <toplevel>1872: �[31m�[1mERROR: �[0mAn error occurred during the fetch of repository 'rules_ruby~~ruby~ruby':1873: Traceback (most recent call last):1874: File "/home/runner/.bazel/external/rules_ruby~/ruby/private/download.bzl", line 90, column 32, in _rb_download_impl1875: _install_via_ruby_build(repository_ctx, version)1876: File "/home/runner/.bazel/external/rules_ruby~/ruby/private/download.bzl", line 230, column 13, in _install_via_ruby_build1877: fail("%s\n%s" % (result.stdout, result.stderr))1878: Error in fail: 1879: ruby-build: definition not found: truffleruby-24.1.11880: �[31m�[1mERROR: �[0mno such package '@@rules_ruby~~ruby~ruby//': 1881: ruby-build: definition not found: truffleruby-24.1.11882: �[31m�[1mERROR: �[0m/home/runner/work/selenium/selenium/rb/spec/unit/selenium/webdriver/BUILD.bazel:28:17: //rb/spec/unit/selenium/webdriver:guard depends on @@rules_ruby~~ruby~ruby//:toolchain in repository @@rules_ruby~~ruby~ruby which failed to fetch. no such package '@@rules_ruby~~ruby~ruby//': 1883: ruby-build: definition not found: truffleruby-24.1.11884: �[31m�[1mERROR: �[0mAnalysis of target '//rb/spec/unit/selenium/webdriver:guard' failed; build aborted: Analysis failed1885: �[32mINFO: �[0mElapsed time: 12.203s, Critical Path: 1.52s1886: �[32mINFO: �[0m1 process: 1 internal.1887: �[31m�[1mERROR: �[0mBuild did NOT complete successfully1888: �[31m�[1mFAILED:�[0m 1889: �[31m�[1mERROR: �[0mNo test targets were found, yet testing was requested1890: �[0m1891: ##[error]Process completed with exit code 1.
✨ CI feedback usage guide:
The CI feedback tool (/checks) automatically triggers when a PR has a failed check.
The tool analyzes the failed checks and provides several feedbacks:
Failed stage
Failed test name
Failure summary
Relevant error logs
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where {repo_name} is the name of the repository, {run_number} is the run number of the failed check, and {job_number} is the job number of the failed check.
Configuration options
enable_auto_checks_feedback - if set to true, the tool will automatically provide feedback when a check is failed. Default is true.
excluded_checks_list - a list of checks to exclude from the feedback, for example: ["check1", "check2"]. Default is an empty list.
enable_help_text - if set to true, the tool will provide a help message with the feedback. Default is true.
persistent_comment - if set to true, the tool will overwrite a previous checks comment with the new feedback. Default is true.
final_update_message - if persistent_comment is true and updating a previous checks message, the tool will also create a new message: "Persistent checks updated to latest commit". Default is true.
See more information about the checks tool in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
3.0 is EOL in Apr 2024
https://endoflife.date/ruby
PR Type
enhancement, dependencies
Description
Changes walkthrough 📝
8 files
server.rb
Use shorthand block syntax in server methodsrb/lib/selenium/server.rb
bidi.rb
Use shorthand block syntax in BiDi methodsrb/lib/selenium/webdriver/bidi.rb
log_inspector.rb
Use shorthand block syntax in log inspector methodsrb/lib/selenium/webdriver/bidi/log_inspector.rb
has_network_interception.rb
Use shorthand block syntax in network interception methodsrb/lib/selenium/webdriver/common/driver_extensions/has_network_interception.rb
logger.rb
Use `intersect?` method for array intersectionrb/lib/selenium/webdriver/common/logger.rb
intersect?method.script.rb
Use shorthand block syntax in script methodsrb/lib/selenium/webdriver/common/script.rb
bridge.rb
Use shorthand block syntax in bridge methodsrb/lib/selenium/webdriver/remote/bridge.rb
guards.rb
Use shorthand block syntax in guard methodsrb/lib/selenium/webdriver/support/guards.rb
4 files
selenium-devtools.gemspec
Update required Ruby version to 3.1 in gemspecrb/selenium-devtools.gemspec
selenium-webdriver.gemspec
Update required Ruby version to 3.1 in gemspecrb/selenium-webdriver.gemspec
MODULE.bazel
Update gem checksums in Bazel configurationMODULE.bazel
.ruby-version
Update Ruby version to 3.1.6rb/.ruby-version
3 files
ci-rbe.yml
Update JRuby version in CI workflow.github/workflows/ci-rbe.yml
ci-ruby.yml
Update Ruby versions in CI matrix.github/workflows/ci-ruby.yml
.rubocop.yml
Update target Ruby version in RuboCop configurationrb/.rubocop.yml
1 files
README.md
Update supported Ruby version in READMErb/README.md