Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump json from 2.10.1 to 2.10.2 in /examples/ruby #2220

Open
wants to merge 6 commits into
base: trunk
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 12, 2025

Bumps json from 2.10.1 to 2.10.2.

Release notes

Sourced from json's releases.

v2.10.2

What's Changed

  • Fix a potential crash in the C extension parser.
  • Raise a ParserError on all incomplete unicode escape sequence. This was the behavior until 2.10.0 unadvertently changed it.
  • Ensure document snippets that are included in parser errors don't include truncated multibyte characters.
  • Ensure parser error snippets are valid UTF-8.
  • Fix JSON::GeneratorError#detailed_message on Ruby < 3.2

Full Changelog: ruby/json@v2.10.1...v2.10.2

Changelog

Sourced from json's changelog.

2025-03-12 (2.10.2)

  • Fix a potential crash in the C extension parser.
  • Raise a ParserError on all incomplete unicode escape sequence. This was the behavior until 2.10.0 unadvertently changed it.
  • Ensure document snippets that are included in parser errors don't include truncated multibyte characters.
  • Ensure parser error snippets are valid UTF-8.
  • Fix JSON::GeneratorError#detailed_message on Ruby < 3.2
Commits
  • 350c1fd Release 2.10.2
  • c56db31 Merge commit from fork
  • cf242d8 Fix potential out of bound read in json_string_unescape.
  • 57911f1 Merge pull request #762 from byroot/invalid-escape
  • 7d0637b Raise a ParserError on all incomplete unicode escape sequence.
  • c079793 Avoid fast-path IO writes when IO has ext enc
  • ac30b69 Merge pull request #757 from rahim/fix-generator-error-no-method-error
  • 2e015ff Fix JSON::GeneratorError#detailed_message with Ruby < 3.2
  • f3e1136 Merge pull request #756 from byroot/utf8-snippets
  • e144793 Ensure parser error snippets are valid UTF-8
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [json](https://github.com/ruby/json) from 2.10.1 to 2.10.2.
- [Release notes](https://github.com/ruby/json/releases)
- [Changelog](https://github.com/ruby/json/blob/master/CHANGES.md)
- [Commits](ruby/json@v2.10.1...v2.10.2)

---
updated-dependencies:
- dependency-name: json
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Mar 12, 2025
Copy link

netlify bot commented Mar 12, 2025

Deploy Preview for selenium-dev ready!

Name Link
🔨 Latest commit 3be243b
🔍 Latest deploy log https://app.netlify.com/sites/selenium-dev/deploys/67e6aeea0761b90008759be1
😎 Deploy Preview https://deploy-preview-2220--selenium-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

qodo-merge-pro bot commented Mar 16, 2025

CI Feedback 🧐

(Feedback updated until commit 3be243b)

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: tests (macos, stable)

Failed stage: Run tests [❌]

Failed test name: Remote WebDriver tests (starts remotely, uploads, downloads)

Failure summary:

The action failed because of 3 failing tests in the Ruby RSpec test suite:

1. All failures are related to the Selenium::Server.get method in remote_webdriver_spec.rb (line 10)

2. The error is a TypeError: "no implicit conversion of String into Integer"
3. The issue occurs
when passing arguments to the Selenium Server with args: %w[--selenium-manager true
--enable-managed-downloads true]

The tests attempted to run 3 times (as configured in the retry settings) but failed consistently
with the same error.

Relevant error logs:
1:  ##[group]Operating System
2:  macOS
...

268:  Version: 11.0.26+4
269:  Path: /Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/11.0.26-4/arm64/Contents/Home
270:  ##[endgroup]
271:  Creating settings.xml with server-id: github
272:  Writing to /Users/runner/.m2/settings.xml
273:  ##[group]Run nick-invision/retry@v3.0.2
274:  with:
275:  timeout_minutes: 20
276:  max_attempts: 3
277:  command: cd examples/ruby
278:  bundle exec rspec
279:  
280:  retry_wait_seconds: 10
281:  polling_interval_seconds: 1
282:  warning_on_retry: true
283:  continue_on_error: false
284:  env:
...

593:  # ./spec/elements/locators_spec.rb:43
594:  37) Element Locators with relative locators finds element to the left
595:  # These are reference following the documentation example
596:  # ./spec/elements/locators_spec.rb:47
597:  38) Element Locators with relative locators finds element to the right
598:  # These are reference following the documentation example
599:  # ./spec/elements/locators_spec.rb:51
600:  39) Element Locators with relative locators finds near element
601:  # These are reference following the documentation example
602:  # ./spec/elements/locators_spec.rb:55
603:  40) Element Locators with relative locators chains relative locators
604:  # These are reference following the documentation example
605:  # ./spec/elements/locators_spec.rb:59
606:  Failures:
607:  1) Mouse move by offset offset from element
608:  Failure/Error: driver.action.scroll_to(driver.find_element(id: 'bottom')).perform
609:  Selenium::WebDriver::Error::NoSuchElementError:
610:  no such element: Unable to locate element: {"method":"css selector","selector":"#bottom"}
611:  (Session info: chrome=134.0.6998.166); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
612:  # ./spec/actions_api/mouse_spec.rb:95:in 'block (3 levels) in <top (required)>'
613:  # ------------------
614:  # --- Caused by: ---
615:  # Selenium::WebDriver::Error::WebDriverError:
616:  #   0   chromedriver                        0x000000010535b6c8 cxxbridge1$str$ptr + 2791212
...

618:  2   chromedriver                        0x0000000104ea5e30 cxxbridge1$string$len + 92928
619:  3   chromedriver                        0x0000000104eed170 cxxbridge1$string$len + 384576
620:  4   chromedriver                        0x0000000104f2e5f8 cxxbridge1$string$len + 651976
621:  5   chromedriver                        0x0000000104ee12fc cxxbridge1$string$len + 335820
622:  6   chromedriver                        0x00000001053206c4 cxxbridge1$str$ptr + 2549544
623:  7   chromedriver                        0x0000000105323988 cxxbridge1$str$ptr + 2562540
624:  8   chromedriver                        0x000000010530071c cxxbridge1$str$ptr + 2418560
625:  9   chromedriver                        0x00000001053241e8 cxxbridge1$str$ptr + 2564684
626:  10  chromedriver                        0x00000001052f1750 cxxbridge1$str$ptr + 2357172
627:  11  chromedriver                        0x0000000105343f58 cxxbridge1$str$ptr + 2695100
628:  12  chromedriver                        0x00000001053440e0 cxxbridge1$str$ptr + 2695492
629:  13  chromedriver                        0x0000000105353910 cxxbridge1$str$ptr + 2759028
630:  14  libsystem_pthread.dylib             0x0000000198355f94 _pthread_start + 136
631:  15  libsystem_pthread.dylib             0x0000000198350d34 thread_start + 8
632:  2) Remote WebDriver uploads
633:  Failure/Error: file_name = driver.find_element(id: 'uploaded-files')
634:  Selenium::WebDriver::Error::NoSuchElementError:
635:  no such element: Unable to locate element: {"method":"css selector","selector":"#uploaded\-files"}
636:  (Session info: chrome=134.0.6998.166); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
637:  # ./spec/drivers/remote_webdriver_spec.rb:38:in 'block (2 levels) in <top (required)>'
638:  # ------------------
639:  # --- Caused by: ---
640:  # Selenium::WebDriver::Error::WebDriverError:
641:  #   0   chromedriver                        0x0000000104c2b6c8 cxxbridge1$str$ptr + 2791212
...

643:  2   chromedriver                        0x0000000104775e30 cxxbridge1$string$len + 92928
644:  3   chromedriver                        0x00000001047bd170 cxxbridge1$string$len + 384576
645:  4   chromedriver                        0x00000001047fe5f8 cxxbridge1$string$len + 651976
646:  5   chromedriver                        0x00000001047b12fc cxxbridge1$string$len + 335820
647:  6   chromedriver                        0x0000000104bf06c4 cxxbridge1$str$ptr + 2549544
648:  7   chromedriver                        0x0000000104bf3988 cxxbridge1$str$ptr + 2562540
649:  8   chromedriver                        0x0000000104bd071c cxxbridge1$str$ptr + 2418560
650:  9   chromedriver                        0x0000000104bf41e8 cxxbridge1$str$ptr + 2564684
651:  10  chromedriver                        0x0000000104bc1750 cxxbridge1$str$ptr + 2357172
652:  11  chromedriver                        0x0000000104c13f58 cxxbridge1$str$ptr + 2695100
653:  12  chromedriver                        0x0000000104c140e0 cxxbridge1$str$ptr + 2695492
654:  13  chromedriver                        0x0000000104c23910 cxxbridge1$str$ptr + 2759028
655:  14  libsystem_pthread.dylib             0x0000000198355f94 _pthread_start + 136
656:  15  libsystem_pthread.dylib             0x0000000198350d34 thread_start + 8
657:  3) File Upload uploads
658:  Failure/Error: file_name = driver.find_element(id: 'uploaded-files')
659:  Selenium::WebDriver::Error::NoSuchElementError:
660:  no such element: Unable to locate element: {"method":"css selector","selector":"#uploaded\-files"}
661:  (Session info: chrome=134.0.6998.166); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
662:  # ./spec/elements/file_upload_spec.rb:16:in 'block (2 levels) in <top (required)>'
663:  # ------------------
664:  # --- Caused by: ---
665:  # Selenium::WebDriver::Error::WebDriverError:
666:  #   0   chromedriver                        0x00000001050236c8 cxxbridge1$str$ptr + 2791212
...

668:  2   chromedriver                        0x0000000104b6de30 cxxbridge1$string$len + 92928
669:  3   chromedriver                        0x0000000104bb5170 cxxbridge1$string$len + 384576
670:  4   chromedriver                        0x0000000104bf65f8 cxxbridge1$string$len + 651976
671:  5   chromedriver                        0x0000000104ba92fc cxxbridge1$string$len + 335820
672:  6   chromedriver                        0x0000000104fe86c4 cxxbridge1$str$ptr + 2549544
673:  7   chromedriver                        0x0000000104feb988 cxxbridge1$str$ptr + 2562540
674:  8   chromedriver                        0x0000000104fc871c cxxbridge1$str$ptr + 2418560
675:  9   chromedriver                        0x0000000104fec1e8 cxxbridge1$str$ptr + 2564684
676:  10  chromedriver                        0x0000000104fb9750 cxxbridge1$str$ptr + 2357172
677:  11  chromedriver                        0x000000010500bf58 cxxbridge1$str$ptr + 2695100
678:  12  chromedriver                        0x000000010500c0e0 cxxbridge1$str$ptr + 2695492
679:  13  chromedriver                        0x000000010501b910 cxxbridge1$str$ptr + 2759028
680:  14  libsystem_pthread.dylib             0x0000000198355f94 _pthread_start + 136
681:  15  libsystem_pthread.dylib             0x0000000198350d34 thread_start + 8
682:  Finished in 6 minutes 46 seconds (files took 6.89 seconds to load)
683:  185 examples, 3 failures, 40 pending
684:  Failed examples:
685:  rspec ./spec/actions_api/mouse_spec.rb:93 # Mouse move by offset offset from element
686:  rspec ./spec/drivers/remote_webdriver_spec.rb:26 # Remote WebDriver uploads
687:  rspec ./spec/elements/file_upload_spec.rb:8 # File Upload uploads
688:  ##[warning]Attempt 1 failed. Reason: Child_process exited with error code 1
689:  ##[endgroup]
...

800:  # ./spec/elements/locators_spec.rb:43
801:  37) Element Locators with relative locators finds element to the left
802:  # These are reference following the documentation example
803:  # ./spec/elements/locators_spec.rb:47
804:  38) Element Locators with relative locators finds element to the right
805:  # These are reference following the documentation example
806:  # ./spec/elements/locators_spec.rb:51
807:  39) Element Locators with relative locators finds near element
808:  # These are reference following the documentation example
809:  # ./spec/elements/locators_spec.rb:55
810:  40) Element Locators with relative locators chains relative locators
811:  # These are reference following the documentation example
812:  # ./spec/elements/locators_spec.rb:59
813:  Failures:
814:  1) Remote WebDriver starts remotely
815:  Got 0 failures and 2 other errors:
816:  1.1) Failure/Error:
817:  Selenium::Server.get(:latest,
818:  background: true,
819:  args: %w[--selenium-manager true --enable-managed-downloads true])
820:  TypeError:
821:  no implicit conversion of String into Integer
822:  # ./spec/drivers/remote_webdriver_spec.rb:10:in 'block (2 levels) in <top (required)>'
823:  # ./spec/drivers/remote_webdriver_spec.rb:16:in 'block (2 levels) in <top (required)>'
824:  1.2) Failure/Error:
825:  Selenium::Server.get(:latest,
826:  background: true,
827:  args: %w[--selenium-manager true --enable-managed-downloads true])
828:  TypeError:
829:  no implicit conversion of String into Integer
830:  # ./spec/drivers/remote_webdriver_spec.rb:10:in 'block (2 levels) in <top (required)>'
831:  # ./spec/drivers/remote_webdriver_spec.rb:17:in 'block (2 levels) in <top (required)>'
832:  2) Remote WebDriver uploads
833:  Got 0 failures and 2 other errors:
834:  2.1) Failure/Error:
835:  Selenium::Server.get(:latest,
836:  background: true,
837:  args: %w[--selenium-manager true --enable-managed-downloads true])
838:  TypeError:
839:  no implicit conversion of String into Integer
840:  # ./spec/drivers/remote_webdriver_spec.rb:10:in 'block (2 levels) in <top (required)>'
841:  # ./spec/drivers/remote_webdriver_spec.rb:16:in 'block (2 levels) in <top (required)>'
842:  2.2) Failure/Error:
843:  Selenium::Server.get(:latest,
844:  background: true,
845:  args: %w[--selenium-manager true --enable-managed-downloads true])
846:  TypeError:
847:  no implicit conversion of String into Integer
848:  # ./spec/drivers/remote_webdriver_spec.rb:10:in 'block (2 levels) in <top (required)>'
849:  # ./spec/drivers/remote_webdriver_spec.rb:17:in 'block (2 levels) in <top (required)>'
850:  3) Remote WebDriver downloads
851:  Got 0 failures and 2 other errors:
852:  3.1) Failure/Error:
853:  Selenium::Server.get(:latest,
854:  background: true,
855:  args: %w[--selenium-manager true --enable-managed-downloads true])
856:  TypeError:
857:  no implicit conversion of String into Integer
858:  # ./spec/drivers/remote_webdriver_spec.rb:10:in 'block (2 levels) in <top (required)>'
859:  # ./spec/drivers/remote_webdriver_spec.rb:16:in 'block (2 levels) in <top (required)>'
860:  3.2) Failure/Error:
861:  Selenium::Server.get(:latest,
862:  background: true,
863:  args: %w[--selenium-manager true --enable-managed-downloads true])
864:  TypeError:
865:  no implicit conversion of String into Integer
866:  # ./spec/drivers/remote_webdriver_spec.rb:10:in 'block (2 levels) in <top (required)>'
867:  # ./spec/drivers/remote_webdriver_spec.rb:17:in 'block (2 levels) in <top (required)>'
868:  Finished in 7 minutes 38 seconds (files took 2.83 seconds to load)
869:  185 examples, 3 failures, 40 pending
870:  Failed examples:
871:  rspec ./spec/drivers/remote_webdriver_spec.rb:19 # Remote WebDriver starts remotely
872:  rspec ./spec/drivers/remote_webdriver_spec.rb:26 # Remote WebDriver uploads
873:  rspec ./spec/drivers/remote_webdriver_spec.rb:42 # Remote WebDriver downloads
874:  ##[warning]Attempt 2 failed. Reason: Child_process exited with error code 1
875:  ##[endgroup]
...

986:  # ./spec/elements/locators_spec.rb:43
987:  37) Element Locators with relative locators finds element to the left
988:  # These are reference following the documentation example
989:  # ./spec/elements/locators_spec.rb:47
990:  38) Element Locators with relative locators finds element to the right
991:  # These are reference following the documentation example
992:  # ./spec/elements/locators_spec.rb:51
993:  39) Element Locators with relative locators finds near element
994:  # These are reference following the documentation example
995:  # ./spec/elements/locators_spec.rb:55
996:  40) Element Locators with relative locators chains relative locators
997:  # These are reference following the documentation example
998:  # ./spec/elements/locators_spec.rb:59
999:  Failures:
1000:  1) Remote WebDriver starts remotely
1001:  Got 0 failures and 2 other errors:
1002:  1.1) Failure/Error:
1003:  Selenium::Server.get(:latest,
1004:  background: true,
1005:  args: %w[--selenium-manager true --enable-managed-downloads true])
1006:  TypeError:
1007:  no implicit conversion of String into Integer
1008:  # ./spec/drivers/remote_webdriver_spec.rb:10:in 'block (2 levels) in <top (required)>'
1009:  # ./spec/drivers/remote_webdriver_spec.rb:16:in 'block (2 levels) in <top (required)>'
1010:  1.2) Failure/Error:
1011:  Selenium::Server.get(:latest,
1012:  background: true,
1013:  args: %w[--selenium-manager true --enable-managed-downloads true])
1014:  TypeError:
1015:  no implicit conversion of String into Integer
1016:  # ./spec/drivers/remote_webdriver_spec.rb:10:in 'block (2 levels) in <top (required)>'
1017:  # ./spec/drivers/remote_webdriver_spec.rb:17:in 'block (2 levels) in <top (required)>'
1018:  2) Remote WebDriver uploads
1019:  Got 0 failures and 2 other errors:
1020:  2.1) Failure/Error:
1021:  Selenium::Server.get(:latest,
1022:  background: true,
1023:  args: %w[--selenium-manager true --enable-managed-downloads true])
1024:  TypeError:
1025:  no implicit conversion of String into Integer
1026:  # ./spec/drivers/remote_webdriver_spec.rb:10:in 'block (2 levels) in <top (required)>'
1027:  # ./spec/drivers/remote_webdriver_spec.rb:16:in 'block (2 levels) in <top (required)>'
1028:  2.2) Failure/Error:
1029:  Selenium::Server.get(:latest,
1030:  background: true,
1031:  args: %w[--selenium-manager true --enable-managed-downloads true])
1032:  TypeError:
1033:  no implicit conversion of String into Integer
1034:  # ./spec/drivers/remote_webdriver_spec.rb:10:in 'block (2 levels) in <top (required)>'
1035:  # ./spec/drivers/remote_webdriver_spec.rb:17:in 'block (2 levels) in <top (required)>'
1036:  3) Remote WebDriver downloads
1037:  Got 0 failures and 2 other errors:
1038:  3.1) Failure/Error:
1039:  Selenium::Server.get(:latest,
1040:  background: true,
1041:  args: %w[--selenium-manager true --enable-managed-downloads true])
1042:  TypeError:
1043:  no implicit conversion of String into Integer
1044:  # ./spec/drivers/remote_webdriver_spec.rb:10:in 'block (2 levels) in <top (required)>'
1045:  # ./spec/drivers/remote_webdriver_spec.rb:16:in 'block (2 levels) in <top (required)>'
1046:  3.2) Failure/Error:
1047:  Selenium::Server.get(:latest,
1048:  background: true,
1049:  args: %w[--selenium-manager true --enable-managed-downloads true])
1050:  TypeError:
1051:  no implicit conversion of String into Integer
1052:  # ./spec/drivers/remote_webdriver_spec.rb:10:in 'block (2 levels) in <top (required)>'
1053:  # ./spec/drivers/remote_webdriver_spec.rb:17:in 'block (2 levels) in <top (required)>'
1054:  Finished in 6 minutes 47 seconds (files took 3.06 seconds to load)
1055:  185 examples, 3 failures, 40 pending
1056:  Failed examples:
1057:  rspec ./spec/drivers/remote_webdriver_spec.rb:19 # Remote WebDriver starts remotely
1058:  rspec ./spec/drivers/remote_webdriver_spec.rb:26 # Remote WebDriver uploads
1059:  rspec ./spec/drivers/remote_webdriver_spec.rb:42 # Remote WebDriver downloads
1060:  ##[endgroup]
1061:  ##[error]Final attempt failed. Child_process exited with error code 1
1062:  Post job cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant