Skip to content

Commit cefc4c3

Browse files
authored
Release v1.3.2
1 parent a7e4fe6 commit cefc4c3

File tree

150 files changed

+1898
-1910
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+1898
-1910
lines changed

.github/template/fwe-build/action.yml

Lines changed: 44 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,56 @@ runs:
2828
# prettier-ignore
2929
key: ${{ inputs.dist-name }}-${{ inputs.build-arch }}-${{ hashFiles('tools/install-deps-*.sh') }}
3030

31-
- name: install-deps
31+
- name: restore-cache-deps
32+
# Explicitly checking against true as the cache-hit output is a string value : "true", "false"
33+
# or "". According to GitHub documentation : https://github.com/marketplace/actions/cache#outputs,
34+
# it returns 'true' only on an exact primary key match, 'false' when using fallback restore-keys, and an
35+
# empty string when no cache exists at all. In the current workflow configuration, cache-hit output would
36+
# either return a "" when the cache is not available or a "true" if there is an exact key match.
37+
if: steps.cache-deps.outputs.cache-hit == 'true'
3238
shell: bash
3339
run: |
40+
echo "Cache found! Restoring cached dependencies..."
3441
IFS=":"
3542
CACHE_PATHS=${{ inputs.cache-paths }}
36-
if [ -d cache ]; then
37-
for P in ${CACHE_PATHS}; do
38-
sudo mkdir -p `dirname ${P}`
39-
sudo cp -r cache${P} ${P}
40-
done
41-
fi
42-
sudo ./tools/install-deps-${{ inputs.build-arch }}.sh ${{ inputs.extra-options }}
43-
if [ ! -d cache ]; then
44-
for P in ${CACHE_PATHS}; do
45-
mkdir -p cache`dirname ${P}`
46-
cp -r ${P} cache${P}
47-
done
43+
for P in ${CACHE_PATHS}; do
44+
sudo mkdir -p `dirname ${P}`
45+
sudo cp -r cache${P} ${P}
46+
done
47+
48+
- name: install-deps
49+
shell: bash
50+
run: |
51+
# Add --use-cache flag if cache hit
52+
EXTRA_OPTIONS="${{ inputs.extra-options }}"
53+
# Explicitly checking against true as the cache-hit output is a string value : "true", "false" or ""
54+
if [[ "${{ steps.cache-deps.outputs.cache-hit }}" == 'true' ]]; then
55+
echo "Using cached dependencies, adding --use-cache flag"
56+
EXTRA_OPTIONS="${EXTRA_OPTIONS} --use-cache"
57+
else
58+
echo "No cache hit, installing dependencies from scratch"
4859
fi
4960
61+
echo "Running installation with options: ${EXTRA_OPTIONS}"
62+
sudo ./tools/install-deps-${{ inputs.build-arch }}.sh ${EXTRA_OPTIONS}
63+
64+
- name: create-cache
65+
# Explicitly checking against "" as the cache-hit output is a string value : "true", "false"
66+
# or "". According to GitHub documentation : https://github.com/marketplace/actions/cache#outputs,
67+
# it returns 'true' only on an exact primary key match, 'false' when using fallback restore-keys, and an
68+
# empty string when no cache exists at all. In the current workflow configuration, cache-hit output would
69+
# either return a "" when the cache is not available or a "true" if there is an exact key match.
70+
if: steps.cache-deps.outputs.cache-hit != 'true'
71+
shell: bash
72+
run: |
73+
echo "Creating cache for future runs..."
74+
IFS=":"
75+
CACHE_PATHS=${{ inputs.cache-paths }}
76+
for P in ${CACHE_PATHS}; do
77+
sudo mkdir -p "$(dirname "cache${P}")"
78+
sudo cp -r "${P}" "cache${P}"
79+
done
80+
5081
- name: build
5182
shell: bash
5283
run: |

.github/workflows/ci.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
extra-options:
4141
"--with-someip-support --with-lks-support --with-greengrassv2-support
4242
--with-custom-function-examples --with-store-and-forward-support --with-uds-dtc-example
43-
--with-micropython-support"
43+
--with-micropython-support --prefix /usr/local/x86_64-linux-gnu"
4444
dist-name: "aws-iot-fleetwise-edge"
4545
cache-paths: /usr/local/x86_64-linux-gnu
4646
dist-files: build/aws-iot-fleetwise-edge:.
@@ -56,7 +56,7 @@ jobs:
5656
extra-options:
5757
"--with-greengrassv2-support --with-someip-support --with-lks-support
5858
--with-custom-function-examples --with-store-and-forward-support --with-uds-dtc-example
59-
--with-micropython-support"
59+
--with-micropython-support --native-prefix /usr/local/x86_64-linux-gnu"
6060
dist-name: "aws-iot-fleetwise-edge"
6161
cache-paths: /usr/local/aarch64-linux-gnu:/usr/local/x86_64-linux-gnu
6262
dist-files: build/aws-iot-fleetwise-edge:.
@@ -72,7 +72,8 @@ jobs:
7272
extra-options:
7373
"--with-greengrassv2-support --with-someip-support --with-lks-support
7474
--with-iwave-gps-support --with-custom-function-examples
75-
--with-store-and-forward-support --with-uds-dtc-example --with-micropython-support"
75+
--with-store-and-forward-support --with-uds-dtc-example --with-micropython-support
76+
--native-prefix /usr/local/x86_64-linux-gnu"
7677
dist-name: "aws-iot-fleetwise-edge"
7778
cache-paths: /usr/local/arm-linux-gnueabihf:/usr/local/x86_64-linux-gnu
7879
dist-files: build/aws-iot-fleetwise-edge:.
@@ -88,7 +89,7 @@ jobs:
8889
extra-options:
8990
"--with-greengrassv2-support --with-ros2-support --with-someip-support
9091
--with-lks-support --with-custom-function-examples --with-store-and-forward-support
91-
--with-uds-dtc-example --with-micropython-support"
92+
--with-uds-dtc-example --with-micropython-support --prefix /usr/local/x86_64-linux-gnu"
9293
dist-name: "aws-iot-fleetwise-edge-ros2"
9394
cache-paths: /usr/local/x86_64-linux-gnu:/opt/ros
9495
dist-files: build/iotfleetwise/aws-iot-fleetwise-edge:.
@@ -104,7 +105,8 @@ jobs:
104105
extra-options:
105106
"--with-greengrassv2-support --with-ros2-support --with-someip-support
106107
--with-lks-support --with-custom-function-examples --with-store-and-forward-support
107-
--with-uds-dtc-example --with-micropython-support"
108+
--with-uds-dtc-example --with-micropython-support --native-prefix
109+
/usr/local/x86_64-linux-gnu"
108110
dist-name: "aws-iot-fleetwise-edge-ros2"
109111
cache-paths: /usr/local/aarch64-linux-gnu:/usr/local/x86_64-linux-gnu:/opt/ros
110112
dist-files: build/iotfleetwise/aws-iot-fleetwise-edge:.
@@ -120,7 +122,8 @@ jobs:
120122
extra-options:
121123
"--with-greengrassv2-support --with-ros2-support --with-someip-support
122124
--with-lks-support --with-custom-function-examples --with-store-and-forward-support
123-
--with-uds-dtc-example --with-micropython-support"
125+
--with-uds-dtc-example --with-micropython-support --native-prefix
126+
/usr/local/x86_64-linux-gnu"
124127
dist-name: "aws-iot-fleetwise-edge-ros2"
125128
cache-paths: /usr/local/arm-linux-gnueabihf:/usr/local/x86_64-linux-gnu:/opt/ros
126129
dist-files: build/iotfleetwise/aws-iot-fleetwise-edge:.
@@ -133,7 +136,9 @@ jobs:
133136
with:
134137
build-arch: "cross-android"
135138
upload-arch: "android"
136-
extra-options: "--with-lks-support --with-custom-function-examples"
139+
extra-options:
140+
"--with-lks-support --with-custom-function-examples --native-prefix
141+
/usr/local/x86_64-linux-gnu"
137142
dist-name: "aws-iot-fleetwise-edge"
138143
cache-paths: /usr/local/x86_64-linux-android:/usr/local/aarch64-linux-android:/usr/local/armv7a-linux-androideabi:/usr/local/x86_64-linux-gnu
139144
dist-files:

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Change Log
22

