diff --git a/.circleci/create_circleci_config.py b/.circleci/create_circleci_config.py index 470b4e0c262cee..5a94a500393b77 100644 --- a/.circleci/create_circleci_config.py +++ b/.circleci/create_circleci_config.py @@ -105,7 +105,7 @@ def to_dict(self): {"attach_workspace": {"at": "~/transformers/test_preparation"}}, ] steps.extend([{"run": l} for l in self.install_steps]) - steps.append({"run": {"name": "Show installed libraries and their versions", "command": """du -h -d 1 "$(pip -V | cut -d ' ' -f 4 | sed 's/pip//g')" | grep -vE "dist-info|_distutils_hack|__pycache__" | sort -h | tee installed.txt"""}}) + steps.append({"run": {"name": "Show installed libraries and their versions", "command": """du -h -d 1 "$(pip -V | cut -d ' ' -f 4 | sed 's/pip//g')" | grep -vE "dist-info|_distutils_hack|__pycache__" | sort -h | head 10 | tee installed.txt"""}}) steps.append({"run":{"name":"Show biggest libraries","command":"""dpkg-query --show --showformat='${Installed-Size}\t${Package}\n' | sort -rh | head -25 | sort -h | awk '{ printf("%.5f GB %s\n",$1/1024/1024, $2)}'"""}}) steps.append({"store_artifacts": {"path": "~/transformers/installed.txt"}})