Closed
Bug 629847
Opened 13 years ago
Closed 13 years ago
treeclosure hook fetches 2MB of HTML to get at a few hundred bytes that are in TreeName/status.html
Categories
(Developer Services :: Mercurial: hg.mozilla.org, enhancement)
Developer Services
Mercurial: hg.mozilla.org
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: philor, Assigned: philor)
References
Details
Attachments
(2 files, 1 obsolete file)
2.12 KB,
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
3.85 KB,
patch
|
standard8
:
review+
|
Details | Diff | Splinter Review |
Even though the treeclosure hook doesn't hit nearly as often as tbpl, so it didn't feel the need to make a separate status.html static file like tbpl did, the hook really should take advantage of it - fetching the whole waterfall to get a the word "CLOSED" is rather excessive. Untested, since I don't know how to test it, but I did at least verify that all the URLs work.
Attachment #508071 -
Flags: review?(ted.mielczarek)
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → philringnalda
Status: NEW → ASSIGNED
Comment 1•13 years ago
|
||
Comment on attachment 508071 [details] [diff] [review] Fix v.1 Seems totally reasonable, and we already have tests that cover this (they obviously don't hit the live Tinderbox page, or they wouldn't make very good tests), but you will have to adjust the URLs in the tests to match your changes here: http://hg.mozilla.org/hgcustom/hghooks/file/04b0488534f5/runtests.py#l230 The redirect method there gives a URL and its contents, and causes the test to expect that that URL will be the next one fetched, and return that string as the URL contents: http://hg.mozilla.org/hgcustom/hghooks/file/04b0488534f5/runtests.py#l192 You can run the tests with "python runtests.py". r=me with the tests fixed.
Attachment #508071 -
Flags: review?(ted.mielczarek) → review+
Comment 2•13 years ago
|
||
Attachment #508154 -
Flags: review?(ted.mielczarek)
Attachment #508154 -
Flags: feedback?(philringnalda)
Comment 3•13 years ago
|
||
Attachment #508154 -
Attachment is obsolete: true
Attachment #508155 -
Flags: review?(ted.mielczarek)
Attachment #508155 -
Flags: feedback?(philringnalda)
Attachment #508154 -
Flags: review?(ted.mielczarek)
Attachment #508154 -
Flags: feedback?(philringnalda)
Updated•13 years ago
|
Attachment #508155 -
Flags: review?(ted.mielczarek) → review?(bugzilla)
Updated•13 years ago
|
Attachment #508155 -
Flags: review?(bugzilla)
Attachment #508155 -
Flags: review+
Attachment #508155 -
Flags: feedback?(philringnalda)
Comment 4•13 years ago
|
||
Comment on attachment 508155 [details] [diff] [review] [checked in] patch for c-c hook as well. (with test fixed for CC hook) I've pushed this as I'm reviewing another patch that is going to add to the tests, so may as well get this url changed first.
Attachment #508155 -
Attachment description: patch for c-c hook as well. (with test fixed for CC hook) → [checked in] patch for c-c hook as well. (with test fixed for CC hook)
Assignee | ||
Comment 5•13 years ago
|
||
http://hg.mozilla.org/hgcustom/hghooks/rev/63a618e9a3d3
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
Comment 6•10 years ago
|
||
https://hg.mozilla.org/hgcustom/version-control-tools/rev/1e4384187eb4 https://hg.mozilla.org/hgcustom/version-control-tools/rev/eeefa6de5fbb
Updated•10 years ago
|
Product: Release Engineering → Developer Services
You need to log in
before you can comment on or make changes to this bug.
Description
•