Bug 1426324 - Make toolchain cache indexes vary depending on the docker image name. r=dustin

This commit is contained in:
Mike Hommey 2017-12-21 14:01:31 +09:00
Родитель 41d5a4e777
Коммит f203a9476f
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -88,6 +88,17 @@ def get_digest_data(config, run, taskdesc):
if deps:
data.extend(sorted(deps.values()))
# If the task uses an in-tree docker image, we want it to influence
# the index path as well. Ideally, the content of the docker image itself
# should have an influence, but at the moment, we can't get that
# information here. So use the docker image name as a proxy. Not a lot of
# changes to docker images actually have an impact on the resulting
# toolchain artifact, so we'll just rely on such important changes to be
# accompanied with a docker image name change.
image = taskdesc['worker'].get('docker-image', {}).get('in-tree')
if image:
data.extend(image)
# Likewise script arguments should influence the index.
args = run.get('arguments')
if args: