Skip to content

Commit 2aabc9a

Browse files
committed
Merge branch 'ITEP-89467/add-jitter-metrics' of https://github.com/open-edge-platform/scenescape into ITEP-89467/add-jitter-metrics
2 parents 94d58e9 + 558cc75 commit 2aabc9a

File tree

4 files changed

+88
-11
lines changed

4 files changed

+88
-11
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
# SPDX-FileCopyrightText: (C) 2026 Intel Corporation
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: "Setup Cache Targets"
6+
description: "Setup environment variables for caching image layers"
7+
outputs:
8+
cache_registry:
9+
description: "The cache registry path"
10+
value: ${{ steps.cache.outputs.CACHE_REGISTRY }}
11+
cache_tag:
12+
description: "The cache tag"
13+
value: ${{ steps.cache.outputs.CACHE_TAG }}
14+
github_actions_cache:
15+
description: "Whether GitHub Actions cache is enabled"
16+
value: ${{ steps.cache.outputs.GITHUB_ACTIONS_CACHE }}
17+
runs:
18+
using: "composite"
19+
steps:
20+
- name: Setup Cache Targets
21+
id: cache
22+
shell: bash
23+
env:
24+
TAG_BASE: ${{ github.head_ref || github.ref_name }}
25+
run: |
26+
CACHE_TAG=$(echo "$TAG_BASE" | tr '/' '_' | tr '-' '_')
27+
echo "CACHE_REGISTRY=${{ github.repository }}" >> "$GITHUB_OUTPUT"
28+
echo "CACHE_TAG=${CACHE_TAG}" >> "$GITHUB_OUTPUT"
29+
echo "GITHUB_ACTIONS_CACHE=true" >> "$GITHUB_OUTPUT"

.github/workflows/tests-all.yml

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ concurrency:
4343
env:
4444
DOCKER_BUILDKIT: 1
4545
SUPASS: demo
46-
GITHUB_ACTIONS_CACHE: true
47-
CACHE_REGISTRY: ${{ github.repository }}
48-
CACHE_TAG: ${{ github.head_ref || github.ref_name }}
4946

5047
permissions:
5148
contents: read
@@ -82,10 +79,18 @@ jobs:
8279
username: ${{ github.actor }}
8380
password: ${{ secrets.GITHUB_TOKEN }}
8481

82+
- name: "Setup Cache Targets"
83+
id: setup-cache
84+
uses: ./.github/actions/setup-cache
85+
8586
- name: "Run Setup"
8687
uses: ./.github/actions/setup-env
8788

8889
- name: Run Functional Tests
90+
env:
91+
CACHE_REGISTRY: ${{ steps.setup-cache.outputs.cache_registry }}
92+
CACHE_TAG: ${{ steps.setup-cache.outputs.cache_tag }}
93+
GITHUB_ACTIONS_CACHE: ${{ steps.setup-cache.outputs.github_actions_cache }}
8994
run: |
9095
make clean-all
9196
make run_functional_tests
@@ -129,10 +134,18 @@ jobs:
129134
username: ${{ github.actor }}
130135
password: ${{ secrets.GITHUB_TOKEN }}
131136

137+
- name: "Setup Cache Targets"
138+
id: setup-cache
139+
uses: ./.github/actions/setup-cache
140+
132141
- name: "Run Setup"
133142
uses: ./.github/actions/setup-env
134143

135144
- name: Run Non-Functional Tests
145+
env:
146+
CACHE_REGISTRY: ${{ steps.setup-cache.outputs.cache_registry }}
147+
CACHE_TAG: ${{ steps.setup-cache.outputs.cache_tag }}
148+
GITHUB_ACTIONS_CACHE: ${{ steps.setup-cache.outputs.github_actions_cache }}
136149
run: |
137150
make clean-all
138151
make run_non_functional_tests
@@ -176,10 +189,18 @@ jobs:
176189
username: ${{ github.actor }}
177190
password: ${{ secrets.GITHUB_TOKEN }}
178191

192+
- name: "Setup Cache Targets"
193+
id: setup-cache
194+
uses: ./.github/actions/setup-cache
195+
179196
- name: "Run Setup"
180197
uses: ./.github/actions/setup-env
181198

182199
- name: Run Metric Tests
200+
env:
201+
CACHE_REGISTRY: ${{ steps.setup-cache.outputs.cache_registry }}
202+
CACHE_TAG: ${{ steps.setup-cache.outputs.cache_tag }}
203+
GITHUB_ACTIONS_CACHE: ${{ steps.setup-cache.outputs.github_actions_cache }}
183204
run: |
184205
make clean-all
185206
make run_metric_tests
@@ -223,10 +244,18 @@ jobs:
223244
username: ${{ github.actor }}
224245
password: ${{ secrets.GITHUB_TOKEN }}
225246

