Closed Bug 635793 Opened 15 years ago Closed 15 years ago

Speed up admintree.cgi by only including UI to trim logs when passed a query param

Categories

(Webtools Graveyard :: Tinderbox, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: philor, Assigned: jag+mozilla)

References

Details

Attachments

(2 files)

Rumor has it that the reason loading http://tinderbox.mozilla.org/admintree.cgi?tree=Firefox takes up to five minutes is the part in http://mxr.mozilla.org/mozilla/source/webtools/tinderbox/admintree.cgi#115 where it stats every log file, 40 days * 20 pushes per day * something like 168 logs per push. We have absolutely no desire to have that UI, and a great desire to have nobody ever use it, since the age of logs we keep is supposed to be controlled by a cron job, not by something some random person with the sheriffpass decides. In a reasonable world, where Tinderbox is the tool we use on tinderbox.m.o, I'd say (in the form of a patch) to just remove it; in the odd world where we pretend it's a tool that tinderbox.m.o is one user of, perhaps we could only run that chunk when the URL includes &trimbuildsui=1 (or &bereallyslow=1), and otherwise include a link with that in it?
since other mozilla derivative developers occasionally try to set up continuous build systems and generally realize that using tb1 is better than the other ones, i'd rather go with the form where you add the extra param.
Something like this? if ($form{bereallyslow} == 1) { ... } else { print '<a href="admintree.cgi', &make_cgi_args(\%form), '&bereallyslow=1">Be really slow</a><hr>'; }
Well, the link label could say "List logs for deletion (very slow)", but yes.
Attached patch wdiff version — — Splinter Review
Attachment #514478 - Flags: review+
Checking in webtools/tinderbox/admintree.cgi new revision: 1.43; previous revision: 1.42
Assignee: nobody → jag-mozilla
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Depends on: 637247
Depends on: 637562
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: