Skip to content

Ensure .resolve() calls in compress.py properly handle host path resolution #1558

@coderabbitai

Description

@coderabbitai

Description

In the containerized runtime environment introduced in PR #1512, the .resolve() calls in components/clp-package-utils/clp_package_utils/scripts/compress.py need to properly resolve relative paths and symlinks in the host path space. Otherwise, the mounted_paths might point to invalid files in the Package services containers.

Context

The _generate_logs_list function uses pathlib.Path(...).resolve() to convert user-provided paths into absolute paths before mounting them in containers. However, in the containerized runtime, these resolve calls may operate in the container's filesystem space rather than the host's filesystem space.

Related

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions