Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
859 commits
Select commit Hold shift + click to select a range
b5f1ed6
Adds Code Coverage (#1076)
navinns Aug 5, 2020
4a292f5
Shadow initial commit (#1081)
DanielYEHsieh Aug 7, 2020
edf5af8
Use MQTT_PublishToResend() in the basic_tls and mutual_auth demos (#1…
sarenameas Aug 7, 2020
47cc168
Improve format specifiers in logs (#1097)
muneebahmed10 Aug 7, 2020
b760d7d
Return suback when server refuses subscription (#1089)
muneebahmed10 Aug 7, 2020
aa42579
Minor hygiene updates for logging (#1096)
Aug 7, 2020
9dc4ae1
Fix Segfault issue in demos from incorrect hostname OR from incorrect…
Aug 8, 2020
5099702
Add CBMC proofs for http parser callbacks (#1093)
yourslab Aug 9, 2020
9bb787a
[PR from CLI tool] Update OpenSSL transport implementation to fix int…
Aug 10, 2020
cf0b2e7
Add doxygen comments, remove unused fields (#1112)
muneebahmed10 Aug 11, 2020
9658ac6
Add subscription manager for MQTT (#1094)
Aug 11, 2020
c23c0f8
Add metrics to the MQTT TLS Mutual Auth demo. (#1110)
sarenameas Aug 11, 2020
54090fb
Remove unused enum value from subscription manager (#1114)
Aug 11, 2020
234de33
Address unused parameter and unused variable warnings (#1117)
Aug 12, 2020
a5894f8
Fix build warnings from logging pointers in MQTT library (#1109)
Aug 12, 2020
f602495
[PR from CLI tool] Add new MQTT API for obtaining SUBACK codes (#1108)
Aug 13, 2020
b7d2b8f
[PR from CLI tool] Allow connectivity configs in MQTT demo to be CLI …
Aug 13, 2020
57d775b
Add macro for ping response timeout (#1113)
muneebahmed10 Aug 13, 2020
988edba
Add remaining unit test coverage from CBMC changes to HTTP library (#…
yourslab Aug 13, 2020
e9fc2ea
Add cbmc pointer primitive check flag and mqtt_lightweight.c small re…
sarenameas Aug 14, 2020
1e0fb37
Download certs into demos/certificates with an option to disable down…
yourslab Aug 14, 2020
b9d22d8
Check that cert path flags are set before prepending an absolute path…
yourslab Aug 14, 2020
357fd26
Add doxygen code examples for mqtt.h (#1123)
muneebahmed10 Aug 14, 2020
792032c
Utilize IS_ABSOLUTE CMake function instead of REGEX match for relativ…
yourslab Aug 14, 2020
def655c
Hygiene changes in MQTT demos and tests (#1128)
Aug 18, 2020
efeb64e
Fix doxygen warnings in MQTT Library documentation (#1122)
sarenameas Aug 18, 2020
264b483
Hygiene changes in demo configuration (#1136)
Aug 18, 2020
707cbe3
Fix MQTT_GetSubAckStatusCodes API, and add CBMC proof for it (#1132)
Aug 18, 2020
a9aa988
[PR from CLI tool]
Aug 18, 2020
71df018
Add doxygen code examples for mqtt_lightweight.h (#1135)
muneebahmed10 Aug 18, 2020
5ae868b
MISRA compliance changes (#1107)
dan4thewin Aug 19, 2020
1aed50a
Proof for MQTT_MatchTopic API (#1137)
Aug 20, 2020
a66e664
[PR from CLI tool] Add MQTT demo for connection sharing with subscrip…
Aug 20, 2020
fa7520c
Fix flaky behavior of LWT test (#1147)
Aug 21, 2020
854f55a
Fix warnings in MQTT library and demo targets as CI enforces warnings…
Aug 21, 2020
f23811c
Add missing clientid check in the MQTT mutual auth demo for ci. (#1144)
sarenameas Aug 21, 2020
f4a3c7d
Reduce the complexity score for openssl_connect (#1141)
leegeth Aug 21, 2020
e7c5e7c
MQTT Mutual auth demo: Username password based client authentication …
leegeth Aug 21, 2020
4fc228d
Update proof for HTTPClient_ReadHeader to pass double pointer (#1142)
yourslab Aug 21, 2020
c58ab3c
Reduce GNU complexity score of posix sockets wrapper (#1138)
leegeth Aug 21, 2020
ce7bc52
Change state status code and increase coverage (#1140)
muneebahmed10 Aug 21, 2020
3c18f31
Add #error statements for CLIENT_CERT_PATH and CLIENT_PRIVATE_KEY_PAT…
Aug 24, 2020
d444ac6
Add code examples for new and state API functions (#1146)
muneebahmed10 Aug 24, 2020
e148578
Clear old records for clean sessions (#1148)
muneebahmed10 Aug 24, 2020
0cbaf79
Add 3 test cases for full branch coverage of MatchTopic (#1156)
Aug 24, 2020
8ab8c1a
Doxygen for MQTT API Only (#1149)
sarenameas Aug 24, 2020
5bd5638
Doxygen templates and instructions for writing docs for a new library…
sarenameas Aug 26, 2020
f877b29
MISRA fixes for sockets wrapper (#1145)
leegeth Aug 26, 2020
6f6c3e1
MISRA fixes for plain text transport interface implementation. (#1154)
leegeth Aug 26, 2020
f402f8a
Transport reconnect misra fixes (#1158)
leegeth Aug 26, 2020
b989a49
Misra fixes for posix clock utility (#1159)
leegeth Aug 26, 2020
6df3866
MISRA 8.13 fixes for transport interface implementations (#1161)
leegeth Aug 26, 2020
c328de9
Fix config include path conflict for MQTT demos (#1165)
Aug 26, 2020
d36047b
Fix build issues in MQTT integration tests file (#1166)
Aug 26, 2020
31023e8
Mqtt/add config template (#1160)
Aug 27, 2020
b5a46b0
MISRA fixes for openssl transport implementation (#1157)
leegeth Aug 27, 2020
7e4bf86
Unit tests compiler warning fixes (#1171)
leegeth Aug 27, 2020
06e683b
Fix integration test from change in MQTT_Publish behavior (#1170)
Aug 27, 2020
ca5e743
Fix MISRA 8.13 violations from earlier commit (#1164)
muneebahmed10 Aug 27, 2020
dc94133
Enable CTest (#1173)
nateglims Aug 27, 2020
aaa4785
Shadow demo application based on new shadow APIs (#1104)
andysun2015 Aug 27, 2020
8f66d76
Mqtt demo fixes for session reestablishing (#1163)
leegeth Aug 28, 2020
df41354
Add JSON Unit Tests (#1139)
yourslab Aug 28, 2020
3ee65c1
Add unit tests for POSIX transport implementations (#1172)
yourslab Aug 28, 2020
8ee5bd5
Fix memory leak in Openssl transport implementation (#1179)
yourslab Sep 1, 2020
e78b342
Add unit tests for reconnect logic (#1175)
yourslab Sep 2, 2020
30da38c
Delete MQTT folder and move integration tests of mqtt in root folder
Aug 31, 2020
c0fc2e2
Add submodule to coreMQTT repository
Aug 31, 2020
8990f17
Fix lightweight mqtt demo (#1180)
leegeth Sep 2, 2020
ae2b030
Update .gitmodules to use https instead of git
Sep 2, 2020
771db8d
Fix new HTTPS based URL for coreMQTT
Sep 2, 2020
48a3ad6
Minor hygiene in mutual auth CMakeLists.txt (#1188)
Sep 2, 2020
89eaf8f
Add unit tests for POSIX clock wrapper (#1176)
yourslab Sep 3, 2020
1dc1cc6
Remove unused demo Makefile (#1182)
Sep 3, 2020
c79a554
MQTT Metrics String Update (#1185)
sarenameas Sep 3, 2020
f7bc0e5
Remove HTTP files
leegeth Sep 2, 2020
966a632
Add coreHTTP as a submodule
leegeth Sep 2, 2020
8211d78
Rename lightweight MQTT to serializer (#1194)
Sep 3, 2020
9e384b7
Adavnce submodule pointer of HTTP (#1196)
leegeth Sep 4, 2020
f0fb54e
Fix Cmake configuration issue when BUILD_TESTS flag is not enabled (#…
Sep 4, 2020
d860cb8
Poll the socket before send/recv in plaintext transport implementatio…
yourslab Sep 8, 2020
0428d12
Integration test and cbmc support for the shadow library. (#1134)
andysun2015 Sep 8, 2020
fbd99da
Transport Interface Page portable to both HTTP and MQTT (#1168)
sarenameas Sep 8, 2020
86ae139
Renaming transport_reconnect to retryUtils (#1190)
sukhmanm Sep 8, 2020
2df25fc
Modify demos to decode SUBACK and re-subscribe on failure (#1181)
sukhmanm Sep 8, 2020
2b34704
Update README to update the branch details (#1184)
leegeth Sep 9, 2020
b14cd04
Update submodule pointers for HTTP and MQTT (#1203)
leegeth Sep 9, 2020
9e1bce1
Doxygen base for the CSDK hub. (#1197)
sarenameas Sep 9, 2020
495c649
Fix all doxygen warnings in the hub repo (#1204)
sarenameas Sep 9, 2020
1c40f83
Suppress MISRA violations for POSIX functions in transport plaintext …
Sep 9, 2020
cada209
Remove JSON files
leegeth Sep 9, 2020
ad6fde4
Add coreJSON as a submodule
leegeth Sep 9, 2020
494f4a4
Delete disable of library repos from spelling script (#1212)
sarenameas Sep 10, 2020
5d99725
Update retry_utils.h to use enum instead of bool (#1208)
sarenameas Sep 10, 2020
dad4531
Update submodule pointers of MQTT and HTTP libraries (#1216)
leegeth Sep 10, 2020
f07ca98
Move the shadow/integration-test to <CSDK>/integration-test/shadow (#…
andysun2015 Sep 10, 2020
e8dcc14
Rename connection_sharing demo to subscription_manager (#1215)
Sep 10, 2020
5dc41e8
Remove tools/http-echo-server (#1209)
yourslab Sep 10, 2020
810f3ec
Make the AWS_MQTT_PORT configurable for CI. (#1222)
sarenameas Sep 10, 2020
8a24aa9
Remove shadow files
leegeth Sep 10, 2020
870df63
Add Shadow as a submodule
leegeth Sep 10, 2020
ca4434b
Fix transport_interface.h doxygen warnings (#1225)
sarenameas Sep 10, 2020
282581c
Update submodule pointer for coreMQTT, coreHTTP and coreJSON (#1229)
leegeth Sep 11, 2020
a46f820
Add the migration guide for shadow library (#1226)
andysun2015 Sep 11, 2020
48fc0b8
Add Doxygen list of libraries for the main overview (#1228)
sarenameas Sep 11, 2020
6d95c23
Add build instructions to doxygen documentation (#1218)
yourslab Sep 11, 2020
3303a34
Improve formatting of the master README (#1219)
yourslab Sep 11, 2020
002c38c
Add randomization in client ID of integration tests to avoid collisio…
Sep 11, 2020
55ab955
Add migration guide for MQTT (#1213)
muneebahmed10 Sep 11, 2020
3b93157
feat: Add manifest file.
Sep 11, 2020
8509fb6
Add Rule 2.3 to MISRA configuration (#1235)
Sep 11, 2020
e1dd29d
Merge branch 'master' of github.com:aws/aws-iot-device-sdk-embedded-C
Sep 11, 2020
8d971d6
Add manifest file for CSDK
Sep 11, 2020
c14b606
Add developer style guide to doxygen documentation (#1205)
yourslab Sep 11, 2020
33b915d
Add demo documentation and workflow diagrams (#1224)
sukhmanm Sep 11, 2020
b12e15e
Add manifest file
Sep 11, 2020
8511cd7
Script to generate Doxygen and Create a Zip file! (#1232)
sarenameas Sep 11, 2020
287bde0
Add manifest file to CSDK.
Sep 11, 2020
27f99e1
Merge branch 'master' of github.com:aws/aws-iot-device-sdk-embedded-C
Sep 11, 2020
e08caa7
Update all library submodules to the latest. (#1236)
sarenameas Sep 11, 2020
8a243cf
Mention about the renaming of v4_beta branch in README (#1237)
leegeth Sep 12, 2020
ed25e33
Merge branch 'master' of github.com:aws/aws-iot-device-sdk-embedded-C
Sep 12, 2020
c9d32d6
Add manifest file to CSDK.
Sep 12, 2020
f15e5a3
Update submodule pointer of coreMQTT and coreJSON. (#1241)
leegeth Sep 12, 2020
1054d8e
Fix issues in REAMDE and LICENSE file
Sep 14, 2020
7312ee8
Update wording for release of v3SDK
Sep 14, 2020
c8a3843
MISRA doc for CSDK hub repository. (#1238)
leegeth Sep 14, 2020
f95b4e5
Merge branch 'master' into update/readme-license-files
Sep 14, 2020
6b8127a
Minor hygiene fixes in Shadow demo build (#1250)
Sep 14, 2020
fcc48cc
Merge branch 'master' into update/readme-license-files
Sep 14, 2020
cace448
Added version numbers and license headers where missing (#1255)
yourslab Sep 14, 2020
75ce673
Change file extension (#1240)
yourslab Sep 14, 2020
7211798
Merge branch 'master' into update/readme-license-files
Sep 14, 2020
52e31b4
Remove comma
Sep 14, 2020
6a14624
Doxygen documentation for Retry Utils (#1244)
sarenameas Sep 15, 2020
4382aae
Merge branch 'master' into update/readme-license-files
Sep 15, 2020
51f3af7
Update submodule pointers of coreMQTT, coreJSON and Shadow (#1256)
leegeth Sep 15, 2020
99496cc
Make the landing page more readable (#1257)
Sep 15, 2020
1909a5b
Merge branch 'master' into update/readme-license-files
abhidixi11 Sep 15, 2020
d74c7b6
Merge pull request #1249 from aggarw13/update/readme-license-files
abhidixi11 Sep 15, 2020
964afac
Add demo documentation and workflow diagrams for shadow (#1248)
andysun2015 Sep 15, 2020
9eb933f
Add a logging design and files to Doxygen (#1239)
Sep 15, 2020
3a297e1
Remove all developer machine attributes from XML files (#1260)
Sep 15, 2020
e0d89ae
Remove demo-specific identifiers from diagrams (#1245)
sukhmanm Sep 15, 2020
d48559b
Prefix MQTT demo doc sections with "MQTT" (#1261)
sarenameas Sep 15, 2020
48af361
Minor improvements in documentations of retry utils (#1262)
Sep 15, 2020
84db283
Increase size of retry utilities image (#1263)
muneebahmed10 Sep 15, 2020
d55130e
The clock utilities are used by the demos, not the libraries. (#1264)
sarenameas Sep 16, 2020
7bad354
Update MISRA.md with explanation about 5.6 flagging. (#1265)
leegeth Sep 16, 2020
fd040da
Update submodule pointers of coreJSON, coreMQTT and Shadow. (#1267)
leegeth Sep 16, 2020
7544752
Address warnings in unit tests (#1266)
Sep 16, 2020
6537ee4
Hygiene changes in MQTT integration tests (#1252)
Sep 16, 2020
27a83ed
Update submodule pointer for coreMQTT, coreJSON and Shadow.
leegeth Sep 16, 2020
7879c67
Merge pull request #1268 from leegeth/update_submodule_0915_2
abhidixi11 Sep 16, 2020
4731ddb
Fix the title of the Shadow Demo in Doxygen to be more verbose. (#1269)
sarenameas Sep 16, 2020
f8eeb23
Add reconnection logic to HTTP basic TLS demo (#1253)
yourslab Sep 16, 2020
2462348
Merge branch 'master' of github.com:aws/aws-iot-device-sdk-embedded-C
Sep 16, 2020
d554b17
License file update to be consistent with other repositories.
Sep 16, 2020
e8bcfb1
Remove manifest file from master.
Sep 16, 2020
ab23215
Merge pull request #1277 from abhidixi11/master
abhidixi11 Sep 16, 2020
65451f2
Update the doxygen template to match current library repos. (#1273)
sarenameas Sep 16, 2020
070390a
Update CHANGELOG in master (#1223)
leegeth Sep 16, 2020
3f294e1
Fix broken links in changelog and contributing (#1288)
muneebahmed10 Sep 17, 2020
3f18fa2
Update the wording on the metrics comment (#1292)
sarenameas Sep 18, 2020
b29698b
README update in master for 202009.00 release (#1275)
Sep 18, 2020
8f074d0
Add note to Mosquitto Docker instructions (#1295)
Sep 21, 2020
c0a838f
Add reconnection logic to remaining HTTP demos (#1280)
yourslab Sep 23, 2020
979f773
Delete transport_interface.h and have unit tests use coreMQTT's versi…
sarenameas Sep 24, 2020
6a4e9d5
Add doxygen documentation for HTTP demos (#1291)
yourslab Sep 24, 2020
7edd1a2
Add Github Actions (#1304)
sarenameas Sep 25, 2020
5675fc5
Remove old CI tools. (#1305)
nateglims Sep 25, 2020
57414af
Delete non-existent CMake variables from demos and integration test C…
sarenameas Sep 28, 2020
a2f25fd
Add doxygen warning checks. (#1308)
sarenameas Sep 28, 2020
96f4a44
Lower CMake minimum required version from 3.13.0 to 3.2.0 (#1306)
yourslab Sep 29, 2020
aad978d
Fix bug in Doxygen Job of GitHub Actions (#1309)
Sep 30, 2020
6538b67
Change wording of MQTT description (#1311)
muneebahmed10 Oct 1, 2020
bd80bed
Add Basic Integration Tests for redesigned HTTP (#1300)
sukhmanm Oct 7, 2020
c934a51
Add the demo completed succesfully message to the shadow demo for CI.…
sarenameas Oct 8, 2020
b99a7e4
Improve resiliency of MQTT integration tests by prefixing clientID to…
Oct 10, 2020
b6f6e3c
Add jobs demo (#1315)
dan4thewin Oct 16, 2020
8602457
Errors in disconnecting and unsubscribing should fail the Shadow demo…
sarenameas Oct 20, 2020
a05cf12
Remove const qualifier from send/recv in transport implementations an…
yourslab Oct 21, 2020
330a41f
Update README.md
yngki Oct 23, 2020
4d3bcb8
Update README.md
yngki Oct 23, 2020
8dd8698
Merge pull request #1329 from yngki/master
yngki Oct 23, 2020
2dd7b97
Add S3 Upload Demo (#1318)
sukhmanm Oct 23, 2020
da93120
Add S3 Download Demo (#1313)
sukhmanm Oct 23, 2020
6d36dde
Add S3 multithreaded download demo (#1321)
archigup Oct 26, 2020
d4aa5d4
Add CMake function to check for pre-signed URLs (for S3 demos) (#1332)
sukhmanm Oct 27, 2020
acf4e91
Update the style guide link in the contributing guide to point to the…
sarenameas Oct 27, 2020
3dc29ef
HTTP Library: Update .method to .pMethod + Update Return Enums (#1331)
sarenameas Oct 27, 2020
da39f94
Add region parameter to presigned_urls_gen.py (#1341)
sukhmanm Oct 28, 2020
521350b
Update the location of transport_interface.h in the SSOT (#1339)
sarenameas Oct 29, 2020
03a29b1
Update GA to check branch and line coverage (#1345)
yourslab Oct 29, 2020
88aa946
Remove looping from HTTP mutual auth demo (#1346)
yourslab Oct 29, 2020
e34c92e
Remove looping from S3 demos
archigup Oct 28, 2020
06a612e
Add macro for HTTP partial content status code
archigup Oct 27, 2020
27d83f1
Add README.md for presigned S3 URL generator
archigup Oct 27, 2020
1a95e88
Move getS3ObjectFileSize() out of common
archigup Oct 27, 2020
195a5bb
Make presigned_urls_gen.py executable
archigup Oct 27, 2020
c4932ec
Reformat getS3ObjectFileSize()
archigup Oct 28, 2020
f572004
Fix continuing after failed check in getS3ObectFileSize()
archigup Oct 28, 2020
8adc0d0
Update demos/http/http_demo_s3_download/http_demo_s3_download.c
sarenameas Oct 29, 2020
7f02117
Update demos/http/http_demo_s3_upload/http_demo_s3_upload.c
sarenameas Oct 29, 2020
43b7c66
Remove unused loop delay macro
archigup Oct 29, 2020
1348948
Add documentation for S3 Upload and Download demos (#1336)
sukhmanm Oct 30, 2020
685d5ee
Merge pull request #1337 from archigup/s3_demos_remove_looping
archigup Oct 30, 2020
83b3d9c
Add documentation for HTTP multithreaded S3 download demo (#1338)
archigup Oct 30, 2020
0e83b38
Add demo for AWS IoT Device Defender (#1334)
aggarg Oct 30, 2020
2a916b0
Add receiving a chunked response to the HTTP integration tests (#1343)
sarenameas Oct 30, 2020
ceeafa3
Add documentation for the defender demo (#1348)
aggarg Oct 30, 2020
a498201
Add security.md (#1351)
Oct 31, 2020
bc5a643
Use 5 seconds as keep-alive timeout for MQTT (#1350)
Oct 31, 2020
6c181a2
Doxygen update for the next release (#1335)
sarenameas Oct 31, 2020
8780d0f
Update coreHTTP submodule. (#1354)
nateglims Nov 1, 2020
a351846
Fix catching the S3_PRESIGNED_PUT_URL in cmake. (#1356)
sarenameas Nov 2, 2020
581d5d5
TRANSPORT_SEND_RECEIVE_TIMEOUT_MS was too short (#1330)
gregbreen Nov 2, 2020
f9b5c28
Add MISRA 8.13 violation to MISRA.md (#1347)
yourslab Nov 2, 2020
ad8d94f
Fix bug with pointers that are not repaired (#1353)
archigup Nov 3, 2020
9e75813
Update all versions 202009.00 to 202011.00 (#1358)
sarenameas Nov 3, 2020
91a6f1a
Update coreJSON submodule (#1363)
Nov 3, 2020
ff051c4
Add manifest.yml for all libraries for 202011.00 (#1361)
sarenameas Nov 3, 2020
2e570ac
Rename defender demo folder (#1367)
aggarg Nov 3, 2020
cb86799
Fix typos in MISRA comment (#1364)
yourslab Nov 3, 2020
ba95930
Small consistency cleanup found after generation. (#1368)
sarenameas Nov 3, 2020
daf77ba
Add migration and demo doxygen files for jobs library (#1342)
dan4thewin Nov 3, 2020
ad349ea
Update all submodules to the latest. (#1369)
sarenameas Nov 4, 2020
5a72b6f
Clone submodules of libraries upon building with cmake (#1366)
yourslab Nov 4, 2020
5c8a024
Make OPENSSL_USE_STATIC_LIBS requirement conditional on build type (#…
Nov 4, 2020
29deb8e
Update CHANGELOG.md for the 202011.00 release. (#1359)
sarenameas Nov 4, 2020
2b34081
Update README.md for the 202011.00 release (#1362)
archigup Nov 4, 2020
af0cf05
Improve README.md docker instructions (#1371)
sarenameas Nov 4, 2020
83c1d0d
Update all submodules to the latest for 202011.00. (#1372)
sarenameas Nov 4, 2020
4966596
Bring changes from 202011.00 into master. (#1378)
sarenameas Nov 5, 2020
65ea600
Switch all line endings to unix (#1379)
archigup Nov 5, 2020
2d32369
Remove unused aws-templates-for-cbmc-proofs. (#1380)
sarenameas Nov 6, 2020
1b2ed6f
Fix memory leak in tearDown of integration tests (#1383)
yourslab Nov 9, 2020
b297891
Add git-secrets check to the GHA.
Nov 12, 2020
5466524
Added master reference.
Nov 12, 2020
c3274cd
awslabs not aws.
Nov 12, 2020
da28c09
Undo throwaway presigned url with throwaway account ID.
Nov 12, 2020
4a737af
Merge pull request #1385 from sarenameas/git-secrets
n9wxu Nov 13, 2020
e8e79f5
Feature: CorePKCS (#1381)
lundinc2 Nov 13, 2020
436e767
Update the coreJSON repo to the main default branch. (#1386)
sarenameas Nov 16, 2020
8a6387e
Refactor retry utils library (#1389)
Nov 18, 2020
a366f2f
Fix bug in retry logic of demos (#1393)
Nov 18, 2020
8788aa1
Add tracking branch for submodules (#1395)
Nov 19, 2020
58ac1ea
Add PKCS #11 library and demos to doxygen. (#1390)
lundinc2 Nov 19, 2020
48477fa
Update all library submodules to use the latest in main branch. (#1397)
sarenameas Nov 19, 2020
16161ce
Pre-release checks script (#1396)
sarenameas Nov 19, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
*Description of changes:*


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.
197 changes: 197 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
name: CI Checks

on:
push:
branches: ["**"]
pull_request:
branches: [master]
workflow_dispatch:

jobs:
build-check:
runs-on: ubuntu-latest
steps:
- name: Clone This Repo
uses: actions/checkout@v2
with:
submodules: recursive
- name: Download CMake 3.2.0
run: |
curl https://cmake.org/files/v3.2/cmake-3.2.0-Linux-x86_64.tar.gz -o cmake.tar.gz
tar -xf cmake.tar.gz
mkdir build
cmake-3.2.0-Linux-x86_64/bin/cmake . -Bbuild/ \
-G "Unix Makefiles" \
-DBUILD_TESTS=1 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS='--coverage -Wall -Wextra -Werror' \
-DAWS_IOT_ENDPOINT="aws-iot-endpoint" \
-DBROKER_ENDPOINT="broker-endpoint" \
-DCLIENT_CERT_PATH="cert/path" \
-DROOT_CA_CERT_PATH="cert/path" \
-DCLIENT_PRIVATE_KEY_PATH="key/path" \
-DCLIENT_IDENTIFIER="ci-identifier" \
-DTHING_NAME="thing-name" \
-DS3_PRESIGNED_GET_URL="get-url" \
-DS3_PRESIGNED_PUT_URL="put-url"
- name: Build Demos
run: |
sudo apt-get install -y libmosquitto-dev
make -C build/ help | grep demo | tr -d '. ' | xargs make -C build/
make -C demos/jobs/jobs_demo_mosquitto
- name: Build System Tests
run: make -C build/ help | grep system | tr -d '. ' | xargs make -C build/
unittest:
runs-on: ubuntu-latest
steps:
- name: Clone This Repo
uses: actions/checkout@v2
with:
submodules: recursive
- name: Download CMake 3.2.0
run: |
curl https://cmake.org/files/v3.2/cmake-3.2.0-Linux-x86_64.tar.gz -o cmake.tar.gz
tar -xf cmake.tar.gz
mkdir build
cmake-3.2.0-Linux-x86_64/bin/cmake . -Bbuild/ \
-G "Unix Makefiles" \
-DBUILD_TESTS=1 \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_C_FLAGS='--coverage -Wall -Wextra -Werror -DNDEBUG'
make -C build/ help | grep utest | tr -d '. ' | xargs make -C build/
- name: Build Unit Tests
run: |
sudo apt-get install -y lcov
make -C build/ help | grep utest | tr -d '. ' | xargs make -C build/
- name: Run ctest
run: |
cd build/
ctest -E system --output-on-failure
cd ..
- name: Run Coverage
run: |
make -C build/ coverage
declare -a EXCLUDE=("\*test\*" "\*CMakeCCompilerId\*" "\*mocks\*" "\*3rdparty\*" "*netdb*")
echo ${EXCLUDE[@]} | xargs lcov --rc lcov_branch_coverage=1 -r build/coverage.info -o build/coverage.info
lcov --rc lcov_branch_coverage=1 --list build/coverage.info
- name: Check Coverage
env:
MIN_COVERAGE: 100
run: |
LINE_COVERAGE=$(lcov --list build/coverage.info | tail -n 1 | cut -d '|' -f 2 | sed -n "s/\([^%]*\)%.*/\1/p")
BRANCH_COVERAGE=$(lcov --rc lcov_branch_coverage=1 --list build/coverage.info | tail -n 1 | cut -d '|' -f 4 | sed -n "s/\([^%]*\)%.*/\1/p")
RESULT=0
echo "Required line and branch coverages: $MIN_COVERAGE"
echo "Line coverage: $LINE_COVERAGE"
if [[ $(echo "$LINE_COVERAGE < $MIN_COVERAGE" | bc) -ne 0 ]]; then
echo "Line Coverage is too low."
RESULT=1
fi
echo "Branch coverage: $BRANCH_COVERAGE"
if [[ $(echo "$BRANCH_COVERAGE < $MIN_COVERAGE" | bc) -ne 0 ]]; then
echo "Branch Coverage is too low."
RESULT=1
fi
exit $RESULT
complexity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup
run: sudo apt-get install complexity
- name: Check Complexity
run: |
find platform/ \( -iname '*.c' ! -wholename '*test*' \) |\
xargs complexity --scores --threshold=0 --horrid-threshold=8
spell-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install spell
run: |
sudo apt-get install -y spell util-linux
- name: Check Spelling
run: |
PATH=$PATH:$PWD/tools/spell
for lexfile in `find platform/ demos/ integration-test/ -name lexicon.txt`
do dir=${lexfile%/lexicon.txt}
echo $dir
find-unknown-comment-words --directory $dir
if [ $? -ne "0" ]
then
exit 1
fi
done
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Uncrustify
run: sudo apt-get install uncrustify
- name: Check Formatting With Uncrustify
run: find . -iname "*.[hc]" -exec uncrustify --check -c tools/uncrustify.cfg {} +
- name: Check For Trailing Whitespace
run: |
set +e
grep --exclude="README.md" -rnI -e "[[:blank:]]$" .
if [ "$?" = "0" ]; then
echo "Files have trailing whitespace."
exit 1
else
exit 0
fi
- name: Check for CRLF
run: |
set +e
find . -path ./.git -prune -o -exec file {} + | grep "CRLF"
if [ "$?" = "0" ]; then
echo "Files have CRLF line endings."
exit 1
else
exit 0
fi
doxygen:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Doxygen
run: |
wget -qO- "http://doxygen.nl/files/doxygen-1.8.20.linux.bin.tar.gz" | sudo tar --strip-components=1 -xz -C /usr/local
sudo apt-get install -y libclang-9-dev graphviz
- name: Run Doxygen on all library submodules
run: |
ROOT=$PWD
for lib in $(find libraries/aws libraries/standard -maxdepth 1 -mindepth 1)
do
cd $lib
if [ ! -d docs/doxygen/ ]; then
echo "$lib has no Doxygen documentation."
else
doxygen docs/doxygen/config.doxyfile
fi
cd $ROOT
done
- name: Run Doxygen on CSDK and verify stdout is empty
run: |
doxygen docs/doxygen/config.doxyfile 2>&1 | tee doxyoutput.txt
if [[ "$(wc -c < doxyoutput.txt | bc)" = "0" ]]; then exit 0; else exit 1; fi
git-secrets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Checkout awslabs/git-secrets
uses: actions/checkout@v2
with:
repository: awslabs/git-secrets
ref: master
path: git-secrets
- name: Install git-secrets
run: cd git-secrets && sudo make install && cd ..
- name: Run git-secrets
run: |
git-secrets --register-aws
git-secrets --scan
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Ignore documentation output.
**/docs/**/output/*

# Ignore CMake build directory.
build/

# Ignore build artifacts
*.o

# Ignore code coverage artifacts
*.gcda
*.gcno
*.gcov
31 changes: 31 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[submodule "libraries/3rdparty/CMock"]
path = libraries/3rdparty/CMock
url = https://github.com/ThrowTheSwitch/CMock
[submodule "libraries/standard/coreMQTT"]
path = libraries/standard/coreMQTT
branch = main
url = https://github.com/FreeRTOS/coreMQTT.git
[submodule "libraries/standard/coreHTTP"]
path = libraries/standard/coreHTTP
branch = main
url = https://github.com/FreeRTOS/coreHTTP.git
[submodule "libraries/standard/coreJSON"]
path = libraries/standard/coreJSON
branch = main
url = https://github.com/FreeRTOS/coreJSON.git
[submodule "libraries/aws/device-shadow-for-aws-iot-embedded-sdk"]
path = libraries/aws/device-shadow-for-aws-iot-embedded-sdk
branch = main
url = https://github.com/aws/device-shadow-for-aws-iot-embedded-sdk.git
[submodule "libraries/aws/jobs-for-aws-iot-embedded-sdk"]
path = libraries/aws/jobs-for-aws-iot-embedded-sdk
branch = main
url = https://github.com/aws/jobs-for-aws-iot-embedded-sdk.git
[submodule "libraries/aws/device-defender-for-aws-iot-embedded-sdk"]
path = libraries/aws/device-defender-for-aws-iot-embedded-sdk
branch = main
url = https://github.com/aws/device-defender-for-aws-iot-embedded-sdk.git
[submodule "libraries/standard/corePKCS11"]
path = libraries/standard/corePKCS11
branch = main
url = https://github.com/FreeRTOS/corePKCS11.git
66 changes: 0 additions & 66 deletions .travis.yml

This file was deleted.

Loading