-
Notifications
You must be signed in to change notification settings - Fork 193
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
Investigate "browser-firefox-mobile-nightly-59.0a1" label on issue #1971
Comments
I wonder if fixing #1949 would solve this... if (And we have the original version info in @ua_header if we have doubts). |
>>> browser = 'Firefox Mobile Nightly 59.0a1 (2017-12-04)'
>>> import re
>>> re.search(r'([^\d]+?)\s[\d\.]+', browser)
<_sre.SRE_Match object at 0x101a4fd50>
>>> browser = browser.lower()
>>> browser = browser.rsplit(' ', 1)[0]
>>> browser
'firefox mobile nightly 59.0a1'
>>> browser = browser.encode('utf-8')
>>> browser
'firefox mobile nightly 59.0a1'
>>> browser = browser.translate(None, '()')
>>> browser
'firefox mobile nightly 59.0a1'
>>> dash_browser = '-'.join(browser.split())
>>> dash_browser
'firefox-mobile-nightly-59.0a1'
>>> 'browser-{name}'.format(name=dash_browser)
'browser-firefox-mobile-nightly-59.0a1' The |
yes I want to rationalize things and probably #1949 can solve it. I could propose something tomorrow. |
I completely forgot that we trust user input for the label here... I'm surprised this hasn't been abused yet. >_< |
I wonder what the best way to fix this is. It seems tricky if we want webcompat-bot to be "smart" and create labels where they don't exist yet (so we don't have to update whitelists or create labels ourselves) One lazy, not-bullet-proof solution is to reject output that doesn't match |
(deleted unrelated comment) |
*slightly pushing this issue* ... moved the brainstorming part into #2372, as an own issue is more appropriate. ... |
This is editable by a Human https://staging.webcompat.com/issues/1499 no labels have been assigned, because not part of the matching rules. Let's see 'Space (Lolipop) 49 and Punk Cat Space' and we end up with webcompat.com/webcompat/webhooks/helpers.py Lines 35 to 47 in c122e27
|
Maybe what we can do as a poor man option, but better than nothing. We currently have two values:
The information is already there in the bug report in plain-text. The fixme will just help to double check which ones need an additional check. @softvision-oana-arbuzov @softvision-sergiulogigan What do you think? |
@softvision-oana-arbuzov @softvision-sergiulogigan What do you think? :) |
This intends to not silently fail but instead to mark the issue as something which needs a closer look for the testers/triagers.
This doesn't solve everything, but it provides a way to mitigate some of the issues we met. It cut down a lot of possible values and variability. And the fallback being "fixme" if everything else fails, we can count on humans for guessing if possible the browser label. This doesn't address yet the issue webcompat#2372 we will come to it later.
I adopted a different strategy. To simplify a bit things. |
This doesn't solve everything, but it provides a way to mitigate some of the issues we met. It cut down a lot of possible values and variability. And the fallback being "fixme" if everything else fails, we can count on humans for guessing if possible the browser label. This doesn't address yet the issue webcompat#2372 we will come to it later.
We do this all the time. We always log issues on webcompat.com using the Desktop (Windows 10), even if the issue itself comes from Mobile, MacOS, Linux etc. I think that the most relevant information is what the user types in the "Is this information correct?" field.
I wonder how much overhead will this create. I'm guessing this will not be an automated process. |
This doesn't solve everything, but it provides a way to mitigate some of the issues we met. It cut down a lot of possible values and variability. And the fallback being "fixme" if everything else fails, we can count on humans for guessing if possible the browser label. This doesn't address yet the issue webcompat#2372 we will come to it later.
I don't know why this label would be applied, rather than just
browser-fireffox-mobile
. We have a fewfirefox-mobile-nightly
labeled issues as well: https://github.com/webcompat/web-bugs/labels/browser-firefox-mobile-nightlywebcompat/web-bugs#14071 is the issue reported by @softvision-oana-arbuzov.
Here's the comment metadata:
Maybe the user added it manually to the browser field? Something for us to normalize in webhook/labeler code.
The text was updated successfully, but these errors were encountered: