3944.1.1
by Francis J. Lacoste
Use system version python2.4 for scripts. |
1 |
#!/usr/bin/python2.4
|
3691.348.24
by kiko
Cope with dry runs as best as we can for now. |
2 |
# Copyright 2004-2007 Canonical Ltd. All rights reserved.
|
4935.3.7
by Curtis Hovey
Added bad name suppression to cronscripts. |
3 |
# pylint: disable-msg=C0103,W0403
|
2094
by Canonical.com Patch Queue Manager
[r=spiv,jamesh] Auto Buildd System implementation. |
4 |
# Author: Daniel Silverstone <daniel.silverstone@canonical.com>
|
5 |
# Celso Providelo <celso.providelo@canonical.com>
|
|
6 |
#
|
|
3500.2.22
by Celso Providelo
Fix ftpmaster config missing shipit section, fix cronscript queue-builder (dry-run ability, better debug, low transaction isolation level), builddmaster fixes (spelling, XXX and skipping build retry for released pockets), add changeslist field to distrorelease/+admin UI (replacing i-f-p hack, pagetests), x perms for i-f-p script. |
7 |
# Build Jobs initialisation
|
2865.2.42
by Celso Providelo
Fix buildmaster to properly use the process-upload script when receiving the builder results. Including 'publisher' tests in soyuz-upload, publishing an auxiliary distribution (ubuntutest) since 'ubuntu' itself isn't publishable due missed files and bogus registers in SSPPH. |
8 |
#
|
2094
by Canonical.com Patch Queue Manager
[r=spiv,jamesh] Auto Buildd System implementation. |
9 |
__metaclass__ = type |
10 |
||
3023.2.18
by Celso Providelo
Fix permissions and pythonpath on buildd cronscripts, fix builddmaster to created timestamp-named upload dirs. |
11 |
import _pythonpath |
2755
by Canonical.com Patch Queue Manager
[r=stevea] Fixing bug # 2812, loading zcml info in builddmaster and consequently removing the database imports, fixing bug # 1305 by using standards in both buildd cronscripts. |
12 |
|
5019.1.6
by Christian Robottom Reis
Back out code from revno 5072 (Fix bug 150988 (denying simulataneous runs of builddmaster cronscripts from different |
13 |
from canonical.config import config |
8294.6.1
by Julian Edwards
First stab at code-reorg. Still got a discrepancy on stuff I assigned to registry but not migrated yet. |
14 |
from lp.soyuz.scripts.buildd import QueueBuilder |
3500.2.22
by Celso Providelo
Fix ftpmaster config missing shipit section, fix cronscript queue-builder (dry-run ability, better debug, low transaction isolation level), builddmaster fixes (spelling, XXX and skipping build retry for released pockets), add changeslist field to distrorelease/+admin UI (replacing i-f-p hack, pagetests), x perms for i-f-p script. |
15 |
|
2214
by Canonical.com Patch Queue Manager
[trivial] BuildFarm works again, bits repaired and ready for deep redesign. |
16 |
if __name__ == '__main__': |
3691.428.5
by Celso Providelo
more review comments. |
17 |
script = QueueBuilder('queue-builder', dbuser=config.builddmaster.dbuser) |
3691.348.22
by kiko
Convert buildd queue builder and slave scanner cronscripts to use LaunchpadScript. Still needs some locking sanity implemented given that they share locks. |
18 |
script.lock_or_quit() |
4006.1.2
by kiko
Make the Soyuz scripts try/finally their script.run() call (so they clean up their locks when they crash) |
19 |
try: |
5152.5.5
by Celso Providelo
Exclude retry-depwait task from buildd-queue-builder.py cronscript and from BuilddMaster helper class. Remove the global buildd_master lockfile dependency, from now on queue-builder can run periodically as a cronjob in parallel with slave-scanner. |
20 |
script.run() |
4006.1.2
by kiko
Make the Soyuz scripts try/finally their script.run() call (so they clean up their locks when they crash) |
21 |
finally: |
22 |
script.unlock() |
|
3691.348.22
by kiko
Convert buildd queue builder and slave scanner cronscripts to use LaunchpadScript. Still needs some locking sanity implemented given that they share locks. |
23 |