Closed Bug 524457 Opened 15 years ago Closed 7 years ago

windows crashtest automation passes --leak-threshold=484

Categories

(Testing :: Reftest, defect, P3)

x86
Windows Server 2003
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: dbaron, Unassigned)

Details

(Whiteboard: [unittest][automation])

Attachments

(1 file, 1 obsolete file)

In a log for the windows debug crashtest (part of debug everythingelse), I noticed that the build automation is passing --leak-threshold=484.

I don't think it should be doing this; we should be maintaining the default leak thresholds in-tree (if anything nonzero is needed) rather than having them be part of the build automation.


I'm not sure if there are any other tests passing --leak-threshold; it would be interesting to know if there are.
This is currently enabled on a per-branch/platform basis.  So all the win32 tests on mozilla-central, mozilla-1.9.2, mozilla-1.9.1, tracemonkey, electrolysis and places currently have a leak threshold for mochitest-plain (and all of its chunks) of 484, as well as a threshold of 484 for crashtest.

I think we'd be more than happy to have this maintained in-tree!

The current value of 484 was set when we rolled out a new version of java (1.6) onto our build machines.
OK, then at least this wasn't a mistake.

But it probably would still be good to move this into the tree.
No longer blocks: 523385
Summary: windows debug crashtest automation passes --leak-threshold=484 → windows crashtest automation passes --leak-threshold=484
Who would be in charge of putting this in the tree?
Removing the buildbot leak-threshold argument is a simple config.py patch, but we should wait until it's in-tree.
Attached patch stop sending --leak-threshold (obsolete) — Splinter Review
This patch disables --leak-threshold on the buildbot side.
Dependent on someone landing the threshold in the tree.

Welcoming patches, otherwise I can dig for it at some later date.
dbaron: where would we set the leak threshold in the tree? I can take a stab at rolling those patches if I know where to look.
There used to be in-tree default leak thresholds for various mochitest variants in the tree in runtests.py.in.  The right place for leak thresholds for reftest/crashtest would probably be runreftest.py; however, either we'd end up with:

 (a) a pretty hacky solution, because we'd have to do something like parse the manifest filename to figure out if it's reftests or crashtests (and only do the threshhold when the argument is the manifest for the full suite)

 (b) add arguments to runreftest.py for --reftests and --crashtests for running the whole suite, and do the leak thresholds in those cases

I did (a) for a day or two on the 1.9.2 branch and then backed it out, but I'm not sure if it makes sense as a permanent solution.  Then again, it's really not that bad.  (See http://hg.mozilla.org/releases/mozilla-1.9.2/rev/1226d4feb6cb ; note that the runtests.py.in part of the patch was restoring old code, but the runreftests.py part was new code I wrote for the occasion.)
bug 470487 requires a threshold of 484 bytes on m-1.9.1, but on other branches we may be able to set the limit to 0.
Futuring until in-tree changes are made
Component: Release Engineering → Release Engineering: Future
Mass move of bugs from Release Engineering:Future -> Release Engineering. See
http://coop.deadsquid.com/2010/02/kiss-the-future-goodbye/ for more details.
Component: Release Engineering: Future → Release Engineering
Priority: -- → P3
(In reply to comment #8)
> Futuring until in-tree changes are made

Are we still waiting on in-tree changes? Are bugs even filed for that yet?
Whiteboard: [unittest][automation]
I don't know of a bug filed, although doing it in this bug would probably be sufficient.
Assignee: nobody → ccooper
Whiteboard: [unittest][automation] → [unittest][automation][oldbugs][triagefollowup]
Fixing bitrot on Aki's patch.
Attachment #409132 - Attachment is obsolete: true
I think this belongs in Testing:Reftest now, since that component didn't exist when this was initially filed. As Aki indicated in comment #3, the releng changes are dead simple once the reftest harness can handle leak thresholds on it's own.
Assignee: coop → nobody
Component: Release Engineering → Reftest
Product: mozilla.org → Testing
QA Contact: release → reftest
Version: other → unspecified
Whiteboard: [unittest][automation][oldbugs][triagefollowup] → [unittest][automation]
crashtest leak thresholds are in-tree now, so presumably this was fixed at some point.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: