Closed Bug 456275 Opened 16 years ago Closed 16 years ago

In (Brief/Full) log of (test) builds, remind leak threshold on known leak too

Categories

(Release Engineering :: General, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sgautherie, Assigned: sgautherie)

References

Details

(Keywords: polish)

Attachments

(1 file, 2 obsolete files)

In the full log, I'd like the threshold to be reminded too on

TEST-PASS | runtests-leaks | WARNING leaked 8620 bytes during test execution

as it is on

TEST-UNEXPECTED-FAIL | runtests-leaks | leaked 8688 bytes during test execution
(should have leaked no more than 8620 bytes)


Add something like " (threshold set at 8620 bytes)".

Would help to notice when leak reduces, etc.
Assignee: build → nobody
Component: Tinderbox Configuration → Release Engineering
QA Contact: ccooper → release
Code is at:
http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/runtests.py.in#391

Patches welcome but no time on our side at the moment.
Component: Release Engineering → Release Engineering: Future
Attached patch (Av1) sync and extend (obsolete) — Splinter Review
*"Unify" report format.
*Add more detailed cases, to help manage threshold (toward its goal of "0").
Assignee: nobody → sgautherie.bz
Status: NEW → ASSIGNED
Attachment #341366 - Flags: review?(sayrer)
Attached patch (Av1a) sync and extend (obsolete) — Splinter Review
[Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1b1pre) Gecko/20081003 SeaMonkey/2.0a2pre] (home, optim default) (W2Ksp4)

Fixed and tested.
Attachment #341366 - Attachment is obsolete: true
Attachment #341573 - Flags: review?(sayrer)
Attachment #341366 - Flags: review?(sayrer)
Comment on attachment 341573 [details] [diff] [review]
(Av1a) sync and extend

ted, I saw you reviewed bug 456894 ... and I'm looking for an (active) reviewer :-|
Attachment #341573 - Flags: review?(ted.mielczarek)
Blocks: 460382
Comment on attachment 341573 [details] [diff] [review]
(Av1a) sync and extend

sayer, ted: ping ?
Comment on attachment 341573 [details] [diff] [review]
(Av1a) sync and extend

You've really complicated the code here for minimal gain. I'd suggest just adding a line or two of code under the |elif bytesLeaked > 0:| where if the threshold != INFINITY, then you can stick your extra text on the end of the message. You've over doubled the number of lines of code here just to get that extra warning.
Attachment #341573 - Flags: review?(ted.mielczarek)
Attachment #341573 - Flags: review?(sayrer)
Attachment #341573 - Flags: review-
Av1a, with comment 6 suggestion(s):
less code, less details :-|

While there,
*Remove (2) leftover from bug 423235.
*Add (2) missed followups to bug 456894.
Attachment #341573 - Attachment is obsolete: true
Attachment #343996 - Flags: review?(ted.mielczarek)
Comment on attachment 343996 [details] [diff] [review]
(Av2) sync and extend
[Checkin: Comment 9]

-          log.info("TEST-UNEXPECTED-FAIL | runtests-leaks | leaked %d bytes during test execution (should "
-                   "have leaked no more than %d bytes)",
-                   bytesLeaked, threshold)
+          leakLog = "TEST-UNEXPECTED-FAIL | runtests-leaks | leaked " + \
+                     str(bytesLeaked) + " bytes during test execution"

I'd prefer to keep the string substitution with "%d " % bytesLeaked here (and elsewhere), it's more Python-like.

Other than that, looks fine.
Attachment #343996 - Flags: review?(ted.mielczarek) → review+
Comment on attachment 343996 [details] [diff] [review]
(Av2) sync and extend
[Checkin: Comment 9]

http://hg.mozilla.org/mozilla-central/rev/1b5146eb5738
+ comment 8 suggestion(s) =
http://hg.mozilla.org/mozilla-central/rev/699c40b616e1

Sorry: I didn't mean to push my "history" :-(
Attachment #343996 - Attachment description: (Av2) sync and extend → (Av2) sync and extend [Checkin: Comment 9]
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Component: Release Engineering: Future → Release Engineering
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: