-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
fix(dev): Patch firefox_profile.py from Selenium package #29887
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -119,6 +119,14 @@ install-py-dev() { | |
# https://github.com/unbit/uwsgi/issues/2361 | ||
pip install https://storage.googleapis.com/python-arm64-wheels/uWSGI-2.0.19.1-cp38-cp38-macosx_11_0_universal2.whl | ||
fi | ||
# This hack is until we can upgrade to a newer version of Selenium | ||
fx_profile=.venv/lib/python3.8/site-packages/selenium/webdriver/firefox/firefox_profile.py | ||
# Remove this block when upgrading the selenium package | ||
if grep -q "or setting is" "${fx_profile}"; then | ||
echo "We are patching ${fx_profile}. You will see this message only once." | ||
sed -i .bak 's/or setting is/or setting ==/' ${fx_profile} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you instead generate a patch and put it in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, lemme take this over and show you what I mean. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the suggestion. WFM |
||
diff -U1 ${fx_profile} ${fx_profile}.bak | ||
fi | ||
# SENTRY_LIGHT_BUILD=1 disables webpacking during setup.py. | ||
# Webpacked assets are only necessary for devserver (which does it lazily anyways) | ||
# and acceptance tests, which webpack automatically if run. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@armenzg can you comment the PR link/number here for future reference?