Skip to content

Commit ce4670f

Browse files
committed
Add windows debug dump dir check
1 parent 940ad87 commit ce4670f

File tree

3 files changed

+72
-13
lines changed

3 files changed

+72
-13
lines changed

.github/build_windows.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ mkdir build
33
cd build
44
cmd.exe /c cmake -G "NMake Makefiles" ..
55
cmake -G "NMake Makefiles" -DBUILD_TEST=TRUE -DBUILD_GSTREAMER_PLUGIN=TRUE -DPKG_CONFIG_EXECUTABLE="D:\\gstreamer\\1.0\\msvc_x86_64\\bin\\pkg-config.exe" ..
6-
nmake
6+
nmake /J %NUMBER_OF_PROCESSORS%

.github/workflows/kvssink.yml

Lines changed: 70 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,76 @@ jobs:
6767
export GST_PLUGIN_PATH=`pwd`
6868
GST_DEBUG=4 ./tst/gstkvsplugintest
6969
70-
- name: Run the unit tests with valgrind
71-
working-directory: ./build
70+
# - name: Run the unit tests with valgrind
71+
# working-directory: ./build
72+
# run: |
73+
# export GST_PLUGIN_PATH=`pwd`
74+
# valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes \
75+
# --verbose --log-file=valgrind-out.txt ./tst/gstkvsplugintest
76+
#
77+
# if grep -q "All heap blocks were freed -- no leaks are possible" valgrind-out.txt; then
78+
# echo "No memory leaks detected"
79+
# else
80+
# echo "Memory leaks detected. Review the valgrind output:"
81+
# cat valgrind-out.txt
82+
# exit 1
83+
# fi
84+
85+
windows-debug-dump-dir:
86+
runs-on: windows-2022
87+
env:
88+
AWS_KVS_LOG_LEVEL: 7
89+
permissions:
90+
id-token: write
91+
contents: read
92+
steps:
93+
- name: Clone repository
94+
uses: actions/checkout@v4
95+
- name: Move repository
7296
run: |
73-
export GST_PLUGIN_PATH=`pwd`
74-
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes \
75-
--verbose --log-file=valgrind-out.txt ./tst/gstkvsplugintest
97+
mkdir D:\producer
98+
Move-Item -Path "D:\a\amazon-kinesis-video-streams-producer-sdk-cpp\amazon-kinesis-video-streams-producer-sdk-cpp\*" -Destination "D:\producer"
99+
- name: Install dependencies
100+
run: |
101+
choco install nasm strawberryperl mkvtoolnix
102+
choco install gstreamer --version=1.22.8
103+
choco install gstreamer-devel --version=1.22.8
104+
- name: Build repository
105+
run: |
106+
$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'
107+
git config --system core.longpaths true
108+
cd D:\producer
109+
dir
110+
.github\build_windows.bat
111+
- name: Configure AWS Credentials
112+
uses: aws-actions/configure-aws-credentials@v4
113+
with:
114+
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
115+
role-session-name: ${{ secrets.AWS_ROLE_SESSION_NAME }}
116+
aws-region: ${{ secrets.AWS_REGION }}
117+
role-duration-seconds: 10800
118+
- name: Run kvssink with dump dir
119+
env:
120+
GST_PLUGIN_PATH: D:\producer\build\
121+
KVS_DEBUG_DUMP_DATA_FILE_DIR: D:\producer\build\debug_output
122+
working-directory: D:\producer\build\
123+
run: |
124+
$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;D:\gstreamer\1.0\msvc_x86_64\bin'
125+
126+
# Stream for 15 seconds (450 frames @ 30 fps)
127+
gst-launch-1.0.exe videotestsrc is-live=true num-buffers=450 ! video/x-raw,framerate=30/1,width=640,height=480 ! videoconvert ! x264enc tune=zerolatency key-int-max=45 ! h264parse ! kvssink stream-name="demo-stream"
128+
- name: Verify MKV dump
129+
working-directory: D:\producer\build
130+
run: |
131+
$mkvFiles = Get-ChildItem -Path "D:\producer\build\debug_output" -Filter *.mkv
76132
77-
if grep -q "All heap blocks were freed -- no leaks are possible" valgrind-out.txt; then
78-
echo "No memory leaks detected"
79-
else
80-
echo "Memory leaks detected. Review the valgrind output:"
81-
cat valgrind-out.txt
133+
if ($mkvFiles.Count -eq 0) {
134+
Write-Error "No MKV files found in D:\producer\build\debug_output"
82135
exit 1
83-
fi
136+
}
137+
138+
# Run mkvinfo on each MKV file
139+
foreach ($file in $mkvFiles) {
140+
Write-Output "Verifying $($file.FullName) with mkvinfo:"
141+
mkvinfo.exe "$($file.FullName)"
142+
}

.github/workflows/raspberry-pi.yaml

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)