Exemple #1
0
def create_baseline_config():
    """Creates a config for testing the latest dev build(s) against stable and oldstable"""

    dev_revisions = ['apache/trunk'] + get_branches()[:2]
    stable = get_tagged_releases('stable')[0]
    oldstable = get_tagged_releases('oldstable')[0]

    config = {}

    config['revisions'] = revisions = []
    for r in dev_revisions:
        revisions.append({'revision': r, 'label': r + ' (dev)'})
    revisions.append({'revision': stable, 'label': stable + ' (stable)'})
    revisions.append({
        'revision': oldstable,
        'label': oldstable + ' (oldstable)'
    })
    for r in revisions:
        r['options'] = {'use_vnodes': True}
        r['java_home'] = "~/fab/jvms/jdk1.7.0_71"

    config['title'] = 'Jenkins C* regression suite - {}'.format(
        datetime.datetime.now().strftime("%Y-%m-%d"))

    return config
def create_baseline_config():
    """Creates a config for testing the latest dev build(s) against stable and oldstable"""
    
    dev_revisions = ['apache/trunk'] + get_branches()[:2]
    stable = get_tagged_releases('stable')[0]
    oldstable = get_tagged_releases('oldstable')[0]

    config = {}

    config['revisions'] = revisions = []
    for r in dev_revisions:
        revisions.append({'revision': r, 'label': r +' (dev)'})
    revisions.append({'revision': stable, 'label': stable+' (stable)'})
    revisions.append({'revision': oldstable, 'label': oldstable+' (oldstable)'})
    for r in revisions:
        r['options'] = {'use_vnodes': True}
        r['java_home'] = "~/fab/jvms/jdk1.7.0_71"

    config['title'] = 'Jenkins C* regression suite - {}'.format(datetime.datetime.now().strftime("%Y-%m-%d"))

    return config
Exemple #3
0
#logging.basicConfig(level=loglevel)

s = StringIO.StringIO()
pprint.pprint(args, s)

logger.info("lanciato con---->" + s.getvalue())
logger.info("root_dir-->" + root_dir + "<--")

dev_git = util.git_repo(dest, logger=logger, dry_run=args.dry_run)

if not os.path.exists(dest):
    logger.info("MISSING destintion_dir-->" + dest + "<-- ")
    os.makedirs(dest)

    origin_branches = util.get_branches(args.origin,
                                        branch_selection=args.branches)

    dev_git.init()

    dev_git.get_remotes()
    dev_git.add_remote(args.origin,
                       name='origin',
                       fetch_branches=origin_branches)
    dev_git.add_remote(args.upstream, name='upstream')

    upstream_branches = util.get_branches(
        args.upstream,
        branch_pattern='.*?\s+refs/pull/([0-9]*?)/head\s+',
        # branch_exclude_pattern='.*?\s+refs/pull/({branch})/merge\s+',
        branch_format_string='pull/{branch}/head',
        branch_selection=args.prlist)
s = StringIO.StringIO()
pprint.pprint(args, s)

logger.info("lanciato con---->"+s.getvalue())
logger.info("root_dir-->"+root_dir+"<--")




dev_git = util.git_repo(dest,logger = logger,dry_run=args.dry_run)

if not os.path.exists(dest):
    logger.info("MISSING destintion_dir-->"+dest+"<-- ")
    os.makedirs(dest)

    origin_branches = util.get_branches(args.origin, branch_selection=args.branches)

    dev_git.init()

    dev_git.get_remotes()
    dev_git.add_remote(args.origin, name='origin', fetch_branches=origin_branches)
    dev_git.add_remote(args.upstream, name='upstream')

    upstream_branches = util.get_branches(
        args.upstream,
        branch_pattern='.*?\s+refs/pull/([0-9]*?)/head\s+',
        # branch_exclude_pattern='.*?\s+refs/pull/({branch})/merge\s+',
        branch_format_string='pull/{branch}/head',
        branch_selection=args.prlist)

    local_pr=util.trasf_match(upstream_branches,in_match='.*/([0-9]*)/(.*)',out_format='pull/{name}/clean')