InsightSoftwareConsortium / ITK

Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimensions.
https://itk.org
Apache License 2.0
1.42k stars 663 forks source link

Building v5.1.2 fails with BUILD_TESTING=ON #2717

Open rickardcronholm opened 3 years ago

rickardcronholm commented 3 years ago

Description

Building ITK v5.1.2 with DBUILD_TESTING:BOOL=ON failes due to MD5 issues with external data.

Steps to Reproduce

This is conducted through SuperBuild of SimpleITK, however the issue lies with ITK.

  1. docker run --rm -it rickardcronholm/buildsitk:latest bash
  2. bash build_SimpleITK/build.sh pull
  3. bash build_SimpleITK/build.sh apply_patches
  4. bash build_SimpleITK/build.sh build_develop

Expected behavior

Completed build

Actual behavior

Build fails `CMake Error at /usr/share/cmake-3.10/Modules/ExternalData.cmake:1121 (message):

Object MD5=68046dd24c7824ef346d5a219e271d47 not found at:

https://insightsoftwareconsortium.github.io/ITKTestingData/MD5/68046dd24c7824ef346d5a219e271d47 ("HTTP response code said error")
https://data.kitware.com:443/api/v1/file/hashsum/MD5/68046dd24c7824ef346d5a219e271d47/download ("HTTP response code said error")
https://itk.org/files/ExternalData/MD5/68046dd24c7824ef346d5a219e271d47 ("HTTP response code said error")
https://slicer.kitware.com/midas3/api/rest?method=midas.bitstream.download&checksum=68046dd24c7824ef346d5a219e271d47&algorithm=MD5 (wrong hash MD5=3707eb222e3ad27cf5fda82456fe5280)

CMakeFiles/ITKData.dir/build.make:9230: recipe for target 'ExternalData/Modules/Remote/SimpleITKFilters/test/Baseline/ObjectnessMeasureImageFilterTest2.nii-hash-stamp' failed make[5]: [ExternalData/Modules/Remote/SimpleITKFilters/test/Baseline/ObjectnessMeasureImageFilterTest2.nii-hash-stamp] Error 1 make[5]: Waiting for unfinished jobs.... [ 60%] Building CXX object Modules/Numerics/Statistics/src/CMakeFiles/ITKStatistics.dir/itkChiSquareDistribution.cxx.o [ 60%] Building CXX object Modules/Numerics/Statistics/src/CMakeFiles/ITKStatistics.dir/itkGaussianDistribution.cxx.o [ 60%] Building CXX object Modules/IO/ImageBase/src/CMakeFiles/ITKIOImageBase.dir/itkArchetypeSeriesFileNames.cxx.o Scanning dependencies of target SharedTestLibraryA [ 60%] Building CXX object Modules/Core/Common/test/CMakeFiles/SharedTestLibraryA.dir/SharedTestLibraryA.cxx.o [ 60%] Linking CXX executable ../../../../bin/itkMathTest [ 60%] Built target itkMathTest Scanning dependencies of target SharedTestLibraryB [ 60%] Building CXX object Modules/Core/Common/test/CMakeFiles/SharedTestLibraryB.dir/SharedTestLibraryB.cxx.o CMake Error at /usr/share/cmake-3.10/Modules/ExternalData.cmake:1121 (message):

Object MD5=1fdb74a9029cf33147ace42e2d6c8f15 not found at:

https://insightsoftwareconsortium.github.io/ITKTestingData/MD5/1fdb74a9029cf33147ace42e2d6c8f15 ("HTTP response code said error")
https://data.kitware.com:443/api/v1/file/hashsum/MD5/1fdb74a9029cf33147ace42e2d6c8f15/download ("HTTP response code said error")
https://itk.org/files/ExternalData/MD5/1fdb74a9029cf33147ace42e2d6c8f15 ("HTTP response code said error")
https://slicer.kitware.com/midas3/api/rest?method=midas.bitstream.download&checksum=1fdb74a9029cf33147ace42e2d6c8f15&algorithm=MD5 (wrong hash MD5=2f6e8aea5cf37a37decab7892bae0fe3)

`

Reproducibility

100

Versions

v5.1.2

Environment

Ubuntu 18.04, Cmake 3.10.2, python 3.6.9

Additional Information

jcfr commented 3 years ago

https://slicer.kitware.com

This server has been retired and is currently only accessible from Kitware internal network at https://slicer-old.kitware.com

thewtex commented 3 years ago

This server has been retired and is currently only accessible from Kitware internal network at https://slicer-old.kitware.com

Removed here: https://github.com/InsightSoftwareConsortium/ITK/pull/2718

thewtex commented 3 years ago

This is an issue with the ITKSimpleITKFilters repository. @blowekamp can the testing data be uploaded to data.kitware.com and the content links updated to .sha512's?

rickardcronholm commented 2 years ago

@thewtex Are there any updates on this issue? As it stands it is not possible to build ITK with unittests due to this data being absent from all servers.

thewtex commented 2 years ago

This is an issue with the ITKSimpleITKFilters repository. @blowekamp can the testing data be uploaded to data.kitware.com and the content links updated to .sha512's?

@rickardcronholm the data has to be uploaded as mentioned.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

dzenanz commented 2 years ago

If I remember correctly, there was some work on this. Was this issue resolved?

rickardcronholm commented 2 years ago

Issue persists. Does not lie with ITK but rather with https://github.com/InsightSoftwareConsortium/ITKSimpleITKFilters

On Sun, Apr 17, 2022, 01:00 Dženan Zukić @.***> wrote:

If I remember correctly, there was some work on this. Was this issue resolved?

— Reply to this email directly, view it on GitHub https://github.com/InsightSoftwareConsortium/ITK/issues/2717#issuecomment-1100767317, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADYQU5DURDVDYQ2KYGI32O3VFNA63ANCNFSM5DSJT7GQ . You are receiving this because you were mentioned.Message ID: @.***>