Skip to content

Commit 4d5cc9f

Browse files
authored
Adding sample checks & DTS generation for multistream sample (#1229)
* Adding sample checks & invalid dts fix * Address comments * Fix Rpi build * Address comments
1 parent 1ba1872 commit 4d5cc9f

File tree

6 files changed

+338
-18
lines changed

6 files changed

+338
-18
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
role-duration-seconds: 10800
4141
- name: Run tests
4242
run: |
43-
cd build
43+
cd build
4444
./tst/producerTest
4545
4646
mac-os-build-gcc:
@@ -73,10 +73,10 @@ jobs:
7373
aws-region: ${{ secrets.AWS_REGION }}
7474
role-duration-seconds: 10800
7575
- name: Run tests
76-
run: |
76+
run: |
7777
cd build
7878
./tst/producerTest
79-
79+
8080
linux-gcc-code-coverage:
8181
runs-on: ubuntu-20.04
8282
env:
@@ -88,7 +88,7 @@ jobs:
8888
- name: Clone repository
8989
uses: actions/checkout@v3
9090
- name: Install dependencies
91-
run: |
91+
run: |
9292
sudo apt clean && sudo apt update
9393
sudo apt install -y libunwind-dev
9494
sudo apt-get install -y libssl-dev libcurl4-openssl-dev liblog4cplus-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-tools
@@ -115,7 +115,7 @@ jobs:
115115
cd build
116116
for test_file in $(find CMakeFiles/KinesisVideoProducer.dir gstkvssink.dir KinesisVideoProducerJNI.dir -name '*.gcno'); do gcov $test_file; done
117117
bash <(curl -s https://codecov.io/bash)
118-
118+
119119
address-sanitizer:
120120
runs-on: ubuntu-20.04
121121
permissions:
@@ -189,7 +189,7 @@ jobs:
189189
timeout --signal=SIGABRT 60m ./tst/producerTest
190190
191191
# memory-sanitizer:
192-
# runs-on: ubuntu-20.04
192+
# runs-on: ubuntu-20.04
193193
# permissions:
194194
# id-token: write
195195
# contents: read
@@ -237,9 +237,9 @@ jobs:
237237
# mkdir build && cd build
238238
# cmake .. -DBUILD_TEST=TRUE -DTHREAD_SANITIZER=TRUE -DBUILD_GSTREAMER_PLUGIN=TRUE -DBUILD_JNI=TRUE
239239
# make
240-
# ulimit -c unlimited -S
240+
# ulimit -c unlimited -S
241241
# timeout --signal=SIGABRT 20m ./tst/producerTest
242-
242+
243243
ubuntu-gcc:
244244
runs-on: ubuntu-20.04
245245
env:
@@ -312,7 +312,7 @@ jobs:
312312
- name: Run tests
313313
run: |
314314
$env:Path += ';C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Strawberry\c\bin;C:\Program Files\NASM;D:\producer\open-source\local\lib;D:\producer\open-source\local\bin'
315-
& "D:\producer\build\tst\producerTest.exe"
315+
& "D:\producer\build\tst\producerTest.exe"
316316
317317
arm64-cross-compilation:
318318
runs-on: ubuntu-20.04

.github/workflows/raspberry-pi.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-22.04
1212
timeout-minutes: 30
1313
permissions:
1414
id-token: write
@@ -18,10 +18,10 @@ jobs:
1818
include:
1919
# Debian 11
2020
- os: bullseye
21-
image: ghcr.io/dtcooper/raspberrypi-os:python3.12-bullseye
21+
image: ghcr.io/dtcooper/raspberrypi-os:python3.12-bullseye@sha256:72311cfece0656c91407b4fd982f5aaf0eded0fee477de58281e82ab67f4478f
2222
# Debian 12
2323
- os: bookworm
24-
image: ghcr.io/dtcooper/raspberrypi-os:python3.12-bookworm
24+
image: ghcr.io/dtcooper/raspberrypi-os:python3.12-bookworm@sha256:0632946b7dc03ec3d9f7aeef9df4287affb3d6fe413f0e5dfd11c2b73466a845
2525
fail-fast: false
2626

2727
name: Build on ${{ matrix.os }}
@@ -61,7 +61,7 @@ jobs:
6161
gstreamer1.0-tools gstreamer1.0-omx-generic \
6262
libcurl4-openssl-dev libgstreamer1.0-dev \
6363
libgstreamer-plugins-base1.0-dev liblog4cplus-dev \
64-
libssl-dev pkg-config
64+
libssl-dev pkg-config openssl
6565
6666
mkdir -p build
6767
cd build
@@ -70,7 +70,7 @@ jobs:
7070
make -j$(nproc)
7171
7272
export GST_PLUGIN_PATH=$(pwd)
73-
73+
7474
set +e # Disable exit on error for the timeout command
7575
timeout --preserve-status --signal=SIGINT --kill-after=15s 30s \
7676
gst-launch-1.0 -v videotestsrc is-live=true \
@@ -81,10 +81,10 @@ jobs:
8181
! kvssink stream-name="cpp-producer-rpi-${{ matrix.os }}"
8282
EXIT_CODE=$?
8383
set -e # Re-enable exit on error
84-
84+
8585
# 0: Process exited after interrupt with code 0
8686
# 1: Process exited with error code 1
87-
# 137: Process killed by SIGKILL (if the --kill-after timeout is reached)
87+
# 137: Process killed by SIGKILL (if the --kill-after timeout is reached)
8888
echo "Command exited with code: $EXIT_CODE"
8989
if [ $EXIT_CODE -ne 0 ]; then
9090
echo "Command did not exit gracefully after interrupt."

0 commit comments

Comments
 (0)