247+
- name: "Setup Cache Targets"
248+
id: setup-cache
249+
uses: ./.github/actions/setup-cache
250+
226251
- name: "Run Setup"
227252
uses: ./.github/actions/setup-env
228253

229254
- name: Run UI Tests
255+
env:
256+
CACHE_REGISTRY: ${{ steps.setup-cache.outputs.cache_registry }}
257+
CACHE_TAG: ${{ steps.setup-cache.outputs.cache_tag }}
258+
GITHUB_ACTIONS_CACHE: ${{ steps.setup-cache.outputs.github_actions_cache }}
230259
run: |
231260
make clean-all
232261
make run_ui_tests
@@ -270,10 +299,18 @@ jobs:
270299
username: ${{ github.actor }}
271300
password: ${{ secrets.GITHUB_TOKEN }}
272301

302+
- name: "Setup Cache Targets"
303+
id: setup-cache
304+
uses: ./.github/actions/setup-cache
305+
273306
- name: "Run Setup"
274307
uses: ./.github/actions/setup-env
275308

276309
- name: Run Unit Tests
310+
env:
311+
CACHE_REGISTRY: ${{ steps.setup-cache.outputs.cache_registry }}
312+
CACHE_TAG: ${{ steps.setup-cache.outputs.cache_tag }}
313+
GITHUB_ACTIONS_CACHE: ${{ steps.setup-cache.outputs.github_actions_cache }}
277314
run: |
278315
make clean-all
279316
make run_unit_tests

.github/workflows/tests-bat.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
2+
# SPDX-FileCopyrightText: (C) 2025-2026 Intel Corporation
33
# SPDX-License-Identifier: Apache-2.0
44

55
name: "[Tests] Basic Acceptance Tests"
@@ -44,9 +44,6 @@ concurrency:
4444
env:
4545
DOCKER_BUILDKIT: 1
4646
SUPASS: demo
47-
GITHUB_ACTIONS_CACHE: true
48-
CACHE_REGISTRY: ${{ github.repository }}
49-
CACHE_TAG: ${{ github.head_ref || github.ref_name }}
5047

5148
permissions:
5249
contents: read
@@ -145,9 +142,16 @@ jobs:
145142
username: ${{ github.actor }}
146143
password: ${{ secrets.GITHUB_TOKEN }}
147144

145+
- name: "Setup Cache Targets"
146+
id: setup-cache
147+
uses: ./.github/actions/setup-cache
148+
148149
- name: "Run Basic Acceptance Tests (BAT)"
150+
env:
151+
CACHE_REGISTRY: ${{ steps.setup-cache.outputs.cache_registry }}
152+
CACHE_TAG: ${{ steps.setup-cache.outputs.cache_tag }}
153+
GITHUB_ACTIONS_CACHE: ${{ steps.setup-cache.outputs.github_actions_cache }}
149154
run: |
150-
export CACHE_TAG=$(echo $CACHE_TAG | tr '/' '_')
151155
make clean-all
152156
git clean -fdx
153157
make run_basic_acceptance_tests
@@ -188,9 +192,16 @@ jobs:
188192
username: ${{ github.actor }}
189193
password: ${{ secrets.GITHUB_TOKEN }}
190194

195+
- name: "Setup Cache Targets"
196+
id: setup-cache
197+
uses: ./.github/actions/setup-cache
198+
191199
- name: Install chart with timeout
200+
env:
201+
CACHE_REGISTRY: ${{ steps.setup-cache.outputs.cache_registry }}
202+
CACHE_TAG: ${{ steps.setup-cache.outputs.cache_tag }}
203+
GITHUB_ACTIONS_CACHE: ${{ steps.setup-cache.outputs.github_actions_cache }}
192204
run: |
193-
export CACHE_TAG=$(echo $CACHE_TAG | tr '/' '_')
194205
KUBERNETES=1 DEPLOYMENT_TEST=1 ./deploy.sh
195206
196207
- name: Stability test (2m)

manager/src/manager/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ def sendUpdateCommand(scene_id=None, camera_data=None):
5151
client = PubSub(auth, cert, rootcert, broker)
5252
try:
5353
client.connect()
54-
except socket.gaierror as e:
55-
log.error("Unable to connect", e)
54+
except (socket.gaierror, ConnectionRefusedError) as e:
55+
log.error("Unable to connect: %s", e)
5656
else:
5757
if scene_id:
5858
client.publish(PubSub.formatTopic(PubSub.CMD_SCENE_UPDATE, scene_id = scene_id), "update")

0 commit comments

Comments
 (0)