Example #1
0
            for suite_type in ['opt_unittest_suites', 'debug_unittest_suites']:
                for mozmill in MOZMILL:
                    try:
                        branch['platforms'][platform][slave_platform][
                            suite_type].remove(mozmill)
                        if MOZMILL_OLD not in branch['platforms'][platform][
                                slave_platform][suite_type]:
                            branch['platforms'][platform][slave_platform][
                                suite_type].append(MOZMILL_OLD)
                    except ValueError:
                        # wasn't in the list anyways
                        pass

# Enable mozharness pinning
for _, branch in items_at_least(BRANCHES, 'gecko_version', 30):
    branch['script_repo_manifest'] = \
        "https://hg.mozilla.org/%(moz_repo_path)s/raw-file/default/" + \
        "testing/mozharness/mozharness.json"
    # mozharness_archiver_repo_path tells the factory to use a copy of mozharness from within the
    #  gecko tree and also allows us to overwrite which gecko repo to use. Useful for platforms
    # like Thunderbird
    branch['mozharness_archiver_repo_path'] = '%(moz_repo_path)s'
    branch['mozharness_archiver_rev'] = 'default'

if __name__ == "__main__":
    import sys
    import pprint

    args = sys.argv[1:]
        for slave_platform in PLATFORMS[platform]['slave_platforms']:
            if slave_platform not in branch['platforms'][platform]:
                continue

            for suite_type in ['opt_unittest_suites', 'debug_unittest_suites']:
                for mozmill in MOZMILL:
                    try:
                        branch['platforms'][platform][slave_platform][suite_type].remove(mozmill)
                        if MOZMILL_OLD not in branch['platforms'][platform][slave_platform][suite_type]:
                            branch['platforms'][platform][slave_platform][suite_type].append(MOZMILL_OLD)
                    except ValueError:
                        # wasn't in the list anyways
                        pass

# Enable mozharness pinning
for _, branch in items_at_least(BRANCHES, 'gecko_version', 30):
    branch['script_repo_manifest'] = \
        "https://hg.mozilla.org/%(moz_repo_path)s/raw-file/default/" + \
        "testing/mozharness/mozharness.json"
    # mozharness_archiver_repo_path tells the factory to use a copy of mozharness from within the
    #  gecko tree and also allows us to overwrite which gecko repo to use. Useful for platforms
    # like Thunderbird
    branch['mozharness_archiver_repo_path'] = '%(moz_repo_path)s'
    branch['mozharness_archiver_rev'] = 'default'

#Setup Cypress based on default values first
loadDefaultValues(BRANCHES, 'cypress', BRANCHES['cypress'])
if 'mozharness_archiver_rev' in BRANCHES['cypress']:
    # Without this retriggers wouldn't use the repo rev for mozharness.
    del BRANCHES['cypress']['mozharness_archiver_rev']
                for xpcshell in XPCSHELL:
                    try:
                        branch['platforms'][platform][slave_platform][suite_type].remove(xpcshell)
                        if XPCSHELL_OLD not in branch['platforms'][platform][slave_platform][suite_type]:
                            branch['platforms'][platform][slave_platform][suite_type].append(XPCSHELL_OLD)
                    except ValueError:
                        # wasn't in the list anyways
                        pass

# Mac OSX signing changes in gecko 34 - bug 1117637, bug 1047584
for name, branch in items_before(BRANCHES, 'gecko_version', 34):
  if 'macosx64' in BRANCHES[name]['platforms']:
    BRANCHES[name]['platforms']['macosx64']['mac_res_subdir'] = 'MacOS'

# Bug 1278102 - Stop running tests on OS X 10.6 on 49+
for name, branch in items_at_least(BRANCHES, 'gecko_version', 49):
    if name in ['try']:
        continue
    for platform in branch['platforms'].keys():
        if platform not in ['macosx64']:
            continue
        for slave_platform in ['snowleopard']:
            del BRANCHES[name]['platforms'][platform][slave_platform]

# mozmill-on-mozharness should ride the trains
# Replace old trains with non-mozharness code.
# MERGE DAY (remove this code once Thunderbird no longer services Gecko 37 and lower)
for platform in PLATFORMS.keys():
    MOZMILL_OLD = ('mozmill', ['mozmill'])
    for name, branch in items_before(BRANCHES, 'gecko_version', 38):
        if platform not in branch['platforms']: