@@ -115,7 +115,7 @@ jobs:
115115 docker run -d \
116116 --name stream-webpage \
117117 --network host \
118- -e FRAMERATE=60 \
118+ -e FRAMERATE=30 \
119119 -e LOG_FORMAT=json \
120120 -e LOG_LEVEL=debug \
121121 -e PORT=8080 \
@@ -127,7 +127,7 @@ jobs:
127127 - name : Wait for services to start
128128 run : |
129129 echo "Waiting for services to start..."
130- sleep 60
130+ sleep 120
131131
132132 - name : Test Stream Container Health Endpoint
133133 run : |
@@ -164,13 +164,12 @@ jobs:
164164 timeout 30 "ffprobe" -v quiet -print_format json -show_streams rtmp://localhost:1935/live/stream > stream_info.json 2>/dev/null || {
165165 echo "Stream not available yet, checking container logs..."
166166 docker logs stream-webpage
167- docker logs $(docker ps -q --filter ancestor=tiangolo/nginx-rtmp)
168167 exit 1
169168 }
170169
171170 # Check if stream matches expected resolution
172- height=$(cat stream_info.json | jq -r '.streams[0] .height // empty')
173- width=$(cat stream_info.json | jq -r '.streams[0] .width // empty')
171+ height=$(cat stream_info.json | jq -r '.streams[] | select(.codec_type == "video") | .height // empty')
172+ width=$(cat stream_info.json | jq -r '.streams[] | select(.codec_type == "video") | .width // empty')
174173
175174 echo "Stream resolution: ${width}x${height}"
176175 echo "Expected resolution: ${{ matrix.expected_width }}x${{ matrix.expected_height }}"
@@ -180,6 +179,7 @@ jobs:
180179 else
181180 echo "❌ Stream is not ${{ matrix.resolution }}. Expected ${{ matrix.expected_width }}x${{ matrix.expected_height }}, got ${width}x${height}"
182181 cat stream_info.json | jq '.'
182+ docker logs stream-webpage
183183 exit 1
184184 fi
185185
0 commit comments