bootstrap: run `hg replicatehgrc` for try repos on correct host (Bug 1550782)
authorConnor Sheehan <sheehan@mozilla.com>
Mon, 13 May 2019 19:02:09 -0400
changeset 7018 64b81e9c817b57426440c8670e511ae62e951355
parent 7017 0bf07df77731eb2bae96f871c7093453f7fdf285
child 7019 4c5a2e4076a4452fc16fbf1e04e2e6fe0b47092a
push id3492
push usercosheehan@mozilla.com
push dateTue, 14 May 2019 14:31:56 +0000
treeherderversion-control-tools@663cd30b7a27 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1550782
bootstrap: run `hg replicatehgrc` for try repos on correct host (Bug 1550782) This command was being run on the new hgweb machine, instead of the hgssh master host. Oops!
ansible/bootstrap-hgweb.yml
--- a/ansible/bootstrap-hgweb.yml
+++ b/ansible/bootstrap-hgweb.yml
@@ -98,26 +98,20 @@
     # TODO remove this try repo hack
     # Cloning the try repo via pulls (how vcsreplicator works) is inordinately slow.
     # Work around this using a stream clone for the try repos, and then regex
     # replace the rule in the replication rules filter
     - name: clone try repo
       command: /var/hg/venv_replication/bin/hg --config extensions.replicateowner=! --config extensions.vcsreplicator=! --config extensions.readonly=! --config ui.clonebundles=false --config experimental.evolution=all clone -U --stream https://hg.mozilla.org/try /repo/hg/mozilla/try
       become_user: hg
 
-    - name: trigger replicatehgrc for try
-      command: /var/hg/venv_replication/bin/hg -R /repo/hg/mozilla/try replicatehgrc
-
     - name: clone try-comm repo
       command: /var/hg/venv_replication/bin/hg --config extensions.replicateowner=! --config extensions.vcsreplicator=! --config extensions.readonly=! --config ui.clonebundles=false --config experimental.evolution=all clone -U --stream https://hg.mozilla.org/try-comm-central /repo/hg/mozilla/try-comm-central
       become_user: hg
 
-    - name: trigger replicatehgrc for try-comm
-      command: /var/hg/venv_replication/bin/hg -R /repo/hg/mozilla/try-comm-central replicatehgrc
-
     - name: enable try repo in replication rules
       ini_file:
         path: /etc/mercurial/vcsreplicator.ini
         section: replicationrules
         option: include.tryrepos
         value: 're:\{moz\}/try.*'
         state: present
 
@@ -133,8 +127,17 @@
         - '5'
         - '6'
         - '7'
 
     - name: turn on Telegraf
       service:
         name: telegraf.service
         state: started
+
+- hosts: hg-ssh-prod-master
+  gather_facts: no
+  tasks:
+    - name: run `hg replicatehgrc` on try repos
+      command: /var/hg/venv_tools/bin/hg -R /repo/hg/mozilla/{{ item }} replicatehgrc
+      with_items:
+        - try
+        - try-comm-central