Closed
Bug 1137162
Opened 11 years ago
Closed 11 years ago
The regex for TinderboxPrint links should match even when there are spaces in the title/name
Categories
(Tree Management :: Treeherder: Data Ingestion, defect, P2)
Tree Management
Treeherder: Data Ingestion
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: emorley, Assigned: emorley)
References
Details
Attachments
(1 file)
Broken out from bug 1124799 comment 6.
This regex:
RE_LINK_HTML = re.compile(
(r"((?P<title>[A-Za-z/\.0-9\-_]+): )?"
r"<a .*href=['\"](?P<url>http(s)?://.+)['\"].*>(?P<value>.+)</a>")
)
Doesn't match:
TinderboxPrint: hazard results: https://ftp-ssl.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-central-linux64-br-haz/20150226025813
Due to the space in 'hazard results'.
I think it should.
| Assignee | ||
Comment 1•11 years ago
|
||
Comment 0 should have referred to RE_LINK_TEXT, but the same issue affects both it and RE_LINK_HTML, so I'll fix both anyway :-)
| Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8569836 -
Flags: review?(cdawson)
Comment 3•11 years ago
|
||
Sorry for the delay. I will review this tomorrow.
Updated•11 years ago
|
Attachment #8569836 -
Flags: review?(cdawson) → review+
Comment 4•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder-service
https://github.com/mozilla/treeherder-service/commit/8d156fd9b4edeacab840aac76dad6e0d7eff9a8b
Bug 1137162 - Allow spaces in TinderboxPrint link titles
Currently if a TinderboxPrint line contains a space in the link title,
eg in 'hazard results' here:
TinderboxPrint: hazard results: https://ftp-ssl.mozilla.org/...
...then we ingest it as content_type 'raw_html' rather than 'link'.
| Assignee | ||
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•