Граф коммитов

4582 Коммитов

Автор SHA1 Сообщение Дата
Eric Wolz 0e2a63b0a4
update doxygen for Retry Policy (#2542) 2023-11-15 15:18:25 -08:00
Eric Wolz 3931d41771
Fix check_submodules npm (#2541)
* check_submodules fix
2023-11-14 09:52:35 -08:00
Ewerton Scaboro da Silva 59b7663bb3
Remove unused structure IOTHUB_REQ_INFO (#2531)
* Remove unused structure IOTHUB_REQ_INFO

Addresses https://github.com/Azure/azure-iot-sdk-c/issues/2529

* Fix unit tests
2023-09-19 14:29:41 -07:00
Eric Wolz e796a74836
xcode fix prototype warnings (#2527)
* update cutil
2023-09-06 10:41:36 -07:00
Eric Wolz 1f3d95b4da
move longhaul to VS2022 (#2526) 2023-08-30 16:56:13 -07:00
Eric Wolz 95a41caa05
Ericwol/docker update (#2525)
* remove debian stretch

* print PI version

* move to OpenSSL_1_1_1v

* docker update

* remove curl --version

* update global_valgrind_suppression.supp

* update repos

* debian buster update

* enbale prov_valgrind_suppression

* update suppression
2023-08-30 16:24:18 -07:00
Eric Wolz e65809327b
move to devops OSX build (#2523)
* move to devops OSX build

* update cutil

* main() returns int

* no-deprecated-declarations

* test fix
2023-08-23 15:46:22 -07:00
Eric Wolz 33435b7200
Move to devops osx, enable CodeQL tasks (#2522)
* Support OSX DevOps

* update cutil

* add codeql

* codeql

* codeql

* increase timeout

* enable ql

* increase timeout

* CodeQL.Enabled to main branch

* suppress curl_easy_perform

* move to VS2022
2023-08-21 16:52:15 -07:00
Ewerton Scaboro da Silva 3cffd139f5
Fix newline at the end of source files (#2521) 2023-08-16 15:40:15 -07:00
Eric Wolz 90643d32e9
move win longhaul to x64 (#2520)
* move win longhaul to 64bits

* move to x64
2023-08-16 11:29:21 -07:00
Ewerton Scaboro da Silva adcf1ea36b
Fix DUP flag in re-sent telemetry over MQTT protocol (#2519)
Unfortunately telemetry messages that are resent by the MQTT transport
are not marked with the DUP flag as TRUE (as should by spec MQTT-3.3.1-2).
Note that telemetry messages are always sent by the azure-iot-sdk-c MQTT
transport with QOS1, so no control is necessary for the DUP flag related to QOS0.
azure-iot-sdk-c's MQTT transport does not attempt ot resend TWIN messages
or direct methods responses, so this fix does not apply to these
messaging features.
Related issue: https://github.com/azure/azure-iot-sdk-c/issues/2514
2023-08-15 13:54:01 -07:00
Raul Leclair 230b8f4b85
Bump version from 1.11.0 to 1.12.0. Add LTS Table entry for LTS_08_2023 (#2516) 2023-08-09 08:34:02 -07:00
Raul Leclair 97fef57041
Updating c-utility for fix for segfault on socketio_berkeley (#2515)
* Updating c-utility for fix for segfault on socketio_berkeley

* Updating other submodules
2023-08-02 16:19:16 -07:00
Ewerton Scaboro da Silva 900f8ae5df
Fix incorrect internal header include introduced by upload-to-blob refactoring (#2510)
Internal headers must not be referenced by any public header.
The recent u2b changes caused iothub_client_core_ll.h to
include internal/iothub_client_ll_uploadtoblob.h, which is incorrect.
This fix removes this include directive from iothub_client_core_ll.h and
moves the type IOTHUB_CLIENT_LL_UPLOADTOBLOB_HANDLE into
iothub_client_core_common.h, solving the need for both client layer and
upload-to-blob modules to reference this type.
2023-07-25 15:09:46 -07:00
Ewerton Scaboro da Silva f14ea559b8
Fix cross-comp CI pipeline (ARM & MIPS32) to build against target branch instead of main (#2509)
The ARM and the MIPS32 cross-compilation jobs in .vsts-ci.yml will always target the main branch,
ignoring the branch a given PR is based on and letting potential issues sip through.
This change fixes the ARM and MIPS32 jobs so they run against whatever branch the pipeline is running
against.
2023-07-25 13:09:40 -07:00
Ewerton Scaboro da Silva 979d0718d2
Add more granular upload-to-blob functions, refactor u2b code (#2498)
* Add more granular upload-to-blob functions, refactor u2b code

* [ACR] Expose upload-to-blob correlation ID and SAS URI in new API functions

* Address code review comments (2)

* Update unit tests for blob.c

* Update iothub_client_ll_u2b_ut

* Update iothub_client_ll_u2b_ut (continued) and other fixes

* Update iothub_client_ll_u2b_ut (continued 2)

* Update iothub_client_ll_u2b_ut (continued 3)

* Update iothub_client_ll_u2b_ut (continued 4)

* Updates to iothub_client_core_ll_ut

* Updates to iothub_client_core_ll_ut (continued)

* Additional unit test fixes

* Fix return of blob result in iothubclient_ll_u2b_ut

* Fix size_t to int conversion in iothub_client_ll_uploadtoblob.c

* Add fixes for clang build

* More fixes for clang and windows builds

* Fix DONT_USE_UPLOADTOBLOB guards in code

* More build and test fixes

* More build fixes

* More test fixes in iothub_client_ll_u2b_ut for OSX pipeline

* Reduce number of iterations of IoTHub_MQTT_UploadCloseHandle_Before_WorkersComplete

* Address CR comments from Eric

* Add retry logic to iothub_client_sample_upload_to_blob_custom

* Address code review comments (function renaming)

* Verify and log http response status code in u2b functions

* Update blob_ut

* Address final CR comments
2023-07-20 14:11:59 -07:00
Eric Wolz 5ce08e60ea
Stabilize E2E tests for gwv2 (#2500)
* debug curl

* handle device create gw timeout

* handle IOTHUB_REGISTRYMANAGER_DEVICE_EXIST

* http dbg

* dbg trace

* handle network disconnects on twin patch

* doesDeviceExist

* handle module connect

* error retry for twin update

* ReceiveConfirmationCallback logs

* fix logging

* fix http test

* update uhttp

* submodule update

* SUPRESS service client printf

* pr feedback

* remove sleep on IoTHub_HTTP_SendEvent_Shared_e2e

* update supression rules
2023-07-19 17:42:39 -07:00
Eric Wolz 9e5c3fb99c
remove ubuntu 18 (#2502)
* remove ubuntu 18

* Update .vsts-ci.yml for Azure Pipelines

* remove_ubuntu18

* remove_ubuntu18
2023-07-19 15:24:21 -07:00
Ewerton Scaboro da Silva d7eb5ac3ee
Update CODEOWNERS (#2503) 2023-07-19 18:07:15 +00:00
Ewerton Scaboro da Silva 8379fbcd77
Clean CODEOWNERS (#2501) 2023-07-19 08:38:52 -07:00
Eric Wolz 8882913cc3 Merge branch 'main' of https://github.com/Azure/azure-iot-sdk-c 2023-07-12 18:30:20 -07:00
Eric Wolz f8598706a2 remove traceabilitytool from C build 2023-07-12 18:30:12 -07:00
Eric Wolz 0735a4a96b Update .vsts-ci.yml for Azure Pipelines 2023-07-12 15:52:33 -07:00
Eric Wolz 76280772a7 update tools .net version 2023-07-12 11:51:41 -07:00
Eric Wolz 00c4d78a9f Update .vsts-ci.yml for Azure Pipelines 2023-07-12 11:29:27 -07:00
Eric Wolz 96c1c4c852 Update .vsts-ci.yml for Azure Pipelines 2023-07-10 14:34:06 -07:00
Ewerton Scaboro da Silva 62321f2c40
Change message_queue indexing from pointer address to uint32_t (#2497)
This change fixes a memory corruption caused by message queue when the
following scenario occurs:
MESSAGE1 is enqueued (address #0001)
MESSAGE1 is put in progress by mq
MESSAGE1 is destroyed by the app
MESSAGE2 is enqueued (re-using address #0001, which was made available
by the previous step)
MESSAGE2 is put in progress by the mq
MESSAGE2 processing is marked as completed by the app
> Here the message queue searches the list of in-progress messages by
the message address in memory. Since MESSAGE2 now has the same address
of MESSAGE1 (which was freed), message_queue picks the entry for
MESSAGE1 for removing from the in-progress list, leaving MESSAGE2
behind.
2023-06-19 10:12:01 -07:00
Eric Wolz b2b8ff1b22
componentGovernance (#2496) 2023-06-15 11:46:39 -07:00
Raul Leclair 3deff73d8b
Enabling pipeline E2E tests for dual stack (#2491)
* Dual Stack pipeline addition

* Addressing comments, testing ubuntu 22

* Testing new pool

* Updating c-utility test

* Addressing comments, updating utility, revert tests

* Updating other submodules

* Bugfix for local sockets

* Updating other submodules 2
2023-06-13 14:37:45 -07:00
Ewerton Scaboro da Silva 4c4db6f9c5
Fix data type of error code for Upload to Blob error responses (#2490)
* Fix data type of error code for Upload to Blob error responses

* Fix data type of error code for Upload to Blob error responses

* Add E2E test to verify when upload is aborted
2023-05-25 23:56:28 +00:00
Valerie Avva Lim 1cfdccafd8
get latest parson with sdl fix (#2488) 2023-05-25 14:19:55 -07:00
Ewerton Scaboro da Silva 953f34e3f8
Curl is not needed in the iothub_client_sample_mqtt_dm sample (#2485) 2023-05-16 23:58:21 +00:00
Cristian Pop 8f89ebee51
DPS-TPM deprecation (#2484)
* DPS-TPM deprecation

* Addressing feedback.
2023-05-12 00:02:45 +00:00
Eric Wolz 10d6d712c4
revert pr requirements workaround (#2483) 2023-05-08 17:09:56 -07:00
Eric Wolz 66ef10a640
Update upload blob sample to use MQTT (#2482)
* Update upload blob sample to use MQTT
2023-05-05 11:19:47 -07:00
Eric Wolz b6c8b64319 Update raspi.yaml for Azure Pipelines 2023-05-04 14:27:24 -07:00
Eric Wolz 1b7a83d08a Update raspi.yaml for Azure Pipelines 2023-05-04 14:24:54 -07:00
Valerie Avva Lim 46c1e351ad
SDL Bugfixes (part 2) (#2481)
* sdl fixes

* update submodules to bring in sdl fixes

* revert accidental change

* sdl fixes

* pull in sdl fixes from submodules

* revert parson change
2023-05-02 16:00:40 -07:00
Valerie Avva Lim b34958a2f4
SDL bugfixes (#2480)
* sdl fixes

* update submodules to bring in sdl fixes

* revert accidental change
2023-05-02 13:44:58 -07:00
Eric Wolz ff71116a64
Xcode Native to 8 concurrent tasks (#2478) 2023-04-24 22:55:12 +00:00
Ewerton Scaboro da Silva 943136ea5e
Add LTS Table entry for LTS_01_2023_Ref02 (#2477) 2023-04-20 22:34:41 +00:00
Ewerton Scaboro da Silva 1f4fd95b2f
Fix AMQP transport to break infinite loop of link re-ATTACH-ments (#2472)
In iothubtransport_amqp_common.c `number_of_previous_failures` is used to track issues with the AMQP device and either restart or re-connect it as appropriately.
Note: AMQP device (iothubtransport_amqp_device.c) is a subcomponent of the AMQP transport, representing each registered device.
The AMQP transport can either just restart a registered AMQP device (causing just re-ATTACH-ment of AMQP links) or completely reconnect it (with END, CLOSE, OPEN, BEGIN, ...).
When a failure occurs (e.g., the Twin messenger reports an error), the AMQP device goes into an error state itself and `number_of_previous_failures` (on AMQP transport layer) is incremented.
If `number_of_previous_failures` is less than `MAX_NUMBER_OF_DEVICE_FAILURES`, the AMQP device is just restarted.
If `number_of_previous_failures` reaches `MAX_NUMBER_OF_DEVICE_FAILURES`, the AMQP device is completely reconnected.
If `number_of_previous_failures` never reaches `MAX_NUMBER_OF_DEVICE_FAILURES` (iothubtransport_amqp_common.c:1058) then the transport will never force a full reconnection, always trying to stop the registered AMQP device.
When IoTHubTransport_AMQP_Common_Device_DoWork is called (for each registered device), if `send_pending_events` succeeds, `number_of_previous_failures` is set to 0.
But all `send_pending_events` does is to add a message on the outgoing queue of the AMQP messenger, so it is always expected to succeed, always resetting `number_of_previous_failures`.
That prevents in such case the AMQP transport from fully reconnecting with the IoT Hub in specific error scenarios - like when the Twin throttling occurs, causing outgoing Twin messages (e.g, PATCH, i.e., reported properties update) to fail.
The AMQP transport keeps trapped in a loop of just trying to restablish the AMQP links in in this case.
2023-04-07 21:42:56 -07:00
Eric Wolz 6ed509fce6
reduce longhaul verbosity (#2471)
* Reduce verbososity of longhaul logs.
        Only print stats on failures.

* call VsDevCmd for tests
2023-04-06 18:03:23 -07:00
Eric Wolz c7310bbaef
Fix Longhaul segfault (#2470) 2023-04-06 17:07:37 -07:00
Eric Wolz 97ea97c290
Update global_valgrind_suppression.supp (#2469) 2023-04-05 14:31:15 -07:00
Eric Wolz 270e19783c support ubuntu-20.04 2023-04-05 13:25:52 -07:00
Eric Wolz e17ae07838
fix vs2917 build (#2468) 2023-04-04 13:02:32 -07:00
Mingjie Shen a8edc1b927
Fix duplicate include guard (#2467)
The macro name 'PROV_TRANSPORT_AMQP_COMMON_H' was used in two header files: prov_transport_amqp_common.h and prov_transport_mqtt_common.h.
The new macro name 'PROV_TRANSPORT_MQTT_COMMON_H' is created for prov_transport_mqtt_common.h.
2023-03-28 14:37:48 -07:00
Eric Wolz a92ee04d39
Support for VS2022 (#2466)
* support vs2022

* display cmake version

* update traceabilitytool to .net 4.7.2

* added ASAN
2023-03-27 14:29:19 -07:00
Eric Wolz 7572366026
Update CONTRIBUTING.md 2023-03-21 10:50:39 -07:00