Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Precreate try/m-c,m-i repos in /builds/hg-share

  • Loading branch information...
commit dd7caf9fc502a6f1e645e176239314c674657424 1 parent 8589ea3
@rail rail authored
View
3  .hgignore
@@ -1,3 +1,6 @@
\.pyc$
secrets/
\..*\.swp
+certs\..*/
+.*\.log
+ca-scripts
View
13 aws/aws_create_instance.py
@@ -104,6 +104,19 @@ def assimilate(ip_addr, config, instance_data, create_ami):
# Set up a stub buildbot.tac
sudo("/tools/buildbot/bin/buildslave create-slave /builds/slave {buildbot_master} {name} {buildslave_password}".format(**instance_data), user="cltbld")
+ hg = "/tools/python27-mercurial/bin/hg"
+ hg_main_mirror = instance_data['hg_main_mirror']
+ for share, bundle in instance_data['hg_shares'].iteritems():
+ target_dir = '/builds/hg-shared/%s' % share
+ sudo('rm -rf {d} && mkdir -p {d}'.format(d=target_dir), user="cltbld")
+ sudo('{hg} init {d}'.format(hg=hg, d=target_dir), user="cltbld")
+ hgrc = "[path]\n"
+ hgrc += "default = http://hg.mozilla.org/%s\n" % share
+ put(StringIO.StringIO(hgrc), '%s/.hg/hgrc' % target_dir)
+ run("chown cltbld: %s/.hg/hgrc" % target_dir)
+ sudo('{hg} -R {d} unbundle {b}'.format(hg=hg, d=target_dir, b=bundle),
+ user="cltbld")
+
run("reboot")
def create_instance(name, config, region, secrets, key_name, instance_data,
View
2  aws/configs/bld-linux64
@@ -10,7 +10,7 @@
"instance_type": "c1.xlarge",
"device_map": {
"/dev/sda1": {
- "size": 50,
+ "size": 100,
"instance_dev": "/dev/xvde1"
}
}
View
2  aws/configs/try-linux64
@@ -10,7 +10,7 @@
"instance_type": "c1.xlarge",
"device_map": {
"/dev/sda1": {
- "size": 50,
+ "size": 100,
"instance_dev": "/dev/xvde1"
}
}
View
7 aws/instance_data_prod.json
@@ -6,5 +6,10 @@
"hosts": {
"puppet": "10.130.198.34",
"puppetmaster-01.srv.releng.aws-us-west-1.mozilla.com": "10.130.198.34"
- }
+ },
+ "hg_shares": {
+ "mozilla-central": "http://ftp.mozilla.org/pub/mozilla.org/firefox/bundles/mozilla-central.hg",
+ "integration/mozilla-inbound": "http://ftp.mozilla.org/pub/mozilla.org/firefox/bundles/mozilla-inbound.hg"
+ },
+ "hg_main_mirror": "http://hg.mozilla.org/"
}
View
6 aws/instance_data_try.json
@@ -6,5 +6,9 @@
"hosts": {
"puppet": "10.130.198.34",
"puppetmaster-01.srv.releng.aws-us-west-1.mozilla.com": "10.130.198.34"
- }
+ },
+ "hg_shares": {
+ "try": "http://ftp.mozilla.org/pub/mozilla.org/firefox/bundles/try.hg"
+ },
+ "hg_main_mirror": "http://hg.mozilla.org/"
}
Please sign in to comment.
Something went wrong with that request. Please try again.