* Fix issue in reboot/restart flow and race condition in D2C messaging util (#242)
* - Fix an issue for image-based update scenario where the device doesn't reboot after the new image is installed.
- Add ADUC_D2C_Message_Type_Device_Properties to avoid a race condition.
* Update steps_handler.cpp
* Update steps_handler.cpp
* Update workflow_utils.c
Remove comment
* Address PR feedback
* Update how-to-build-agent-code.md
* Manually integrate PR https://github.com/Azure/iot-hub-device-update/pull/58
Co-authored-by: Pierrick Arsenault <pierrick.arsenault@stello.ca>
* revert clang-format.sh to avoid issues when pipe in staged content
* Disable clangformat in precommit hook due to cross ver compat
* Fix install-deps issue when --work-folder used on ubuntu 20.04
* Cleanup sandbox on start of deployment processing (#247)
* Added README section for Azure CLI (#254)
* Merge 'develop' into 'main' (#243) (#262) (#264)
Fix issue in reboot/restart flow and race condition in D2C messaging util (#242)
- Fix an issue for image-based update scenario where the device doesn't reboot after the new image is installed.
- Add ADUC_D2C_Message_Type_Device_Properties to avoid a race condition.
Note | These changes passed e2e verification internally.
Co-authored-by: Nox-MSFT <55153324+Nox-MSFT@users.noreply.github.com>
Co-authored-by: Nox-MSFT <55153324+Nox-MSFT@users.noreply.github.com>
* Use 'bool' instead of '_Bool' (#268)
* sort paths before asserting in systemutils_forEachDir tests (#265)
* sort paths before asserting in systemutils_forEachDir tests
* Revamp test to fully utilize test fixture instance and have bare minimum test code
* clang-format
* Remove stale debug trace from main() (#257)
* Fix many memory leaks and reenable UT (#283)
* fix memleak in workflow_get_workfolder
* Fix leak of hash array in workflow_get_update_file
* remove unused include in steps_handler
* clang-format steps_handler
* Remove unused include in file_test_utils
* memleak, use workflow_free in AutoWorkflowHandle
* split autoopendir impl, throw on opendir failure
* make findFilesInDir iterative, guard non-dir arg
* uncomment source_update_cache_utils unit tests
* Fix many memleaks (valgrind) in MoveToUpdateCache
* Remove curl dependency in https_proxy_utils (Bug 42504722) (#282)
* Remove curl dependency in https_proxy_utils
* PR comments
* Remove mallocAndStrcpy_s header
* Update encoded test
* log result.ResultCode instead of result on nested edge startup failure (#280)
* remove do dep packages
* fix install_aduc_deps
* Handle errors when download handler plugin symbol missing (#284)
* Make DH Factory LoadDownloadHandler noexcept
* Make DH Plugin noexcept
* throw plugin exception, extract DH extmgr helper
* Fix ProcessDownloadHandlerExtensibility docs
* Add missing Log_Error for caught PluginException
* create erc for each dh export and rmv catch in ADUC_DownloadHandlerPlugin_OnUpdateWorkflowCompleted
* Bug 42442896: zlog - incorrect threadproc signature (#287)
* Removed log message for retrieving connection information from connection string (#292)
* Updated doxygen version (#289)
* Updated doxygen version
* Changed product name to reflect documentation and removed pre-version
* Changed install-deps to clean up after itself (#295)
* Updated install-deps to remove old files and cleanup after itself
* Fixed script errors
* one line fix (#297)
* use helper for recursive mkdir (#301)
* Try to reconnect to IoT Hub on bad credential or expired SAS token (when using AIS) (#298)
* Fix undefined references error in adu-shell (#305)
* Took Jeff's suggestion for removing the pthread_cancel calls (#302)
* Turn d2c_messaging unit tests into functional tests and skipped by default. (#306)
* use TestCaseFixture ptr, not void ptr (#308)
* fix zlog file handle leak (#310)
* fix zlog file handle leak
* set ret=1 upfront and ret 1 when RunAsDesiredUser returns false
* rmv last ret=1 straggler
* CP: Fix up issues with d2c_messaging. Working on WIOT. Needs to be brought to develop. (#314)
Co-authored-by: Jeff Miller <jeffmill@microsoft.com>
* Fix build pipeline by fixing cpp-tidy errors (#313)
* Fix deadlock in zlog flush deinit (#315)
* Fix deadlock in zlog finish flush
* rmv flush thread
* use zlog_flush_buffer and init zlog_last_flushed to 0
* Fix regression in ADUC_Logging_Init to allow agent to start (#317)
* Update cached workfolder when processing replacement workflow (#322)
Fixes issue where replacement workflow processing uses the previous workflow's workfolder sandbox that was in the property cache.
* Update README.md (#294)
* Moved the output of catch from cout to cerr for all CATCH_CONFIG_RUNNER unit tests (#323)
* Mark test case "30 retries - httpStatus 401" as functional - takes 30s to run (#325)
Co-authored-by: Jeff Miller <jeffmill@microsoft.com>
* cherry-pick from wiot-s1 feature branch: GetConnectionInfoFromConnectionString crashes on failure. (#324) (#326)
Co-authored-by: Jeff Miller <jeffmill@microsoft.com>
* Fix overwrite of contract maj ver in downloaders and comp enumerator (#327)
* fix contract majVer overwrite with minVer in content downloaders and content enumerator
* fix contract comparison logic
* Fixes the E2E Pipeline so all tests pass and scenarios are run (#329)
* Removing the cppcheck and clang-tidy to see if that is what is causing the pipeline builds to fail
* Making linking changes to see if that fixes the build error
* Adding debug lines
* Added timeout failures
* Added call to set device name when configuring agent through config file - fixes diagnostics
* Removed output of the connection string during test
* Added input params checks to ConnectionStringUtils_IsNestedEdge to prevent test failures (#330)
* Added input params check to prevent bad access
* Changed null check to IsNullOrEmpty()
* Upgraded patch version (#331)
* Fix bug in swupdate-handler v2 example (#333)
* Solving merge conflicts main to develop (#338)
* Merge 'develop' into 'main' (#243)
Fix issue in reboot/restart flow and race condition in D2C messaging util (#242)
- Fix an issue for image-based update scenario where the device doesn't reboot after the new image is installed.
- Add ADUC_D2C_Message_Type_Device_Properties to avoid a race condition.
Note | These changes passed e2e verification internally.
* Update issue templates
* Update issue templates
* Update issue templates
Co-authored-by: Nox-MSFT <55153324+Nox-MSFT@users.noreply.github.com>
Co-authored-by: Esha Shah <92388818+eshashah-msft@users.noreply.github.com>
Co-authored-by: Nox-MSFT <55153324+Nox-MSFT@users.noreply.github.com>
Co-authored-by: Takashi Matsuoka <matsujirushi@live.jp>
Co-authored-by: jw-msft <84477130+jw-msft@users.noreply.github.com>
Co-authored-by: Pierrick Arsenault <pierrick.arsenault@stello.ca>
Co-authored-by: Andrew Brown <59940770+andrewbrownmsft@users.noreply.github.com>
Co-authored-by: Jeff Miller <jeffmill@microsoft.com>
Co-authored-by: Shiyi Peng <shiyipeng@microsoft.com>
Co-authored-by: shiyi-peng <71347127+shiyi-peng@users.noreply.github.com>
Co-authored-by: Esha Shah <92388818+eshashah-msft@users.noreply.github.com>
* Device Update for IoT Hub Public preview documentation (#2)
* Updated branding for Public Preview + MIT license
Only for Agent docs that will move to the new Public GitHub repo: Updated branding for Public Preview + MIT license
* Updated TSG, Readme and added files for Security and Conduct
Updated TSG, Readme and added files for Security and Conduct
* Addressing comments for doc changes
Addressing comments for doc changes
* Deleted docs with ADU PM team
Deleted docs with ADU PM team
* Deleting docs/sample-artifacts/libcurl4-doc-ImportSteps*.txt:
Deleting docs/sample-artifacts/libcurl4-doc-ImportSteps*.txt:
* Public Preview changes for Device Update for IoT Hub
Public Preview changes for Device Update for IoT Hub
* Remove duplicate SECURITY.md and License file
* remove docs/agent-reference/images
* Modify README.md
Co-authored-by: Val <60334494+ValOlson@users.noreply.github.com>