コード例 #1
0
ファイル: buildserver.py プロジェクト: akoeplinger/release
    def load_info(self):

        # reload list of packages (allows us to update the list without restarting the daemon)
        reload(config)

        self.td_active = config.td_active

        self.max_poll_interval = config.td_max_poll_interval
        self.network_error_interval = config.td_network_error_interval

        self.num_sequential = config.td_num_sequential

        self.sequential = config.td_sequential

        self.src_repo = src_repo_utils.svn(config.MONO_ROOT, key_file=config.src_key_file)
        self.distfiles = datastore.source_file_repo()

        self.pack_objs = {}
        for pack in config.td_packages:
            self.pack_objs[pack] = packaging.package("", pack)
コード例 #2
0
    def load_info(self):

        # reload list of packages (allows us to update the list without restarting the daemon)
        reload(config)

        self.td_active = config.td_active

        self.max_poll_interval = config.td_max_poll_interval
        self.network_error_interval = config.td_network_error_interval

        self.num_sequential = config.td_num_sequential

        self.sequential = config.td_sequential

        self.src_repo = src_repo_utils.svn(config.MONO_ROOT,
                                           key_file=config.src_key_file)
        self.distfiles = datastore.source_file_repo()

        self.pack_objs = {}
        for pack in config.td_packages:
            self.pack_objs[pack] = packaging.package("", pack)
コード例 #3
0
ファイル: test_src_repo.py プロジェクト: akoeplinger/release
#!/usr/bin/env python

import time
import unittest
import sys
sys.path.append('..')

import config
import src_repo_utils

# Can't do this in setUp because it gets run on every case, which won't test the cache
src_repo = src_repo_utils.svn(config.MONO_ROOT, min_wait=2, debug=1)

src_repo.cache_max_size = 1

start_rev = 90000

# Really this tests to see if svn is givint the correct values back... :)
#  we'd need to time to see if the cache was faster or not with the same output
class TestSvn(unittest.TestCase):
    
	def setUp(self):
		# Repeat a function to hit
		start = time.time()
		res = src_repo.latest_path_revision("trunk/release/packaging", 50001)
		end = time.time()
		self.miss = end - start

		# load up cache for cache testing
		for i in range(0,15):
			res = src_repo.latest_path_revision("trunk/release/packaging", 50001 + i)
コード例 #4
0
#!/usr/bin/env python

import time
import unittest
import sys
sys.path.append('..')

import config
import src_repo_utils

# Can't do this in setUp because it gets run on every case, which won't test the cache
src_repo = src_repo_utils.svn(config.MONO_ROOT, min_wait=2, debug=1)

src_repo.cache_max_size = 1

start_rev = 90000


# Really this tests to see if svn is givint the correct values back... :)
#  we'd need to time to see if the cache was faster or not with the same output
class TestSvn(unittest.TestCase):
    def setUp(self):
        # Repeat a function to hit
        start = time.time()
        res = src_repo.latest_path_revision("trunk/release/packaging", 50001)
        end = time.time()
        self.miss = end - start

        # load up cache for cache testing
        for i in range(0, 15):
            res = src_repo.latest_path_revision("trunk/release/packaging",