3+
## v1.3.2 (2025-06-24)
4+
5+
Bug fixes:
6+
7+
- Fixed race conditions in `OBDOverCANModule`, `DataSenderIonWriter`,
8+
`CollectionInspectionWorkerThread` and `CANDataSource` found by coverity 2024.3.1.
9+
10+
Improvements:
11+
12+
- Refactored telemetry data serialization to ensure Store and Forward uses the same payload size
13+
optimizations as regular telemetry data.
14+
- Updated the default dependency installation prefix to `/usr/local`, enabling CMake to locate
15+
dependencies using its standard search paths without requiring explicit `CMAKE_PREFIX_PATH`
16+
argument.
17+
- Fixed various Coverity regressions.
18+
319
## v1.3.1 (2025-04-25)
420

521
Bug fixes:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
cmake_minimum_required(VERSION 3.10.2)
44

5-
project(iotfleetwise VERSION 1.3.1)
5+
project(iotfleetwise VERSION 1.3.2)
66

77
# FWE uses C++14 for compatibility reasons with Automotive middlewares (Adaptive AUTOSAR, ROS2)
88
# Note: When built with FWE_FEATURE_ROS2, colcon will override these settings

docs/dev-guide/store-and-forward-dev-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ Install the dependencies for FWE:
185185

186186
```bash
187187
cd ~/aws-iot-fleetwise-edge &&
188-
sudo -H ./tools/install-deps-native.sh --with-store-and-forward-support --prefix /usr/local &&
188+
sudo -H ./tools/install-deps-native.sh --with-store-and-forward-support &&
189189
sudo ldconfig
190190
```
191191

docs/dev-guide/vision-system-data/vision-system-data-demo.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@
363363
"outputs": [],
364364
"source": [
365365
"# cd ~/aws-iot-fleetwise-edge\n",
366-
"# sudo -H ./tools/install-deps-native.sh --with-ros2-support --prefix /usr/local\n",
366+
"# sudo -H ./tools/install-deps-native.sh --with-ros2-support\n",
367367
"# sudo ldconfig"
368368
]
369369
},

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ launch an AWS EC2 Graviton (arm64) instance. Pricing for EC2 can be found,
6868

6969
```bash
7070
cd ~/aws-iot-fleetwise-edge \
71-
&& ./tools/install-deps-native.sh \
71+
&& sudo ./tools/install-deps-native.sh \
7272
--with-someip-support
7373
```
7474

examples/custom_function/CustomFunctionSin.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
32
// SPDX-License-Identifier: Apache-2.0
43

examples/custom_function/CustomFunctionSin.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
32
// SPDX-License-Identifier: Apache-2.0
43

examples/network_agnostic_actuator_commands/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ cd ~/aws-iot-fleetwise-edge/examples/network_agnostic_actuator_commands \
135135
{
136136
"executionId": "<COMMAND_EXECUTION_ID>",
137137
"commandArn": "arn:aws:iot:us-east-1:<ACCOUNT_ID>:command/activateAC",
138-
"targetArn": "arn:aws:iot:us-east-1:<ACCOUNT_ID>:thing/fwe-example-network-agnostic-actuator-commands
138+
"targetArn": "arn:aws:iot:us-east-1:<ACCOUNT_ID>:thing/fwe-example-network-agnostic-actuator-commands",
139139
"status": "SUCCEEDED",
140140
"statusReason": {
141141
"reasonCode": "4660",

0 commit comments

Comments
 (0)