Skip to content

Commit efadc1f

Browse files
Edge Virtualization Platform v1.44.0
1 parent 9bfabda commit efadc1f

File tree

74 files changed

+2261
-744
lines changed

Some content is hidden

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

74 files changed

+2261
-744
lines changed

.github/pull_request_template.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2023-2024 Sony Semiconductor Solutions Corporation
3+
4+
SPDX-License-Identifier: Apache-2.0
5+
-->
6+
7+
<!-- Start badge -->
8+
<!-- End badge -->
9+
10+
## What?
11+
12+
Include an explanation of what are the changes about.
13+
14+
## Why?
15+
16+
Include an explanation of why we need the changes.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# SPDX-FileCopyrightText: 2023-2024 Sony Semiconductor Solutions Corporation
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
name: "WASM and native modules"
18+
on:
19+
workflow_call:
20+
inputs:
21+
ref:
22+
type: string
23+
required: true
24+
builder-tag:
25+
description: The builder tag to be used
26+
default: latest
27+
required: false
28+
type: string
29+
package-namespace:
30+
description: The package namespace for docker images
31+
default: ${{ github.repository }}
32+
required: false
33+
type: string
34+
35+
jobs:
36+
build-modules:
37+
name: Modules (${{ matrix.name }}, ${{ matrix.platform }})
38+
runs-on: ${{ matrix.runner }}
39+
container:
40+
image: ghcr.io/${{ inputs.package-namespace }}/builder-${{ matrix.name }}:${{ inputs.builder-tag }}
41+
credentials:
42+
username: ${{ github.actor }}
43+
password: ${{ github.token }}
44+
options: ${{ startsWith(matrix.runner, 'buildjet') && '--user 1000:1001' || '--user 1001:127' }}
45+
strategy:
46+
fail-fast: false
47+
matrix:
48+
include:
49+
- name: raspios-bookworm
50+
runner: ${{ github.event.repository.private && 'buildjet-4vcpu-ubuntu-2204-arm' || 'ubuntu-22.04-arm' }}
51+
platform: arm64
52+
- name: ubuntu-noble
53+
runner: ${{ github.event.repository.private && 'buildjet-4vcpu-ubuntu-2204-arm' || 'ubuntu-22.04-arm' }}
54+
platform: arm64
55+
- name: ubuntu-noble
56+
runner: ${{ github.event.repository.private && 'buildjet-4vcpu-ubuntu-2204' || 'ubuntu-22.04' }}
57+
platform: amd64
58+
59+
steps:
60+
- name: Checkout code
61+
uses: actions/checkout@v4
62+
with:
63+
ref: ${{ inputs.ref }}
64+
65+
- name: Build all modules
66+
run: |
67+
make -j$((`nproc` * 2)) \
68+
KBUILD_DEFCONFIG=configs/unit-test-all-hubs-wasm.config \
69+
wasm_test_modules
70+
make -j$((`nproc` * 2)) -C test_modules/python
71+
72+
- uses: actions/upload-artifact@v4
73+
with:
74+
name: test-modules-${{ matrix.name }}-${{ matrix.platform }}-${{ github.run_id }}
75+
path: |
76+
test_modules/*.elf
77+
test_modules/*.wasm
78+
test_modules/*.wasm.*
79+
test_modules/python/*.zip

.github/workflows/build-sdk.yml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# SPDX-FileCopyrightText: 2023-2024 Sony Semiconductor Solutions Corporation
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
on:
6+
workflow_call:
7+
inputs:
8+
builder-tag:
9+
description: The builder tag to be used
10+
default: latest
11+
required: false
12+
type: string
13+
package-namespace:
14+
description: The package namespace for docker images
15+
default: ${{ github.repository }}
16+
required: false
17+
type: string
18+
ref:
19+
type: string
20+
required: true
21+
22+
jobs:
23+
build-sdk:
24+
name: SDK (${{ matrix.name }}, ${{ matrix.platform }})
25+
runs-on: ${{ matrix.runner }}
26+
container:
27+
image: ghcr.io/${{ inputs.package-namespace }}/builder-${{ matrix.name }}:${{ inputs.builder-tag }}
28+
credentials:
29+
username: ${{ github.actor }}
30+
password: ${{ github.token }}
31+
options: ${{ startsWith(matrix.runner, 'buildjet') && '--user 1000:1001' || '--user 1001:127' }}
32+
timeout-minutes: 8 # the worst case is 3 minutes
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
include:
37+
- name: raspios-bookworm
38+
runner: ${{ github.event.repository.private && 'buildjet-4vcpu-ubuntu-2204-arm' || 'ubuntu-22.04-arm' }}
39+
platform: arm64
40+
- name: ubuntu-noble
41+
runner: ${{ github.event.repository.private && 'buildjet-4vcpu-ubuntu-2204-arm' || 'ubuntu-22.04-arm' }}
42+
platform: arm64
43+
- name: ubuntu-noble
44+
runner: ${{ github.event.repository.private && 'buildjet-4vcpu-ubuntu-2204' || 'ubuntu-22.04' }}
45+
platform: amd64
46+
47+
steps:
48+
- name: Checkout source
49+
uses: actions/checkout@v4
50+
with:
51+
ref: ${{ inputs.ref }}
52+
53+
- name: Build SDK
54+
run: make -j$((`nproc` * 2)) sdk \
55+
CFLAGS="-O2 -Werror" \
56+
KBUILD_DEFCONFIG=configs/linux-docker.config
57+
58+
- name: Install python test dependencies
59+
working-directory: src/python-evp-app-sdk
60+
run: |
61+
python3 -m venv .venv
62+
. .venv/bin/activate
63+
pip install \
64+
-e . \
65+
-r requirements.test.txt
66+
67+
- name: Run python SDK tests
68+
working-directory: src/python-evp-app-sdk
69+
run: |
70+
. .venv/bin/activate
71+
python -m pytest \
72+
--cov=evp.app \
73+
--cov-report="xml:pysdk-cov.xml" \
74+
--junit-xml="pysdk-test-res.xml" \
75+
-v
76+
77+
- name: Publish pytest coverage
78+
id: pysdk-cov
79+
uses: MishaKav/pytest-coverage-comment@main
80+
if: always()
81+
with:
82+
title: EVP Python Application SDK coverage report
83+
badge-title: Python Application SDK
84+
coverage-path-prefix: src/python-evp-app-sdk/evp/app/
85+
pytest-xml-coverage-path: src/python-evp-app-sdk/pysdk-cov.xml
86+
junitxml-path: src/python-evp-app-sdk/pysdk-test-res.xml
87+
junitxml-title: Python Application SDK test report
88+
89+
- name: Publish pytest results to summary
90+
if: steps.pysdk-cov.outputs.summaryReport
91+
run: echo ${{ steps.pysdk-cov.outputs.summaryReport }} >> $GITHUB_STEP_SUMMARY
92+
93+
- name: Build Python package
94+
working-directory: src/python-evp-app-sdk
95+
run: python3 -m build
96+
97+
- name: SDK Debian package
98+
working-directory: src/python-evp-app-sdk
99+
run: python setup.py --command-packages=stdeb.command bdist_deb
100+
101+
- uses: actions/upload-artifact@v4
102+
with:
103+
name: python-sdk-${{ matrix.name }}-${{ matrix.platform }}-${{ github.run_id }}
104+
path: src/python-evp-app-sdk/dist/*
105+
106+
- uses: actions/upload-artifact@v4
107+
with:
108+
name: python-sdk-deb-${{ matrix.name }}-${{ matrix.platform }}-${{ github.run_id }}
109+
path: src/python-evp-app-sdk/deb_dist/*.deb

.github/workflows/build.yml

Lines changed: 2 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
runner: ${{ github.event.repository.private && 'buildjet-4vcpu-ubuntu-2204-arm' || 'ubuntu-22.04-arm' }}
4242
platform: arm64
4343
- name: ubuntu-noble
44-
runner: ${{ github.event.repository.private && 'buildjet-4vcpu-ubuntu-2204' || 'ubuntu-24.04' }}
44+
runner: ${{ github.event.repository.private && 'buildjet-4vcpu-ubuntu-2204' || 'ubuntu-22.04' }}
4545
platform: amd64
4646
steps:
4747
- name: Checkout source
@@ -83,97 +83,9 @@ jobs:
8383
sbom-files.txt
8484
sbom-tmp.txt
8585
86-
build-sdk:
87-
name: SDK (${{ matrix.name }}, ${{ matrix.platform }})
88-
runs-on: ${{ matrix.runner }}
89-
container:
90-
image: ghcr.io/${{ inputs.package-namespace }}/builder-${{ matrix.name }}:${{ inputs.builder-tag }}
91-
credentials:
92-
username: ${{ github.actor }}
93-
password: ${{ github.token }}
94-
options: ${{ startsWith(matrix.runner, 'buildjet') && '--user 1000:1001' || '--user 1001:127' }}
95-
timeout-minutes: 8 # the worst case is 3 minutes
96-
strategy:
97-
fail-fast: false
98-
matrix:
99-
include:
100-
- name: raspios-bookworm
101-
runner: ${{ github.event.repository.private && 'buildjet-4vcpu-ubuntu-2204-arm' || 'ubuntu-22.04-arm' }}
102-
platform: arm64
103-
- name: ubuntu-noble
104-
runner: ${{ github.event.repository.private && 'buildjet-4vcpu-ubuntu-2204-arm' || 'ubuntu-22.04-arm' }}
105-
platform: arm64
106-
- name: ubuntu-noble
107-
runner: ${{ github.event.repository.private && 'buildjet-4vcpu-ubuntu-2204' || 'ubuntu-24.04' }}
108-
platform: amd64
109-
110-
steps:
111-
- name: Checkout source
112-
uses: actions/checkout@v4
113-
with:
114-
ref: ${{ inputs.ref }}
115-
116-
- name: Build SDK
117-
run: make -j$((`nproc` * 2)) sdk \
118-
CFLAGS="-O2 -Werror" \
119-
KBUILD_DEFCONFIG=configs/linux-docker.config
120-
121-
- name: Install python test dependencies
122-
working-directory: src/python-evp-app-sdk
123-
run: |
124-
python3 -m venv .venv
125-
. .venv/bin/activate
126-
pip install \
127-
-e . \
128-
-r requirements.test.txt
129-
130-
- name: Run python SDK tests
131-
working-directory: src/python-evp-app-sdk
132-
run: |
133-
. .venv/bin/activate
134-
python -m pytest \
135-
--cov=evp.app \
136-
--cov-report="xml:pysdk-cov.xml" \
137-
--junit-xml="pysdk-test-res.xml" \
138-
-v
139-
140-
- name: Publish pytest coverage
141-
id: pysdk-cov
142-
uses: MishaKav/pytest-coverage-comment@main
143-
if: always()
144-
with:
145-
title: EVP Python Application SDK coverage report
146-
badge-title: Python Application SDK
147-
coverage-path-prefix: src/python-evp-app-sdk/evp/app/
148-
pytest-xml-coverage-path: src/python-evp-app-sdk/pysdk-cov.xml
149-
junitxml-path: src/python-evp-app-sdk/pysdk-test-res.xml
150-
junitxml-title: Python Application SDK test report
151-
152-
- name: Publish pytest results to summary
153-
if: steps.pysdk-cov.outputs.summaryReport
154-
run: echo ${{ steps.pysdk-cov.outputs.summaryReport }} >> $GITHUB_STEP_SUMMARY
155-
156-
- name: Build Python package
157-
working-directory: src/python-evp-app-sdk
158-
run: python3 -m build
159-
160-
- name: SDK Debian package
161-
working-directory: src/python-evp-app-sdk
162-
run: python setup.py --command-packages=stdeb.command bdist_deb
163-
164-
- uses: actions/upload-artifact@v4
165-
with:
166-
name: python-sdk-${{ matrix.name }}-${{ matrix.platform }}-${{ github.run_id }}
167-
path: src/python-evp-app-sdk/dist/*
168-
169-
- uses: actions/upload-artifact@v4
170-
with:
171-
name: python-sdk-deb-${{ matrix.name }}-${{ matrix.platform }}-${{ github.run_id }}
172-
path: src/python-evp-app-sdk/deb_dist/*.deb
173-
17486
run-static-analysis:
17587
name: Static Code Analysis
176-
runs-on: ubuntu-24.04
88+
runs-on: ubuntu-22.04
17789
container:
17890
image: ghcr.io/${{ inputs.package-namespace }}/builder-ubuntu-noble:${{ inputs.builder-tag }}
17991
options: --user 1001:127

.github/workflows/builder.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ concurrency:
3838
jobs:
3939
builder-necessary:
4040
name: Is builder necessary?
41-
runs-on: ubuntu-24.04
41+
runs-on: ubuntu-22.04
4242
outputs:
4343
build: ${{ steps.changed-files.outputs.all_changed_and_modified_files != '' }}
4444
builder-tag: ${{ steps.builder-tag.outputs.tag }}
@@ -111,7 +111,7 @@ jobs:
111111
matrix:
112112
include:
113113
- platform: amd64
114-
runner: ${{ github.event.repository.private && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-24.04' }}
114+
runner: ${{ github.event.repository.private && 'buildjet-8vcpu-ubuntu-2204' || 'ubuntu-22.04' }}
115115
- platform: arm64
116116
runner: ${{ github.event.repository.private && 'buildjet-8vcpu-ubuntu-2204-arm' || 'ubuntu-22.04-arm' }}
117117

@@ -144,7 +144,7 @@ jobs:
144144
- builder-necessary
145145
- build-push-ubuntu
146146
name: Docker manifest
147-
runs-on: ubuntu-24.04
147+
runs-on: ubuntu-22.04
148148

149149
steps:
150150
- name: Login to Github Registry

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
jobs:
2323
check:
2424
name: Formatting
25-
runs-on: ubuntu-24.04
25+
runs-on: ubuntu-22.04
2626
container:
2727
image: ghcr.io/${{ inputs.package-namespace }}/builder-ubuntu-noble:${{ inputs.builder-tag}}
2828
options: --user 1001:127

0 commit comments

Comments
 (0)