-
Notifications
You must be signed in to change notification settings - Fork 48
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
[BUG] MAP build failing during GitHub Action #431
Comments
@tomaroberts sorry for the late reply. I initially misunderstood the issue, thinking related to App SDK actions. I've inspected the log from the Action, and in the step running packager, there was an docker build error, due to dependency incompatibility, at this line I've checked my venv, the scipy version is 1.10.1 and the numpy is at 1.24.3. In your build log, the scipy is at 1.6.3. We may need to see why the scipy version is at such. Step This led me to the base image, which in the SDK v0.5 Packager, the default is Please try to build the MAP outside of the Actions and confirm the new base image works, with the |
@MMelQin – I did The problem, as you suggested, is the version of I just tested this with the following: docker pull nvcr.io/nvidia/pytorch:22.08-py3
docker run -it nvcr.io/nvidia/pytorch:22.08-py3
pip list | grep scipy which gives: I've also just tried building the MAP again with GHA and am seeing similar problem. It boils down to three package conflicts in lines 2219-2224:
I notice that right at the beginning of the MAP package process, it forces pip to install The So... how can I edit the MAP Dockerfile to adjust the |
One idea I just had was to use the I've just tried this both on a local machine and through GHA. On my local machine, it worked and if I enter the container via However, via GHA, the packager still fails as you can see here. I notice that in ALL GHA processes so far, they hard fail after Step 19/29. Step 20/29 is a |
I've investigated a bit more and run some more Actions, but no luck so far. I'm convinced it's something to do with Step 19 failing which relates to the COPYing
Things I've tried:
Any other suggestions @MMelQin ? |
Hi! I just came across this issue by coincidence. This error could mean that the /tmp/requirements.txt already exists and it is already the same file you are trying to copy. According to https://stackoverflow.com/questions/51115856/docker-failed-to-export-image-failed-to-create-image-failed-to-get-layer , this error usually shows up when the COPY command makes no difference on the resulting image. |
Describe the bug
I am trying to build a MAP via a GitHub Action, however the build is failing during/after STEP 19 in the
monai-deploy package
build process. See screenshot:Steps/Code to reproduce bug
Output of GitHub Action can be found here: Click Package Map & test MAP end-to-end.
GHA .yml file can be found here: https://github.com/GSTT-CSC/TotalSegmentator-AIDE/blob/24_publish_map/.github/workflows/publish_map.yml
Effectively, running
monai-deploy package app --tag map/init:temp -l DEBUG
fails. The GitHub Action completes, but unsuccessfully because the MAP build only reaches STEP 19/29.Expected behavior
I would expect the MAP to build and then be able to see it via the
docker images
command, however it is only partially built and has the tag<none>
in the screenshot above.Environment details (please complete the following information)
GitHub Actions environment
The text was updated successfully, but these errors were encountered: