Azure / azure-iot-sdk-c

A C99 SDK for connecting devices to Microsoft Azure IoT services
https://azure.github.io/azure-iot-sdk-c
Other
588 stars 737 forks source link

Checkout issues with Release 2017-10-06, 2017-09-25 #250

Closed Jokymon closed 7 years ago

Jokymon commented 7 years ago

Description of the issue:

Checkout of the given tag shows several issues such as reference is not a tree and Unable to checkout .... The build then fails because of a missing CMakeLists.txt file.

This issue does not occur when checking out the master. But a similar situation occurs with tag 2017-09-25 only that there the build seems to work.

Console log of the issue:

Log output of command git clone -b 2017-10-06 --recursive https://github.com/Azure/azure-iot-sdk-c.git:

remote: Counting objects: 52534, done.
remote: Compressing objects: 100% (190/190), done.
remote: Total 52534 (delta 101), reused 132 (delta 57), pack-reused 52281
Receiving objects: 100% (52534/52534), 45.04 MiB | 3.62 MiB/s, done.
Resolving deltas: 100% (33547/33547), done.
Checking connectivity... done.
Note: checking out '0176593321adae5beefc6f955bfb9ed099d4041f'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

Submodule 'azure-c-shared-utility' (https://github.com/Azure/azure-c-shared-utility.git) registered for path 'c-utility'
Submodule 'deps/parson' (https://github.com/kgabis/parson.git) registered for path 'deps/parson'
Submodule 'deps/uhttp' (https://github.com/Azure/azure-uhttp-c.git) registered for path 'deps/uhttp'
Submodule 'dps_client/deps/RIoT' (https://github.com/Microsoft/RIoT.git) registered for path 'dps_client/deps/RIoT'
Submodule 'dps_client/deps/utpm' (https://github.com/Azure/azure-utpm-c.git) registered for path 'dps_client/deps/utpm'
Submodule 'azure-uamqp-c' (https://github.com/Azure/azure-uamqp-c.git) registered for path 'uamqp'
Submodule 'azure-umqtt-c' (https://github.com/Azure/azure-umqtt-c.git) registered for path 'umqtt'
Cloning into 'c-utility'...
remote: Counting objects: 15158, done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 15158 (delta 5), reused 7 (delta 1), pack-reused 15131
Receiving objects: 100% (15158/15158), 8.64 MiB | 2.51 MiB/s, done.
Resolving deltas: 100% (10517/10517), done.
Checking connectivity... done.
Submodule path 'c-utility': checked out 'f0006d9d0df434a87f66e2ad944bd9784ce47929'
Submodule 'testtools/ctest' (https://github.com/Azure/azure-ctest.git) registered for path 'testtools/ctest'
Submodule 'testtools/testrunner' (https://github.com/Azure/azure-c-testrunnerswitcher.git) registered for path 'testtools/testrunner'
Submodule 'testtools/umock-c' (https://github.com/Azure/umock-c.git) registered for path 'testtools/umock-c'
Cloning into 'testtools/ctest'...
remote: Counting objects: 250, done.
remote: Total 250 (delta 0), reused 0 (delta 0), pack-reused 250
Receiving objects: 100% (250/250), 164.34 KiB | 0 bytes/s, done.
Resolving deltas: 100% (121/121), done.
Checking connectivity... done.
fatal: reference is not a tree: 62e29047979e66c321eacfcc009dc310904e0d84
Cloning into 'testtools/testrunner'...
remote: Counting objects: 208, done.
remote: Total 208 (delta 3), reused 3 (delta 3), pack-reused 204
Receiving objects: 100% (208/208), 836.48 KiB | 744.00 KiB/s, done.
Resolving deltas: 100% (100/100), done.
Checking connectivity... done.
fatal: reference is not a tree: 043791e53d81a6a1750573542765093d22effa29
Cloning into 'testtools/umock-c'...
remote: Counting objects: 963, done.
remote: Total 963 (delta 0), reused 0 (delta 0), pack-reused 963
Receiving objects: 100% (963/963), 416.23 KiB | 700.00 KiB/s, done.
Resolving deltas: 100% (649/649), done.
Checking connectivity... done.
fatal: reference is not a tree: be1d1544c4e3d707f47a604c6c573cecd4cce46f
Unable to checkout '62e29047979e66c321eacfcc009dc310904e0d84' in submodule path 'c-utility/testtools/ctest'
Unable to checkout '043791e53d81a6a1750573542765093d22effa29' in submodule path 'c-utility/testtools/testrunner'
Unable to checkout 'be1d1544c4e3d707f47a604c6c573cecd4cce46f' in submodule path 'c-utility/testtools/umock-c'
Cloning into 'deps/parson'...
remote: Counting objects: 541, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 541 (delta 0), reused 2 (delta 0), pack-reused 536
Receiving objects: 100% (541/541), 292.54 KiB | 527.00 KiB/s, done.
Resolving deltas: 100% (289/289), done.
Checking connectivity... done.
Submodule path 'deps/parson': checked out '578b25e5909df0ca9fb78d5173a6b247faea0c5a'
Cloning into 'deps/uhttp'...
remote: Counting objects: 90, done.
remote: Total 90 (delta 0), reused 0 (delta 0), pack-reused 90
Unpacking objects: 100% (90/90), done.
Checking connectivity... done.
Submodule path 'deps/uhttp': checked out '5296b6cd0b0b853e9a897c8c053093551ba560c3'
Submodule 'deps/c-utility' (https://github.com/Azure/azure-c-shared-utility.git) registered for path 'deps/c-utility'
Cloning into 'deps/c-utility'...
remote: Counting objects: 15158, done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 15158 (delta 5), reused 7 (delta 1), pack-reused 15131
Receiving objects: 100% (15158/15158), 8.64 MiB | 2.70 MiB/s, done.
Resolving deltas: 100% (10517/10517), done.
Checking connectivity... done.
Submodule path 'deps/uhttp/deps/c-utility': checked out 'f0006d9d0df434a87f66e2ad944bd9784ce47929'
Submodule 'testtools/ctest' (https://github.com/Azure/azure-ctest.git) registered for path 'testtools/ctest'
Submodule 'testtools/testrunner' (https://github.com/Azure/azure-c-testrunnerswitcher.git) registered for path 'testtools/testrunner'
Submodule 'testtools/umock-c' (https://github.com/Azure/umock-c.git) registered for path 'testtools/umock-c'
Cloning into 'testtools/ctest'...
remote: Counting objects: 250, done.
remote: Total 250 (delta 0), reused 0 (delta 0), pack-reused 250
Receiving objects: 100% (250/250), 164.34 KiB | 0 bytes/s, done.
Resolving deltas: 100% (121/121), done.
Checking connectivity... done.
fatal: reference is not a tree: 62e29047979e66c321eacfcc009dc310904e0d84
Cloning into 'testtools/testrunner'...
remote: Counting objects: 208, done.
remote: Total 208 (delta 3), reused 3 (delta 3), pack-reused 204
Receiving objects: 100% (208/208), 836.48 KiB | 558.00 KiB/s, done.
Resolving deltas: 100% (100/100), done.
Checking connectivity... done.
fatal: reference is not a tree: 043791e53d81a6a1750573542765093d22effa29
Cloning into 'testtools/umock-c'...
remote: Counting objects: 963, done.
remote: Total 963 (delta 0), reused 0 (delta 0), pack-reused 963
Receiving objects: 100% (963/963), 416.23 KiB | 0 bytes/s, done.
Resolving deltas: 100% (649/649), done.
Checking connectivity... done.
fatal: reference is not a tree: be1d1544c4e3d707f47a604c6c573cecd4cce46f
Unable to checkout '62e29047979e66c321eacfcc009dc310904e0d84' in submodule path 'deps/uhttp/deps/c-utility/testtools/ctest'
Unable to checkout '043791e53d81a6a1750573542765093d22effa29' in submodule path 'deps/uhttp/deps/c-utility/testtools/testrunner'
Unable to checkout 'be1d1544c4e3d707f47a604c6c573cecd4cce46f' in submodule path 'deps/uhttp/deps/c-utility/testtools/umock-c'
Failed to recurse into submodule path 'deps/uhttp/deps/c-utility'
Cloning into 'dps_client/deps/RIoT'...
remote: Counting objects: 291, done.
remote: Total 291 (delta 0), reused 0 (delta 0), pack-reused 291
Receiving objects: 100% (291/291), 176.84 KiB | 0 bytes/s, done.
Resolving deltas: 100% (141/141), done.
Checking connectivity... done.
Submodule path 'dps_client/deps/RIoT': checked out '0b59ad8a017b88dfd409349092817c82673a45d4'
Cloning into 'dps_client/deps/utpm'...
remote: Counting objects: 306, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 306 (delta 4), reused 9 (delta 3), pack-reused 294
Receiving objects: 100% (306/306), 603.07 KiB | 599.00 KiB/s, done.
Resolving deltas: 100% (155/155), done.
Checking connectivity... done.
Submodule path 'dps_client/deps/utpm': checked out '04a148dac121e7a0f32804cce682109b74f2d696'
Submodule 'deps/c-utility' (https://github.com/Azure/azure-c-shared-utility.git) registered for path 'deps/c-utility'
Cloning into 'deps/c-utility'...
remote: Counting objects: 15158, done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 15158 (delta 5), reused 7 (delta 1), pack-reused 15131
Receiving objects: 100% (15158/15158), 8.64 MiB | 2.06 MiB/s, done.
Resolving deltas: 100% (10517/10517), done.
Checking connectivity... done.
Submodule path 'dps_client/deps/utpm/deps/c-utility': checked out 'f0006d9d0df434a87f66e2ad944bd9784ce47929'
Submodule 'testtools/ctest' (https://github.com/Azure/azure-ctest.git) registered for path 'testtools/ctest'
Submodule 'testtools/testrunner' (https://github.com/Azure/azure-c-testrunnerswitcher.git) registered for path 'testtools/testrunner'
Submodule 'testtools/umock-c' (https://github.com/Azure/umock-c.git) registered for path 'testtools/umock-c'
Cloning into 'testtools/ctest'...
remote: Counting objects: 250, done.
remote: Total 250 (delta 0), reused 0 (delta 0), pack-reused 250
Receiving objects: 100% (250/250), 164.34 KiB | 0 bytes/s, done.
Resolving deltas: 100% (121/121), done.
Checking connectivity... done.
fatal: reference is not a tree: 62e29047979e66c321eacfcc009dc310904e0d84
Cloning into 'testtools/testrunner'...
remote: Counting objects: 208, done.
remote: Total 208 (delta 3), reused 3 (delta 3), pack-reused 204
Receiving objects: 100% (208/208), 836.48 KiB | 722.00 KiB/s, done.
Resolving deltas: 100% (100/100), done.
Checking connectivity... done.
fatal: reference is not a tree: 043791e53d81a6a1750573542765093d22effa29
Cloning into 'testtools/umock-c'...
remote: Counting objects: 963, done.
remote: Total 963 (delta 0), reused 0 (delta 0), pack-reused 963
Receiving objects: 100% (963/963), 416.23 KiB | 791.00 KiB/s, done.
Resolving deltas: 100% (649/649), done.
Checking connectivity... done.
fatal: reference is not a tree: be1d1544c4e3d707f47a604c6c573cecd4cce46f
Unable to checkout '62e29047979e66c321eacfcc009dc310904e0d84' in submodule path 'dps_client/deps/utpm/deps/c-utility/testtools/ctest'
Unable to checkout '043791e53d81a6a1750573542765093d22effa29' in submodule path 'dps_client/deps/utpm/deps/c-utility/testtools/testrunner'
Unable to checkout 'be1d1544c4e3d707f47a604c6c573cecd4cce46f' in submodule path 'dps_client/deps/utpm/deps/c-utility/testtools/umock-c'
Failed to recurse into submodule path 'dps_client/deps/utpm/deps/c-utility'
Cloning into 'uamqp'...
remote: Counting objects: 5079, done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 5079 (delta 15), reused 25 (delta 7), pack-reused 5028
Receiving objects: 100% (5079/5079), 3.09 MiB | 1.93 MiB/s, done.
Resolving deltas: 100% (3216/3216), done.
Checking connectivity... done.
Submodule path 'uamqp': checked out '374dae3dc647417c4c4a0143acda425e17b2d2f1'
Submodule 'deps/azure-c-shared-utility' (https://www.github.com/Azure/azure-c-shared-utility) registered for path 'deps/azure-c-shared-utility'
Submodule 'deps/azure-c-testrunnerswitcher' (https://www.github.com/Azure/azure-c-testrunnerswitcher) registered for path 'deps/azure-c-testrunnerswitcher'
Submodule 'deps/azure-ctest' (https://www.github.com/Azure/azure-ctest) registered for path 'deps/azure-ctest'
Submodule 'deps/umock-c' (https://www.github.com/Azure/umock-c) registered for path 'deps/umock-c'
Cloning into 'deps/azure-c-shared-utility'...
remote: Counting objects: 15158, done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 15158 (delta 5), reused 7 (delta 1), pack-reused 15131
Receiving objects: 100% (15158/15158), 8.64 MiB | 2.37 MiB/s, done.
Resolving deltas: 100% (10517/10517), done.
Checking connectivity... done.
Submodule path 'uamqp/deps/azure-c-shared-utility': checked out 'f0006d9d0df434a87f66e2ad944bd9784ce47929'
Submodule 'testtools/ctest' (https://github.com/Azure/azure-ctest.git) registered for path 'testtools/ctest'
Submodule 'testtools/testrunner' (https://github.com/Azure/azure-c-testrunnerswitcher.git) registered for path 'testtools/testrunner'
Submodule 'testtools/umock-c' (https://github.com/Azure/umock-c.git) registered for path 'testtools/umock-c'
Cloning into 'testtools/ctest'...
remote: Counting objects: 250, done.
remote: Total 250 (delta 0), reused 0 (delta 0), pack-reused 250
Receiving objects: 100% (250/250), 164.34 KiB | 0 bytes/s, done.
Resolving deltas: 100% (121/121), done.
Checking connectivity... done.
fatal: reference is not a tree: 62e29047979e66c321eacfcc009dc310904e0d84
Cloning into 'testtools/testrunner'...
remote: Counting objects: 208, done.
remote: Total 208 (delta 3), reused 3 (delta 3), pack-reused 204
Receiving objects: 100% (208/208), 836.48 KiB | 538.00 KiB/s, done.
Resolving deltas: 100% (100/100), done.
Checking connectivity... done.
fatal: reference is not a tree: 043791e53d81a6a1750573542765093d22effa29
Cloning into 'testtools/umock-c'...
remote: Counting objects: 963, done.
remote: Total 963 (delta 0), reused 0 (delta 0), pack-reused 963
Receiving objects: 100% (963/963), 416.23 KiB | 0 bytes/s, done.
Resolving deltas: 100% (649/649), done.
Checking connectivity... done.
fatal: reference is not a tree: be1d1544c4e3d707f47a604c6c573cecd4cce46f
Unable to checkout '62e29047979e66c321eacfcc009dc310904e0d84' in submodule path 'uamqp/deps/azure-c-shared-utility/testtools/ctest'
Unable to checkout '043791e53d81a6a1750573542765093d22effa29' in submodule path 'uamqp/deps/azure-c-shared-utility/testtools/testrunner'
Unable to checkout 'be1d1544c4e3d707f47a604c6c573cecd4cce46f' in submodule path 'uamqp/deps/azure-c-shared-utility/testtools/umock-c'
Cloning into 'deps/azure-c-testrunnerswitcher'...
remote: Counting objects: 208, done.
remote: Total 208 (delta 3), reused 3 (delta 3), pack-reused 204
Receiving objects: 100% (208/208), 836.48 KiB | 568.00 KiB/s, done.
Resolving deltas: 100% (100/100), done.
Checking connectivity... done.
fatal: reference is not a tree: 286394050620ee284d54dfa908cef44f193664e4
Cloning into 'deps/azure-ctest'...
remote: Counting objects: 250, done.
remote: Total 250 (delta 0), reused 0 (delta 0), pack-reused 250
Receiving objects: 100% (250/250), 164.34 KiB | 0 bytes/s, done.
Resolving deltas: 100% (121/121), done.
Checking connectivity... done.
fatal: reference is not a tree: b3f3ab7fa3824009c4aab8b493dbc221193f5dd2
Cloning into 'deps/umock-c'...
remote: Counting objects: 963, done.
remote: Total 963 (delta 0), reused 0 (delta 0), pack-reused 963
Receiving objects: 100% (963/963), 416.23 KiB | 0 bytes/s, done.
Resolving deltas: 100% (649/649), done.
Checking connectivity... done.
fatal: reference is not a tree: 52a652266f14a2452fc9e1f0fdc20bd591e85fcf
Failed to recurse into submodule path 'uamqp/deps/azure-c-shared-utility'
Unable to checkout '286394050620ee284d54dfa908cef44f193664e4' in submodule path 'uamqp/deps/azure-c-testrunnerswitcher'
Unable to checkout 'b3f3ab7fa3824009c4aab8b493dbc221193f5dd2' in submodule path 'uamqp/deps/azure-ctest'
Unable to checkout '52a652266f14a2452fc9e1f0fdc20bd591e85fcf' in submodule path 'uamqp/deps/umock-c'
Cloning into 'umqtt'...
remote: Counting objects: 2445, done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 2445 (delta 20), reused 30 (delta 10), pack-reused 2391
Receiving objects: 100% (2445/2445), 635.88 KiB | 992.00 KiB/s, done.
Resolving deltas: 100% (1335/1335), done.
Checking connectivity... done.
Submodule path 'umqtt': checked out 'dc47aed40cc53edae65acdf35b9cf370757f48b0'
fatal: no submodule mapping found in .gitmodules for path 'c-utility'
Failed to recurse into submodule path 'umqtt'

And subsequently the build with CMake also fails because of a missing CMakeLists.txt file:

swegmann@niflheim:~/azure-iot-sdk-c/build$ cmake ..
-- The C compiler identification is GNU 5.4.1
-- The CXX compiler identification is GNU 5.4.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- target architecture: x86_64
-- Performing Test CXX_FLAG_CXX11
-- Performing Test CXX_FLAG_CXX11 - Success
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libssl.so;/usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.0.2g") 
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'libcurl'
--   Found libcurl, version 7.47.0
-- Found CURL: curl  
-- AMQP Target architecture: x86_64
-- MQTT Target architecture: x86_64
CMake Error at umqtt/dependencies.cmake:12 (add_subdirectory):
  The source directory

    /home/swegmann/azure-iot-sdk-c/umqtt/deps/c-utility

  does not contain a CMakeLists.txt file.
Call Stack (most recent call first):
  umqtt/CMakeLists.txt:83 (include)

-- iothub architecture: x86_64
-- Configuring incomplete, errors occurred!
See also "/home/swegmann/azure-iot-sdk-c/build/CMakeFiles/CMakeOutput.log".
alexmrtn commented 7 years ago

Hi,

I have the same problem, I opened an issue on the c-utility git : https://github.com/Azure/azure-c-shared-utility/issues/119. This problem seems to impact also previous commits, last week it was working on the tag 2017-08-25 but not anymore.

Alexis.

ewertons commented 7 years ago

Hi @Jokymon , thanks for the quick report. We are completing the release today and the issue above will go away as a result.

We will reply back once the release is done.

Jokymon commented 7 years ago

I just noticed at least as of Oct 9 our CI shows issues with the checkout of Version 2017-06-30 as well:

Cloning into 'testtools/ctest'...
fatal: reference is not a tree: 92c82a95fb19255c378cfb56a5ca2b68f2f4b7e7
Cloning into 'testtools/testrunner'...
fatal: reference is not a tree: 1f591f650b5314faf5199ec580789047d34f0f57
ewertons commented 7 years ago

Yes, @Jokymon . You will be able to use the latest release soon, it is almost completed.

We will update you soon.

ewertons commented 7 years ago

Hi @Jokymon , the new release is done, and is working properly. We apologize for the disruption.

Please grab the latest code using git clone --recursive -b 2017-10-09 https://github.com/Azure/azure-iot-sdk-c.git

As a note, unfortunately the previous releases you mentioned won't be available anymore.

Jokymon commented 7 years ago

Ok, the 2017-10-09 tag is working for me thanks. That the older release couldn't be recovered is unfortunate but we can switch to the newer release for now.

I will close this issue

ghost commented 7 years ago

Hi ewertons,

I'm running in the same issue. Not having access to earlier releases is some kind of a breaker. We bundled Azure with our BSP. But now older releases of the BSP are no longer buildable. So we have to provide hotfixes for them which change software revisions, too. For some customers this might trigger another certification cycle. They won't be happy!

ewertons commented 7 years ago

@MarcusPietrek , you are right. We are reopening this issue and will post the progress as we fix it. We are working on it at this same moment. We apologize for the disruption.

ewertons commented 7 years ago

All the Azure IoT C SDK releases posted on GitHub are now fixed. Once again, we apologize for the broken submodules. We will guarantee this issue does not occur anymore.

If you have chance to verify the releases as well, please let us know.

As a note: the tag "2017-10-06", although present in the repo, does not refer to any of our official GitHub releases. Please refrain from using it.

Thanks for your contribution to the Azure IoT SDKs.

ghost commented 7 years ago

@ewertons

I can confirm it. Thank you very much.