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

Display warning message when attempting to package an empty model directory #8

Open
mocsharp opened this issue Jan 6, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mocsharp
Copy link
Collaborator

mocsharp commented Jan 6, 2025

When users try to package an empty model directory, the packager continues and fails with the following error:

 => CACHED [release 15/22] RUN pip install --no-cache-dir --user -r /tmp/requirements.txt                                                           0.0s
 => CACHED [release 16/22] COPY ./holoscan-2.8.0.1-cp310-cp310-manylinux_2_35_aarch64.whl /tmp/holoscan-2.8.0.1-cp310-cp310-manylinux_2_35_aarch64  0.0s
 => CACHED [release 17/22] RUN pip install /tmp/holoscan-2.8.0.1-cp310-cp310-manylinux_2_35_aarch64.whl                                             0.0s
 => ERROR [release 18/22] COPY ./models  /opt/holoscan/models                                                                                       0.0s
------
 > [release 18/22] COPY ./models  /opt/holoscan/models:
------
Dockerfile:158
--------------------
 156 |     
 157 |     
 158 | >>> COPY ./models  /opt/holoscan/models
 159 |     
 160 |     
--------------------
ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref kfeblozzji2f87ghcuzhtwn9t::oomgezoj5urmx2l5j9e3t1erj: "/models": not found
[2024-12-16 12:43:54,278] [INFO] (packager) - Build Summary:

Platform: igx-orin-devkit/dgpu
    Status: Failure
    Error:  Error building image: see Docker output for additional details.

Instead, the packager shall display a warning and not attempt to build the container.

@mocsharp mocsharp added the bug Something isn't working label Jan 6, 2025
@mocsharp mocsharp self-assigned this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant