Closed Bug 493752 Opened 15 years ago Closed 15 years ago

Reduce buildbot logging

Categories

(Release Engineering :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: catlee, Assigned: catlee)

References

Details

Attachments

(1 file)

buildbot logs way too much stuff to twistd.log.  The log file is rotated every few minutes on production-master.
Attachment #378366 - Flags: review?(bhearsum)
Comment on attachment 378366 [details] [diff] [review]
Disable maybeStartBuild messages

Disabling maybeStartBuild messages reduces the size of the logs by around 75%
We could also use daily log files instead of log files capped at a certain size limit:

application = service.Application('buildmaster')

from twisted.python.log import ILogObserver, FileLogObserver
from twisted.python.logfile import DailyLogFile

logfile = DailyLogFile("twistd.log", "logs")
application.setComponent(ILogObserver, FileLogObserver(logfile).emit)

BuildMaster(basedir, configfile).setServiceParent(application)
(In reply to comment #2)
> We could also use daily log files instead of log files capped at a certain size
> limit:
> 
> application = service.Application('buildmaster')
> 
> from twisted.python.log import ILogObserver, FileLogObserver
> from twisted.python.logfile import DailyLogFile
> 
> logfile = DailyLogFile("twistd.log", "logs")
> application.setComponent(ILogObserver, FileLogObserver(logfile).emit)
> 
> BuildMaster(basedir, configfile).setServiceParent(application)

I think this is a great idea.
Comment on attachment 378366 [details] [diff] [review]
Disable maybeStartBuild messages

this is made of win
Attachment #378366 - Flags: review?(bhearsum) → review+
Comment on attachment 378366 [details] [diff] [review]
Disable maybeStartBuild messages

changeset:   40:b1bef83b3c4f
Attachment #378366 - Flags: checked‑in+
(In reply to comment #3)
> (In reply to comment #2)
> > We could also use daily log files instead of log files capped at a certain size
> > limit:
> > 
> > application = service.Application('buildmaster')
> > 
> > from twisted.python.log import ILogObserver, FileLogObserver
> > from twisted.python.logfile import DailyLogFile
> > 
> > logfile = DailyLogFile("twistd.log", "logs")
> > application.setComponent(ILogObserver, FileLogObserver(logfile).emit)
> > 
> > BuildMaster(basedir, configfile).setServiceParent(application)
> 
> I think this is a great idea.

This doesn't work with twisted 8.0.1
Fixing this might give perf room to poll l10n repos more often, which is bug 498654.
Blocks: 498654
I was forced to restart production-master this morning when l10n nightly updates + places project brought it to a standstill, so I pull in this patch on the restart.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
I had to revert back to the previously running changeset (30). There were 12 new changesets of which this patch was only one, and something was seriously tanking the waterfall, pollers went missing, etc.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
This is now running on our production buildbot masters.
Status: REOPENED → RESOLVED
Closed: 15 years ago15 years ago
Resolution: --- → FIXED
Do we have an upstream ticket for this?
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: