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
--- 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',