Closed Bug 788518 Opened 12 years ago Closed 10 years ago

Expand AnnotatedSummaryGenerator.php's ignored test-name list to avoid more unnecessary BzAPI calls

Categories

(Tree Management Graveyard :: TBPL, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: Swatinem, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: sheriffing-P2)

Attachments

(1 file, 1 obsolete file)

We query bugzilla for bugs that may be related to a certain test/filename. Sometimes, these “file names” are totally bogus and don’t provide any suggestions, they just slow down the processing. Bug 718632 introduces a cache which makes sure we only query for one particular file name at most once every 24h. But we can still do better with a better matching :-) The code in question starts here: http://hg.mozilla.org/users/mstange_themasta.com/tinderboxpushlog/file/03803dbdf1ee/php/inc/AnnotatedSummaryGenerator.php#l57 In the bugs i have skimmed so far, i see a lot of: fetching bugs for "plugin process 843": 5768ms fetching bugs for "tab process 841": 5570ms fetching bugs for "plain,HELLO": 5198ms fetching bugs for "html,<body>Win": 5704ms fetching bugs for "html,<body>Mac": 5729ms also some valid filenames which seem to be completely useless for providing suggestions: fetching bugs for "size-2x2.png": 5670ms fetching bugs for "size-3x3.png": 5594ms fetching bugs for "size-4x4.png": 5606ms fetching bugs for "size-5x5.png": 5025ms fetching bugs for "basn0g02.png": 5501ms fetching bugs for "basn0g04.png": 5478ms fetching bugs for "basn0g08.png": 5435ms fetching bugs for "basn0g16.png": 5563ms
mysql> use tbpl_dev_allizom_org; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> SELECT filename FROM `bugscache` where filename not regexp "^([^ ]+)\.([^ ]+)$" AND json != "[]"; +------------------------------------------------------+ | filename | +------------------------------------------------------+ | [Errno 2] No such file or directory: 'mochitest.log' | | jit_test.py -a -m -d -n | +------------------------------------------------------+ 2 rows in set (0.01 sec)
Attached patch better filename filtering (obsolete) (deleted) — Splinter Review
So apparently we do have some rare “filenames” which do not fit the filename pattern but return some results... So can we just ignore those cases or what should I do about it?
Assignee: nobody → arpad.borsos
Status: NEW → ASSIGNED
Attachment #658498 - Flags: review?(bmo)
Comment on attachment 658498 [details] [diff] [review] better filename filtering Those *.png filenames are only useless because bug 784278 exists, so that we're hitting several hundred failures in Android reftests when the actual failure is that everything is being rendered as pure white. They are not in general useless, they are reftests which could intermittently fail, and if they did that would be the filename.
Attachment #658498 - Flags: feedback-
Just for reference, those are bug 756440 bug 741544
"tab process \d{3,4}" is a bug, bug 782633, though given the potential (and actual) for misstars, I'm not sure we'd be happy if we put in some exceptions that would convert those process numbers into searches for "nnn".
Attached file pastebin from comment 2 (deleted) —
Actually, a whole lot of the useless searches could be solved if we had the right fix for bug 594415 - even "plain,HELLO" is a semi-valid filename, it's from a reftest where the "file" is data:text/plain,HELLO, and the problem with them is not so much that they are awful filenames returning nothing as that they are over a hundred failures in a single suite, so they are not individual failures. mochitest-a11y is also prone to failing hundreds or thousands of tests when it's really fallout from the first failure, or a single lump of failure, but we can't say "we'll only fetch suggestions for the first 5 when a suite fails more than 100" without being able to say it separately about mochitest-chrome and mochitest-browser-chrome and mochitest-a11y.
Blocks: 778688
Comment on attachment 658498 [details] [diff] [review] better filename filtering Cancelling for now, given philor's comments. Agree that there is still some room for improvement here :-)
Attachment #658498 - Flags: review?(bmo)
Attachment #658498 - Attachment is obsolete: true
Whiteboard: [sheriff-want]
Depends on: 683170
Depends on: 800888
Depends on: 807707
Keywords: sheriffing-P1
Whiteboard: [sheriff-want]
OS: Linux → All
Hardware: x86_64 → All
Summary: Improve bug suggestion regexp → Expand AnnotatedSummaryGenerator.php's ignored test-name list to avoid more unnecessary BzAPI calls
Assignee: arpad.borsos → nobody
Product: Webtools → Tree Management
Treeherder doesn't hit bzapi directly, so this was only relevant to TBPL, which is now EOL.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: