def PubSteps(build_info): with bot.BuildStep('Build package-root'): args = [ sys.executable, './tools/build.py', '--mode=' + build_info.mode, 'packages' ] print 'Building package-root: %s' % (' '.join(args)) bot.RunProcess(args) common_args = ['--write-test-outcome-log'] if build_info.builder_tag: common_args.append('--builder-tag=%s' % build_info.builder_tag) # Pub tests currently have a lot of timeouts when run in debug mode. # See issue 18479 if build_info.mode == 'release': bot.RunTest('pub', build_info, common_args + ['pub', 'pkg', 'docs']) else: bot.RunTest('pub', build_info, common_args + ['pkg', 'docs']) if build_info.mode == 'release': pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, build_info.system, checked=False) bot.RunTest( 'pkgbuild_repo_pkgs', pkgbuild_build_info, common_args + ['--append_logs', '--use-repository-packages', 'pkgbuild']) bot.RunTest( 'pkgbuild_public_pkgs', pkgbuild_build_info, common_args + ['--append_logs', '--use-public-packages', 'pkgbuild'])
def PubSteps(build_info): with bot.BuildStep('Build package-root'): args = [ sys.executable, './tools/build.py', '--mode=' + build_info.mode, 'packages' ] print 'Building package-root: %s' % (' '.join(args)) bot.RunProcess(args) common_args = ['--write-test-outcome-log'] if build_info.builder_tag: common_args.append('--builder-tag=%s' % build_info.builder_tag) # There are a number of big/integration tests in pkg, run with bigger timeout common_args.append('--timeout=120') # We have some unreproducible vm crashes on these bots common_args.append('--copy-coredumps') if build_info.system == 'windows': common_args.append('-j1') if build_info.mode == 'release': bot.RunTest('pub and pkg ', build_info, common_args + ['pub', 'pkg', 'docs'], swallow_error=True) else: # Pub tests currently have a lot of timeouts when run in debug mode. # See issue 18479 bot.RunTest('pub and pkg', build_info, common_args + ['pkg', 'docs'], swallow_error=True) if build_info.mode == 'release': pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, build_info.system, checked=False) bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, common_args + ['--append_logs', '--use-repository-packages', 'pkgbuild'], swallow_error=True) # We are seeing issues with pub get calls on the windows bots. # Experiment with not running concurrent calls. public_args = (common_args + ['--append_logs', '--use-public-packages', 'pkgbuild']) bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args)
def PkgSteps(build_info): common_args = ['--write-test-outcome-log'] if build_info.builder_tag: common_args.append('--builder-tag=%s' % build_info.builder_tag) # There are a number of big/integration tests in pkg, run with bigger timeout timeout = 300 if build_info.mode == 'debug' else 120 common_args.append('--timeout=%s' % timeout) # We have some unreproducible vm crashes on these bots common_args.append('--copy-coredumps') # We are seeing issues with pub get calls on the windows bots. # Experiment with not running concurrent calls. if build_info.system == 'windows': common_args.append('-j1') bot.RunTest('pkg', build_info, common_args + ['pkg', 'docs'], swallow_error=True) # Pkg tests currently have a lot of timeouts when run in debug mode. # See issue 18479 if build_info.mode != 'release': return with bot.BuildStep('third_party pkg tests', swallow_error=True): pkg_tested = os.path.join('third_party', 'pkg_tested') for entry in os.listdir(pkg_tested): path = os.path.join(pkg_tested, entry) if os.path.isdir(path): bot.RunTestRunner(build_info, path) pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, build_info.system, checked=False) bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, common_args + ['--append_logs', '--use-repository-packages', 'pkgbuild'], swallow_error=True) public_args = (common_args + ['--append_logs', '--use-public-packages', 'pkgbuild']) bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args)
def PubSteps(build_info): with bot.BuildStep('Build package-root'): args = [ sys.executable, './tools/build.py', '--mode=' + build_info.mode, 'packages' ] print 'Building package-root: %s' % (' '.join(args)) bot.RunProcess(args) bot.RunTest('pub', build_info, ['pub', 'pkg', 'dartdoc', 'docs'])
def PubSteps(build_info): with bot.BuildStep('Build package-root'): args = [ sys.executable, './tools/build.py', '--mode=' + build_info.mode, 'packages' ] print 'Building package-root: %s' % (' '.join(args)) bot.RunProcess(args) common_args = ['--write-test-outcome-log'] if build_info.builder_tag: common_args.append('--builder-tag=%s' % build_info.builder_tag) opt_threshold = '--vm-options=--optimization-counter-threshold=5' if build_info.mode == 'release': bot.RunTest('pub and pkg ', build_info, common_args + ['pub', 'pkg', 'docs'], swallow_error=True) bot.RunTest('pub and pkg optimization counter thresshold 5', build_info, common_args + ['--append_logs', opt_threshold, 'pub', 'pkg', 'docs'], swallow_error=True) else: # Pub tests currently have a lot of timeouts when run in debug mode. # See issue 18479 bot.RunTest('pub and pkg', build_info, common_args + ['pkg', 'docs'], swallow_error=True) bot.RunTest('pub and pkg optimization counter threshold 5', build_info, common_args + ['--append_logs', opt_threshold, 'pkg', 'docs'], swallow_error=True) if build_info.mode == 'release': pkgbuild_build_info = bot.BuildInfo('none', 'vm', build_info.mode, build_info.system, checked=False) bot.RunTest('pkgbuild_repo_pkgs', pkgbuild_build_info, common_args + ['--append_logs', '--use-repository-packages', 'pkgbuild'], swallow_error=True) # We are seeing issues with pub get calls on the windows bots. # Experiment with not running concurrent calls. public_args = (common_args + ['--append_logs', '--use-public-packages', 'pkgbuild']) if build_info.system == 'windows': public_args.append('-j1') bot.RunTest('pkgbuild_public_pkgs', pkgbuild_build_info, public_args)
def PkgSteps(build_info): common_args = ['--write-test-outcome-log'] if build_info.builder_tag: common_args.append('--builder-tag=%s' % build_info.builder_tag) # There are a number of big/integration tests in pkg, run with bigger timeout common_args.append('--timeout=120') # We have some unreproducible vm crashes on these bots common_args.append('--copy-coredumps') bot.RunTest('pkg', build_info, common_args + ['pkg', 'docs'], swallow_error=True) with bot.BuildStep('third_party pkg tests', swallow_error=True): pkg_tested = os.path.join('third_party', 'pkg_tested') for entry in os.listdir(pkg_tested): path = os.path.join(pkg_tested, entry) if os.path.isdir(path): bot.RunTestRunner(build_info, path)
TARGETS = ['language_2', 'corelib_2', 'lib_2'] FLAGS = ['--strong'] if __name__ == '__main__': with bot.BuildStep('Build SDK and dartdevc test packages'): bot.RunProcess([ sys.executable, './tools/build.py', '--mode=release', '--arch=x64', 'dartdevc_test' ]) with bot.BuildStep('Run tests'): (bot_name, _) = bot.GetBotName() system = bot_utils.GetSystemFromName(bot_name) if system == 'linux': bot.RunProcess([ 'xvfb-run', sys.executable, './tools/test.py', '--strong', '-mrelease', '-cdartdevc', '-rchrome', '-ax64', '--report', '--time', '--checked', '--progress=buildbot', '--write-result-log' ] + TARGETS) else: info = bot.BuildInfo( 'dartdevc', 'chrome', 'release', system, arch='x64', checked=True) bot.RunTest('dartdevc', info, TARGETS, flags=FLAGS)