Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Commit

Permalink
merge to production
Browse files Browse the repository at this point in the history
changeset:   2497:125fb8df2570
parent:      2495:27f1f4e637e7
user:        Rail Aliiev <rail@mozilla.com>
date:        Thu Aug 02 18:06:38 2012 -0400
summary:     Bug 779907 - xulrunner builds don't pass configure on mac. r=bhearsum

changeset:   2498:c36aa753df85
user:        Ben Hearsum <bhearsum@mozilla.com>
date:        Thu Aug 02 15:11:50 2012 -0700
summary:     bug 780004: remove CodeCoverage and CC stuff from buildbotcustom. r=catlee

changeset:   2499:4488e93a55c9
user:        Ben Hearsum <bhearsum@mozilla.com>
date:        Thu Aug 02 15:31:09 2012 -0700
summary:     Kill UnittestBuildFactory too. r=catlee

changeset:   2500:2a3ea74b1a7a
tag:         tip
user:        Ben Hearsum <bhearsum@mozilla.com>
date:        Thu Aug 02 16:27:14 2012 -0700
summary:     Kill unused code. r=catlee

--HG--
branch : production-0.8
  • Loading branch information
Justin Wood committed Aug 3, 2012
2 parents 2432c12 + 5b62abc commit 4b331d8
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 3,805 deletions.
46 changes: 0 additions & 46 deletions l10n.py
Expand Up @@ -193,49 +193,3 @@ def __init__(self, name, builderNames, **kwargs):
def trigger(self, ss, set_props=None):
reason = "This build was triggered by the successful completion of the en-US nightly."
self.createL10nBuilds(revision=ss.revision, reason=reason, set_props=set_props)


class DependentL10n(Dependent, L10nMixin):
"""
This scheduler runs some set of 'downstream' builds when the
'upstream' scheduler has completed successfully.
"""

compare_attrs = Dependent.compare_attrs[:]

def __init__(self, name, upstream, builderNames, **kwargs):
Dependent.__init__(self, name, upstream, builderNames)
L10nMixin.__init__(self, **kwargs)

def run(self):
d = self.parent.db.runInteraction(self._run)

def _createBuilds(sses):
# This gets called with a list of SourceStamps to do builds for
l = []
for ss in sses:
d1 = self.createL10nBuilds(ss.revision)
l.append(d1)
return defer.gatherResults(l)

d.addCallback(_createBuilds)
# Return None here since we don't need to be woken up in a specific
# amount of time.
d.addCallback(lambda ign: None)

return d

def _run(self, t):
db = self.parent.db
res = db.scheduler_get_subscribed_buildsets(self.schedulerid, t)
# this returns bsid,ssid,results for all of our active subscriptions.
# We ignore the ones that aren't complete yet. This leaves the
# subscription in place until the buildset is complete.
sses = []
for (bsid,ssid,complete,results) in res:
if complete:
if results in (SUCCESS, WARNINGS):
ss = db.getSourceStampNumberedNow(ssid, t)
sses.append(ss)
db.scheduler_unsubscribe_buildset(self.schedulerid, bsid, t)
return sses
1,289 changes: 2 additions & 1,287 deletions misc.py

Large diffs are not rendered by default.

0 comments on commit 4b331d8

Please sign in to comment.