Repository navigation
chore(deps): bump selenium 4.14.0+ - #25933
Conversation
|
Thanks @gnought for the change. As your point out with Selenium 4.10+ the |
There was a problem hiding this comment.
@gnought would you mind providing context for this change? Note irrespective of what the default values are this would still be deemed a breaking change given that the customizable Superset configurations are deemed a public interface.
CC @michael-s-molina for context regarding our recent discussion on breaking changes.
There was a problem hiding this comment.
In 4.9.0, service_log_path is one of parameters in WebDriver constructor.
https://github.com/SeleniumHQ/selenium/blob/bc7e0c7341fdde78cdd80ce572002a7866fd1769/py/selenium/webdriver/firefox/webdriver.py#L90-L110
However it is no longer in 4.10.0+.
https://github.com/SeleniumHQ/selenium/blob/c14d9678990942b93cb421c5567d0da7fb29c7bd/py/selenium/webdriver/firefox/webdriver.py#L50-L53
The following commit will support 4.10.0. It also opens for users to refine Webdrver Options and Service.
For sure, this will be a breaking change if users defining WEBDRIVER_CONFIGURATION themselves using 4.9.0 WebDriver defintion.
There was a problem hiding this comment.
@gnought thanks for refactoring, however I sense this change isn't suffice. The TL;DR is either:
- We hold of this change until 4.0 when the breaking window opens, or
- We need to mutate existing user defined
WEBDRIVER_CONFIGURATIONto conform to the new options/service structure.
For example in the current form if an implementation has defined the following,
WEBDRIVER_CONFIGURATION = {"service_log_path": "/dev/null"}then said configuration would be lost if this PR was merged because the service_log_path key isn't handled. It would be good to look at the Selenium changelog and check the codebase to see whether they have a mechanism for migrating from the old to new WebDriver class.
There was a problem hiding this comment.
@john-bodley, modified code a bit for backward compatibility. Hope it makes us feel safe.
|
FYI: if the change is made it should be updated to 4.14.x (or newer) to fix a CVE finding (refer linked #26992) |
|
Unfortunately, I think this missed the proposal window for breaking changes, and will have to go into 5.0. I'l add it to that project board now. I'm also not sure where we stand with the potential migration to Playwright (thus tagging @kgabryje here) and if that will become the standard by 5.0. If we want to proceed with this upgrade, which seems sensible, this PR will just need a rebase and bump to 4.14.x or greater by the time that breaking window re-opens. |
|
This has also been updated to auto-close #26992 when it does become mergeable. |
|
Hi @rusackas |
|
FYI I fixed the merge conflicts, can we remove the hold on this one? In any case if the interface changed we should add a line in |
@mistercrunch We can't remove the |
|
@gnought we want to push this through for Superset 5.0 (we're approaching the breaking window during which this can be merged). Would you be able to rebase this PR and fix failing CI checks? |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #25933 +/- ##
===========================================
+ Coverage 60.48% 83.01% +22.52%
===========================================
Files 1931 538 -1393
Lines 76236 39038 -37198
Branches 8568 0 -8568
===========================================
- Hits 46114 32406 -13708
+ Misses 28017 6632 -21385
+ Partials 2105 0 -2105
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
We are now good to merge this, but it looks like there's a conflict that needs resolution. I would hand-edit the |
|
@gnought It looks like after a rebase, you'll just need to do $ python3 -m venv venv
$ source venv/bin/activate
$ python3 -m pip install -r requirements/development.txt
$ ./scripts/uv-pip-compile.shI also had to CC @mistercrunch who can fact-check me on any of the above. Alternatively, if you can give me write access on this fork/branch, I can try to push a commit. |
|
@rusackas I sent you an invite to my fork. |
|
It replaces all that stuff with a comprehensive, blazing-fast, smart-caching-all-around solution |
|
bumped it to 4.27.1... let's see if it works! 🤞 |
|
I'm running into issues with generating screenshots with the webdriver following the version bump. Trying to fix locally edit this was a result of not having the proper dev packages installed within the |
Co-authored-by: Evan Rusackas <[email protected]>
SUMMARY
This is a proper fix for the PR #24538.
However we have to think about how the
WEBDRIVER_CONFIGURATIONshould be. The selenium 4.10+ only allowsoptionsandservicesto be passed to theWebDriverconstructor.https://github.com/SeleniumHQ/selenium/blob/c14d9678990942b93cb421c5567d0da7fb29c7bd/py/selenium/webdriver/firefox/webdriver.py#L41-L46
superset/superset/utils/webdriver.py
Lines 276 to 279 in a698587
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION