Bug 1391789 - Stop versioning version control cache; r?dustin draft
authorGregory Szorc <gps@mozilla.com>
Fri, 18 Aug 2017 17:05:26 -0700
changeset 650039 508f0dd322fd7c65e3a189cfa0666b7277eb0814
parent 650038 51e741d7a5429bfb0a761695c96d43c6212617a1
child 727258 223bd9ac3e67771d4d2bd1b77a7b2f0fade04d8c
push id75226
push userbmo:gps@mozilla.com
push dateMon, 21 Aug 2017 16:19:27 +0000
reviewersdustin
bugs1391789
milestone57.0a1
Bug 1391789 - Stop versioning version control cache; r?dustin We added this versioning as a mechanism to create clean breaks when version control mechanisms change in significant ways. Now that run-task's content influences cache names and this cache name pattern must be used with run-task, we no longer need this versioning and can rely on run-task's content and cache requirements to switch to new caches. MozReview-Commit-ID: KJ7IF7UzDsg
taskcluster/taskgraph/transforms/job/common.py
--- a/taskcluster/taskgraph/transforms/job/common.py
+++ b/taskcluster/taskgraph/transforms/job/common.py
@@ -82,25 +82,17 @@ def support_vcs_checkout(config, job, ta
     """
     level = config.params['level']
 
     # native-engine does not support caches (yet), so we just do a full clone
     # every time :(
     if job['worker']['implementation'] in ('docker-worker', 'docker-engine'):
         taskdesc['worker'].setdefault('caches', []).append({
             'type': 'persistent',
-            # History of versions:
-            #
-            # ``level-%s-checkouts`` was initially used and contained a number
-            # of backwards incompatible changes, such as moving HG_STORE_PATH
-            # from a separate cache to this cache.
-            #
-            # ``v1`` was introduced to provide a clean break from the unversioned
-            # cache.
-            'name': 'level-%s-checkouts-v1' % level,
+            'name': 'level-%s-checkouts' % level,
             'mount-point': '/home/worker/checkouts',
         })
 
     taskdesc['worker'].setdefault('env', {}).update({
         'GECKO_BASE_REPOSITORY': config.params['base_repository'],
         'GECKO_HEAD_REPOSITORY': config.params['head_repository'],
         'GECKO_HEAD_REV': config.params['head_rev'],
         'HG_STORE_PATH': '~/checkouts/hg-store',