From 7fbb7cae567d24e766ae851cc494b8db0f239e54 Mon Sep 17 00:00:00 2001 From: Jiaxiao Zheng Date: Tue, 9 Jun 2020 14:00:06 -0700 Subject: [PATCH] fix length (#3934) --- sdk/python/kfp/compiler/_default_transformers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/python/kfp/compiler/_default_transformers.py b/sdk/python/kfp/compiler/_default_transformers.py index 4c59555cfcf..c80311c458a 100644 --- a/sdk/python/kfp/compiler/_default_transformers.py +++ b/sdk/python/kfp/compiler/_default_transformers.py @@ -111,8 +111,9 @@ def _add_name_for_oob_components(task): origin_path_label = origin_path[-63:].strip('-_.') task.add_pod_label(COMPONENT_PATH_LABEL_KEY, origin_path_label) if component_ref.digest: + # We can only preserve the first 63 digits of the digest. task.add_pod_label( - COMPONENT_DIGEST_LABEL_KEY, component_ref.digest) + COMPONENT_DIGEST_LABEL_KEY, component_ref.digest[:63]) return task