Exemple #1
0
def main():
    """Prevent running two instances of autoBisectJs concurrently - we don't want to confuse hg."""
    options = parseOpts()

    repoDir = options.buildOptions.repoDir if options.buildOptions else options.browserOptions.repoDir

    with LockDir.LockDir(
            compileShell.getLockDirPath(options.nameOfTreeherderBranch,
                                        tboxIdentifier='Tbox') if options.
            useTreeherderBinaries else compileShell.getLockDirPath(repoDir)):
        if options.useTreeherderBinaries:
            bisectUsingTboxBins(options)
        elif not options.browserOptions:  # Bisect using local builds
            findBlamedCset(options, repoDir, compileShell.makeTestRev(options))

        # Last thing we do while we have a lock.
        # Note that this only clears old *local* cached directories, not remote ones.
        rmOldLocalCachedDirs(compileShell.ensureCacheDir())
Exemple #2
0
def main():
    '''Prevent running two instances of autoBisectJs concurrently - we don't want to confuse hg.'''
    options = parseOpts()

    repoDir = options.buildOptions.repoDir if options.buildOptions else options.browserOptions.repoDir

    with LockDir.LockDir(compileShell.getLockDirPath(options.nameOfTreeherderBranch, tboxIdentifier='Tbox')
                         if options.useTreeherderBinaries else compileShell.getLockDirPath(repoDir)):
        if options.useTreeherderBinaries:
            bisectUsingTboxBins(options)
        else:
            # Bisect using local builds
            if options.browserOptions:
                findBlamedCset(options, repoDir,
                               buildBrowser.makeTestRev(options))
            else:
                findBlamedCset(options, repoDir,
                               compileShell.makeTestRev(options))

        # Last thing we do while we have a lock.
        # Note that this only clears old *local* cached directories, not remote ones.
        rmOldLocalCachedDirs(compileShell.ensureCacheDir())