Пример #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 stable_oldstable_revisions():
    stable = get_tagged_releases('stable')[0]
    oldstable = get_tagged_releases('oldstable')[0]
    return [
        {
            "revision": "refs/tags/{}".format(stable),
            "label": "Stable: {}".format(stable)
        },
        {
            "revision": "refs/tags/{}".format(oldstable),
            "label": "Old Stable: {}".format(oldstable)
        }
    ]
def rolling_upgrade_version_revisions():
    stable = get_tagged_releases('stable')[0]
    oldstable = get_tagged_releases('oldstable')[0]
    return [
        {
            "revision": "refs/tags/{}".format(oldstable),
            "label": "step_0_  3 Old Stable Nodes: {}".format(oldstable),
            "cluster_name": "updating_cluster"
        },
        {
            "revision": "refs/tags/{}".format(oldstable),
            "label": "step_1_  2 Old Stable Nodes, 1 Stable: {}/{}".format(oldstable, stable),
            "revision_override": {"refs/tags/{}".format(stable): [NODES[0]]},
            "cluster_name": "updating_cluster"
        },
        {
            "revision": "refs/tags/{}".format(oldstable),
            "label": "step_2_  1 Old Stable Nodes, 2 Stable: {}/{}".format(oldstable, stable),
            "revision_override": {"refs/tags/{}".format(stable): [NODES[0], NODES[1]]},
            "cluster_name": "updating_cluster"
        },
        {
            "revision": "refs/tags/{}".format(stable),
            "label": "step_3_  3 Stable Nodes: {}".format(stable),
            "cluster_name": "updating_cluster"
        },
        {
            "revision": "refs/tags/{}".format(stable),
            "label": "step_4_  2 Stable Nodes, 1 Trunk: {}".format(stable),
            "revision_override": {'apache/trunk': [NODES[0]]},
            "cluster_name": "updating_cluster"
        },
        {
            "revision": "refs/tags/{}".format(stable),
            "label": "step_5_  1 Stable Nodes, 2 Trunk: {}".format(stable),
            "revision_override": {'apache/trunk': [NODES[0], NODES[1]]},
            "cluster_name": "updating_cluster"
        },
        {
            "revision": "apache/trunk",
            "label": "step_6_  3 Trunk Nodes",
            "cluster_name": "updating_cluster"
        }
    ]
Пример #4
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