gecko-dev/testing/mozbase
Andrew Halberstadt aeecd3dc7c Bug 1372668 - [mozlog] Limit the size of data logged from error message when suite_start called multiple times, r=jgraham
We've seen a couple of enormous log files (200MB+). This largely happened due to a bug in the test harness that resulted
in suite_start being called over and over again. In each of these instances, mozlog logged something like:
log.error("Suite start called multiple times: {}".format(data))

The problem is that 'data' contained every single test id in the suite, which was *a lot*. Dumping all test ids in that
error message is not useful for debugging. This patch limits the size of the 'suite_start' data in the error message to
100 characters.

MozReview-Commit-ID: GnPizNrZ2QJ

--HG--
extra : rebase_source : 985d484544da9ea4cce445ce406fe085f86f112b
2017-06-14 11:20:39 -04:00
..
docs Bug 1340584 - Remove devicemanagerSUT and references to sutagent; r=wlach 2017-03-21 12:20:01 -06:00
manifestparser Bug 1334488 - [manifestparser] Improve error message when using an invalid comment character at the start of a manifest, r=jmaher 2017-01-27 10:28:58 -05:00
mozcrash Bug 1317970 - Make mozbase tests use mozunit for consistent formatting, r=chmanchester 2016-11-17 16:36:18 -05:00
mozdebug Bug 1248365 - Make Valgrind Mochitests run greener on Taskcluster. r=n.nethercote. 2016-11-28 15:46:43 +01:00
mozdevice Bug 1367465 - Bump mozdevice version to 0.51 r=bc 2017-05-24 11:52:14 -04:00
mozfile Bug 1317970 - Make mozbase tests use mozunit for consistent formatting, r=chmanchester 2016-11-17 16:36:18 -05:00
mozhttpd Bug 1317970 - Make mozbase tests use mozunit for consistent formatting, r=chmanchester 2016-11-17 16:36:18 -05:00
mozinfo Bug 1366919 - Bump mozinfo version to 0.10 r=ahal 2017-05-23 13:04:29 -04:00
mozinstall Bug 1048446 - [mozinstall] Add ability to download and extract installer from a url, r=whimboo 2017-03-09 12:20:03 -05:00
mozleak Bug 1325148 - Use "error" level in mozleak when logging leak failures, r=jgraham 2016-12-21 14:02:04 -05:00
mozlog Bug 1372668 - [mozlog] Limit the size of data logged from error message when suite_start called multiple times, r=jgraham 2017-06-14 11:20:39 -04:00
moznetwork Bug 1003417 - Use 'ip addr show' instead of 'ifconfig' for moznetwork tests, r=ted 2017-01-06 11:19:19 -05:00
mozprocess Bug 1340429 - Bump mozprocess to 0.24; r=jgraham 2017-02-17 05:53:06 +00:00
mozprofile Bug 1367076 - Set datareporting.policy.firstRunURL by default to replace data choices infobar with privacy policy in a background tab on first run. r=Gijs 2017-05-31 13:48:06 +02:00
mozrunner Bug 1333003 part 6 - Fix test scripts to run ASan on Windows. r=ted 2017-03-10 12:08:34 +08:00
mozscreenshot Bug 1280573 - Add testing/mozbase to flake8 linter: r=ahal 2016-09-30 16:08:37 +02:00
mozsystemmonitor Bug 1335127 - Fall back to stub IO counters when psutil fails; r=gps 2017-02-01 17:26:51 -05:00
moztest Bug 1323770 - Moztest should forward correct test result. r=ahal 2016-12-21 11:19:36 +01:00
mozversion Bug 1340584 - Remove test_b2g_fallback_when_no_binary; r=wlach 2017-03-21 12:20:03 -06:00
README.md
moz.build Bug 1340584 - Remove devicemanagerSUT and references to sutagent; r=wlach 2017-03-21 12:20:01 -06:00
packages.txt Bug 1347483 - blessings package should not be downloaded during mach virtualenv setup; r=mshal 2017-03-22 14:26:18 -04:00
setup_development.py Bug 1280573 - Add testing/mozbase to flake8 linter: r=ahal 2016-09-30 16:08:37 +02:00
versioninfo.py Bug 1280573 - Add testing/mozbase to flake8 linter: r=ahal 2016-09-30 16:08:37 +02:00

README.md

Mozbase

Mozbase is a set of easy-to-use Python packages forming a supplemental standard library for Mozilla. It provides consistency and reduces redundancy in automation and other system-level software. All of Mozilla's test harnesses use mozbase to some degree, including Talos, mochitest, reftest, Autophone, and Eideticker.

Learn more about mozbase at the project page.

Read detailed docs online, or build them locally by running "make html" in the docs directory.

Consult open bugs and feel free to file new bugs.