Closed
Bug 755012
Opened 13 years ago
Closed 11 years ago
prune old buildbot schedulers
Categories
(Release Engineering :: General, defect, P2)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: catlee, Assigned: catlee)
References
Details
(Whiteboard: [buildbot][schedulers][cleanup])
Attachments
(3 files)
5.43 KB,
patch
|
nthomas
:
review+
catlee
:
checked-in+
|
Details | Diff | Splinter Review |
73.28 KB,
text/plain
|
Details | |
1.62 KB,
patch
|
dustin
:
review+
catlee
:
checked-in+
|
Details | Diff | Splinter Review |
schedulers that are disabled for a "long time" still sit around in the buildbot database. If they're ever re-activated then they have a large backlog of changes to work through.
Ideally we should delete old buildbot schedulers from the db so this doesn't happen.
The symptoms of this are the "last_processed" in the scheduler state referring to a really old change.
Comment 2•13 years ago
|
||
We talked about this today in triage. We could expire schedulers with last_processed data which refers to a change which is older than some threshold (a week, a month). It could be also be limited by scheduler class to avoid accidental damage. As the state column is json data it would make sense to do the cleanup as python script rather than bare SQL.
Blocks: 617017
Assignee | ||
Updated•13 years ago
|
Priority: -- → P2
Assignee | ||
Comment 4•12 years ago
|
||
I took a stab at this today.
http://cruncher.build.mozilla.org/~catlee/old_schedulers.txt is the result of all schedulers with:
- last_build < cutoff time
or
- date of last_processed change < cutoff time
I chose 2 weeks as the cutoff.
I don't think any of these are active schedulers.
Assignee | ||
Comment 5•12 years ago
|
||
hmm...
to-delete (old build) mozilla-central pgo {u'last_build': 1338836404.9286871, u'last_buildid': u'20120604120004', u'last_processed': 787419}
isn't that still active? why isn't last_build or last_processed updated?
Assignee | ||
Comment 6•12 years ago
|
||
(In reply to Chris AtLee [:catlee] from comment #5)
> hmm...
> to-delete (old build) mozilla-central pgo {u'last_build':
> 1338836404.9286871, u'last_buildid': u'20120604120004', u'last_processed':
> 787419}
>
> isn't that still active? why isn't last_build or last_processed updated?
Ah, we have two schedulers with that name, different classes:
mysql> select * from schedulers where name = 'mozilla-central pgo';
+-------------+---------------------+------------------------------------------------+------------------------------------------------------------------------------------------------+
| schedulerid | name | class_name | state |
+-------------+---------------------+------------------------------------------------+------------------------------------------------------------------------------------------------+
| 3382 | mozilla-central pgo | buildbotcustom.scheduler.Nightly-props | {"last_build": 1338836404.9286871, "last_buildid": "20120604120004", "last_processed": 787419} |
| 4296 | mozilla-central pgo | buildbotcustom.scheduler.SpecificNightly-props | {"last_build": 1368104401.524662, "last_buildid": "20130508120241", "last_processed": 1363805} |
+-------------+---------------------+------------------------------------------------+------------------------------------------------------------------------------------------------+
Assignee | ||
Comment 7•11 years ago
|
||
I deleted a bunch of old schedulers this morning. So far no fallout detected.
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
Assignee | ||
Comment 8•11 years ago
|
||
clean up schedulers we know how to
many schedulers don't have enough state in the db to determine if they can be deleted or not (e.g. nightly schedulers). you'd need to know which branches are active, or inspect buildbot state or something.
this patch will cleanup up the worst offenders at least, which are the regular test schedulers.
Attachment #8343151 -
Flags: review?(nthomas)
Assignee | ||
Comment 9•11 years ago
|
||
list of schedulers it would delete now
Comment 10•11 years ago
|
||
Comment on attachment 8343151 [details] [diff] [review]
cleanup_db-schedulers.diff
lgtm, the log was helpful.
Attachment #8343151 -
Flags: review?(nthomas) → review+
Assignee | ||
Updated•11 years ago
|
Attachment #8343151 -
Flags: checked-in+
Assignee | ||
Comment 11•11 years ago
|
||
Attachment #8345891 -
Flags: review?(dustin)
Updated•11 years ago
|
Attachment #8345891 -
Flags: review?(dustin) → review+
Assignee | ||
Updated•11 years ago
|
Attachment #8345891 -
Flags: checked-in+
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → catlee
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Comment 12•11 years ago
|
||
Is this on both production *and* stage?
Assignee | ||
Comment 13•11 years ago
|
||
No, just for production.
Updated•7 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•