From 41d12c72c3dfff9fb5b737e71e1efd562b81f31e Mon Sep 17 00:00:00 2001 From: Mihai Maruseac Date: Thu, 11 Jan 2024 13:53:25 -0800 Subject: [PATCH] Debug Signed-off-by: Mihai Maruseac --- model_signing/serialize.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/model_signing/serialize.py b/model_signing/serialize.py index fb2a4a28..a65ebfa4 100644 --- a/model_signing/serialize.py +++ b/model_signing/serialize.py @@ -173,6 +173,7 @@ def _ordered_files(path: Path, ignorepaths: [Path]) -> []: @staticmethod # TODO: type of returned value. def _create_tasks(children: [], shard_size: int) -> [[]]: + print(f'{len(children)=}, {children=}') tasks = [[]] * 0 curr_file = 0 curr_pos = 0 @@ -185,7 +186,7 @@ def _create_tasks(children: [], shard_size: int) -> [[]]: name, typ, size = children[curr_file] # It's a directory. - # NOTE: It is fast to commupte the hash because there's no data + # NOTE: It is fast to compute the hash because there's no data # besides the name and the type. # TODO(#12): do we need this at all? This only matters # if we care about empty directories, since non-empty ones have