Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip checking files under .../directory-hash/ dir #1297

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,16 @@ def _get_files_owned_by_rpms(context, dirpath, pkgs=None, recursive=False):
searchdir = context.full_path(dirpath)
if recursive:
for root, _, files in os.walk(searchdir):
if '/directory-hash/' in root:
# tl;dr; for the performance improvement
# The directory has been relatively recently added to ca-certificates
# rpm on EL 9+ systems and the content does not seem to be important
# for the IPU process. Also, it contains high number of files and
# their processing floods the output and slows down IPU.
# So skipping it entirely.
# This is updated solution that we drop originally: 60f500e59bb92
api.current_logger().debug('SKIP files in the {} directory: Not important for the IPU.'.format(root))
continue
for filename in files:
relpath = os.path.relpath(os.path.join(root, filename), searchdir)
file_list.append(relpath)
Expand Down