configs/vcs_sync/gecko-git.py
author Justin Wood <Callek@gmail.com>
Mon, 14 Oct 2013 13:45:03 -0400
branchproduction
changeset 1981 7d9425c910513e2ee19b4692fc5e398c8b051bce
parent 1978 cd8ea7755bb4a53e2e545edef50775c31f0407ab
child 1988 5db3cb3f515994f067b1a6d147db3ff7ea130c46
permissions -rw-r--r--
Merge default->production $ hg merge -P -r default changeset: 1973:67d0c83ee405 parent: 1970:e2e19076b0d0 user: Aki Sasaki <asasaki@mozilla.com> date: Thu Oct 10 13:53:20 2013 -0700 summary: bug 847727 - mozharness.base.* changes for beagle. r=rail changeset: 1975:b4cabe359fad parent: 1973:67d0c83ee405 user: Geoff Brown <gbrown@mozilla.com> date: Fri Oct 11 13:45:42 2013 -0600 summary: Bug 917543 - Use robocop.ini on x86 also; r=armenzg changeset: 1976:b378d511e8a9 user: Mihai Tabara <mtabara@mozilla.com> date: Fri Oct 11 18:27:08 2013 -0400 summary: Bug 749421 - Allow test slaves to save and upload files somewhere, even from try. r=rail changeset: 1977:5b178e665fa0 user: Aki Sasaki <asasaki@mozilla.com> date: Sat Oct 12 14:42:24 2013 -0700 summary: bug 847727 - clean up scripts/. r=rail changeset: 1978:cd8ea7755bb4 user: Aki Sasaki <asasaki@mozilla.com> date: Sat Oct 12 14:42:28 2013 -0700 summary: bug 847727 - vcs_sync multi repo support. r=rail changeset: 1979:31039070573c user: Peter Moore <pmoore@mozilla.com> date: Mon Oct 14 12:17:51 2013 +0200 summary: Bug 925753: Upgrade mozharness to use new Panda image (containing Watcher 1.16),r=Callek,r=kmoir changeset: 1980:78369f5c15ec tag: tip user: Dustin J. Mitchell <dustin@mozilla.com> date: Mon Oct 14 07:50:31 2013 -0400 summary: Bug 912970: Look to pypi.{pvt,pub}.build.mozilla.org for Python packages; r=aki

import os
import socket
hostname = socket.gethostname()

CVS_MANIFEST = """[{
"size": 1301484692,
"digest": "89df462d8d20f54402caaaa4e3c10aa54902a1d7196cdf86b7790b76e62d302ade3102dc3f7da4145dd832e6938b0472370ce6a321e0b3bcf0ad050937bd0e9a",
"algorithm": "sha512",
"filename": "mozilla-cvs-history.tar.bz2"
}]
"""

config = {
    "log_name": "gecko-git",
    "log_max_rotate": 99,
    "repos": [{
        "repo": "https://hg.mozilla.org/users/hwine_mozilla.com/repo-sync-tools",
        "vcs": "hg",
    }],
    "job_name": "gecko-git",
    "conversion_dir": "gecko-git",
    "initial_repo": {
        "repo": "https://hg.mozilla.org/mozilla-central",
        "revision": "default",
        "repo_name": "mozilla-central",
        "targets": [{
            "target_dest": "gecko-git/.git",
            "vcs": "git",
            "test_push": True,
        }, {
            "target_dest": "github-gecko-git",
            "vcs": "git",
        }],
        "bare_checkout": True,
        "vcs": "hg",
        "branch_config": {
            "branches": {
                "default": "master",
            },
        },
    },
    "backup_dir": "/mnt/netapp/github_sync/aki/%s" % hostname,
    "cvs_manifest": CVS_MANIFEST,
    "tooltool_servers": ["http://runtime-binaries.pvt.build.mozilla.org/tooltool/"],
    "cvs_history_tarball": "/home/asasaki/mozilla-cvs-history.tar.bz2",
    "env": {
        "PATH": "%(PATH)s:/usr/libexec/git-core",
    },
    "conversion_repos": [{
        "repo": "https://hg.mozilla.org/releases/mozilla-aurora",
        "revision": "default",
        "repo_name": "mozilla-aurora",
        "targets": [{
            "target_dest": "gecko-git/.git",
            "vcs": "git",
            "test_push": True,
        }, {
            "target_dest": "github-gecko-git",
            "vcs": "git",
        }],
        "bare_checkout": True,
        "vcs": "hg",
        "branch_config": {
            "branches": {
                "default": "v1.2",
            },
        },
        "tag_config": {
            "tag_regexes": [
                "^B2G_",
            ],
        },
    }, {
        "repo": "https://hg.mozilla.org/releases/mozilla-b2g18",
        "revision": "default",
        "repo_name": "mozilla-b2g18",
        "targets": [{
            "target_dest": "gecko-git/.git",
            "vcs": "git",
            "test_push": True,
            "tag_config": {
                "tags": {'*': '*'},
            },
        }, {
            "target_dest": "github-gecko-git",
            "vcs": "git",
            "tag_config": {
                "tag_regexes": [
                    "^B2G_",
                ],
            },
        }],
        "bare_checkout": True,
        "vcs": "hg",
        "branch_config": {
            "branches": {
                "default": "gecko-18",
            },
        },
        "tag_config": {
            "tag_regexes": [
                "^B2G_",
            ],
        },
    }, {
        "repo": "https://hg.mozilla.org/releases/mozilla-b2g18_v1_1_0_hd",
        "revision": "default",
        "repo_name": "mozilla-b2g18_v1_1_0_hd",
        "targets": [{
            "target_dest": "gecko-git/.git",
            "vcs": "git",
            "test_push": True,
        }, {
            "target_dest": "github-gecko-git",
            "vcs": "git",
        }],
        "bare_checkout": True,
        "vcs": "hg",
        "branch_config": {
            "branches": {
                "default": "v1.1.0hd",
            },
        },
        "tag_config": {
            "tag_regexes": [
                "^B2G_",
            ],
        },
    }, {
        "repo": "https://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1",
        "revision": "default",
        "repo_name": "mozilla-b2g18_v1_0_1",
        "targets": [{
            "target_dest": "gecko-git/.git",
            "vcs": "git",
            "test_push": True,
        }, {
            "target_dest": "github-gecko-git",
            "vcs": "git",
        }],
        "bare_checkout": True,
        "vcs": "hg",
        "branch_config": {
            "branches": {
                "default": "v1.0.1",
            },
        },
        "tag_config": {
            "tag_regexes": [
                "^B2G_",
            ],
        },
    }, {
        "repo": "https://hg.mozilla.org/releases/mozilla-b2g18_v1_0_0",
        "revision": "default",
        "repo_name": "mozilla-b2g18_v1_0_0",
        "targets": [{
            "target_dest": "gecko-git/.git",
            "vcs": "git",
            "test_push": True,
        }, {
            "target_dest": "github-gecko-git",
            "vcs": "git",
        }],
        "bare_checkout": True,
        "vcs": "hg",
        "branch_config": {
            "branches": {
                "default": "v1.0.0",
            },
        },
        "tag_config": {
            "tag_regexes": [
                "^B2G_",
            ],
        },
    }],
    "remote_targets": {
        "github-gecko-git": {
            "repo": "git@github.com:escapewindow/test-gecko-git.git",
            "ssh_key": "~/.ssh/escapewindow_github_rsa",
            "vcs": "git",
        },
    },

    "exes": {
        # bug 828140 - shut https warnings up.
        # http://kiln.stackexchange.com/questions/2816/mercurial-certificate-warning-certificate-not-verified-web-cacerts
        "hg": [os.path.join(os.getcwd(), "build", "venv", "bin", "hg"), "--config", "web.cacerts=/etc/pki/tls/certs/ca-bundle.crt"],
        "tooltool.py": [
            os.path.join(os.getcwd(), "build", "venv", "bin", "python"),
            os.path.join(os.getcwd(), "mozharness", "external_tools", "tooltool.py"),
        ],
    },

    "virtualenv_modules": [
        "bottle==0.11.6",
        "dulwich==0.9.0",
        "ordereddict==1.1",
        "hg-git==0.4.0-moz2",
        "mapper==0.1",
        "mercurial==2.6.3",
        "mozfile==0.9",
        "mozinfo==0.5",
        "mozprocess==0.11",
    ],
    "find_links": [
        "http://pypi.pvt.build.mozilla.org/pub",
        "http://pypi.pub.build.mozilla.org/pub",
    ],
    "pip_index": False,

    "upload_config": [{
        "ssh_key": "~/.ssh/id_rsa",
        "ssh_user": "asasaki",
        "remote_host": "github-sync2",
        "remote_path": "/home/asasaki/upload/gecko-git-upload",
    }],

    "default_notify_from": "vcs2vcs@%s" % hostname,
    "notify_config": [{
        "to": "aki@mozilla.com",
        "failure_only": False,
        "skip_empty_messages": True,
    }],

    # Disallow sharing.  We may need a better way of doing this.
    "vcs_share_base": None,
    "hg_share_base": None,
}