-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[rb] fix unit tests #16357
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
[rb] fix unit tests #16357
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
why restrict prism to |
Similarly it looks like v4.36.0 (#16332) has done something similar with the I can confirm that I've been using |
You both have a point. The issue we faced is in our build (we need to use JRuby); the dependencies showed a conflict with Rubocop. We will check this again when releasing 4.37. |
* update devtools versions * update selenium manager versions * update maven dependency versions * update authors file * bump versions in preparation for release * WIP - rough auto-update of changelog, please edit * Update sha256 for signed selenium-manager-windows.exe artifact * Updating tests and linting readme. * Updating Gemfile.lock * Rolling back json upgrade * Pinning rust lock * Pinning rust lock * Removing guards and switching to macOS [skip ci] * Removing guards --------- Co-authored-by: Selenium CI Bot <[email protected]> Co-authored-by: Diego Molina <[email protected]> Co-authored-by: Boni Garcia <[email protected]> Co-authored-by: Diego Molina <[email protected]>
This project does not use prism at all. At most it is being used by rubocop during local development. It was added in SeleniumHQ#16357 but it is unclear to me why. I just bumped it for this repo, perhaps that JRuby issue has since been fixed. Either way, it should not be part of the gemspec.
* [rb] Remove `prism` dependency This project does not use prism at all. At most it is being used by rubocop during local development. It was added in #16357 but it is unclear to me why. I just bumped it for this repo, perhaps that JRuby issue has since been fixed. Either way, it should not be part of the gemspec. * Pin prism to 1.4.0 for the project It fails to build with the following error: src/prism.c: In function ‘context_terminator’: src/prism.c:8651:62: error: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Werror=sign-conversion] 8651 | return token->type < 32 && (context_terminators[context] & (1 << token->type)); | ^ cc1: all warnings being treated as errors --------- Co-authored-by: Diego Molina <[email protected]>
User description
This pull request makes a small change to the gem specification by adding a new dependency.
prism
gem (version~> 1.0
,< 1.5
) as a dependency inrb/selenium-webdriver.gemspec
to ensure compatibility with JRuby🔄 Types of changes
PR Type
Bug fix
Description
Add
prism
dependency constraint to Ruby gemspecFix version compatibility issues in unit tests
Restrict
prism
to versions 1.0 to 1.5Diagram Walkthrough
File Walkthrough
selenium-webdriver.gemspec
Add prism dependency constraint
rb/selenium-webdriver.gemspec
prism
gem dependency with version constraint~> 1.0, < 1.5