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

Ignore URI::RFC3986_PARSER.escape deprecation warning #1115

Merged
merged 2 commits into from
Nov 12, 2024

Conversation

adrianna-chang-shopify
Copy link
Contributor

@adrianna-chang-shopify adrianna-chang-shopify commented Nov 11, 2024

uri switched the default parser from RFC2396 to RFC3986. The new parser emits a deprecation warning on a few methods and delegates them to RFC2396. See ruby/uri#114.

The selenium-webdriver gem calls URI::RFC3986_PARSER.escape, which is now deprecated. Until this is fixed in selenium-webdriver, ignore the warning.

Fixes failing weekly CI build: https://github.com/Shopify/maintenance_tasks/actions/runs/11769507051/job/32815543032

`uri` switched the default parser from RFC2396 to RFC3986. The new parser emits a deprecation
warning on a few methods and delegates them to RFC2396. See ruby/uri#114.

The selenium-webdriver gem [calls `URI::RFC3986_PARSER.escape`][webdriver-callsite], which is now deprecated.
Until this is fixed in selenium-webdriver, ignore the warning.

[webdriver-callsite]: https://github.com/SeleniumHQ/selenium/blob/trunk/rb/lib/selenium/webdriver/remote/bridge.rb#L679
@adrianna-chang-shopify
Copy link
Contributor Author

Seems like there's a separate system test that's failing, will investigate 🤔

@adrianna-chang-shopify
Copy link
Contributor Author

Okay, turns out the failing iframe test was actually due to the same issue, because sprockets was calling URI::Generic::DEFAULT_PARSER.unescape.

This should be fixed now.

@adrianna-chang-shopify adrianna-chang-shopify merged commit 8fa2fd4 into main Nov 12, 2024
31 checks passed
@adrianna-chang-shopify adrianna-chang-shopify deleted the ac-ignore-uri-parser-warnings branch November 12, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants