Skip to content

Commit 7edf78a

Browse files
committed
wip
1 parent 51fbf45 commit 7edf78a

File tree

2 files changed

+5
-101
lines changed

2 files changed

+5
-101
lines changed

.github/actions/podman-robot/action.yml

+4-21
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ inputs:
99
default: 'core-image-weston-wpe'
1010
bitbake_source:
1111
default: 'source'
12-
github_token:
13-
required: true
1412
repo_release:
1513
default: 'scarthgap'
1614
runs:
@@ -37,44 +35,29 @@ runs:
3735
id: timestamp
3836
shell: bash
3937
run: |
40-
TIMESTAMP=$(cat timestamp.txt)
38+
TIMESTAMP=202501111802
4139
echo "timestamp=${TIMESTAMP}" >> $GITHUB_OUTPUT
42-
- name: Prepare the Robot-Framework related PODs in background
43-
shell: bash
44-
run: |
45-
pushd .ci
46-
podman rm ci_webserver_1 ci_robot_1 -f
47-
./podman-compose.sh up --force-recreate --always-recreate-deps --build -d
48-
popd
49-
- name: Flash
50-
shell: bash
51-
run: |
52-
TIMESTAMP=${{ steps.timestamp.outputs.timestamp }}
53-
s3cmd get -F s3://yocto/${TIMESTAMP}-${{ inputs.bitbake_buildname }}/${{ inputs.bitbake_target }}-${{ inputs.bitbake_machine }}.wic.bmap
54-
s3cmd get -F s3://yocto/${TIMESTAMP}-${{ inputs.bitbake_buildname }}/${{ inputs.bitbake_target }}-${{ inputs.bitbake_machine }}.wic.bz2
55-
sudo flash ${{ inputs.bitbake_target }} ${{ inputs.bitbake_machine }}
56-
- name: Test
40+
- name: Test
5741
shell: bash
5842
run: |
5943
cd .ci
6044
IP=$(sudo manage-devices -c /etc/manage-devices.yml ip ${{ inputs.bitbake_machine }})
6145
echo "#!/bin/sh" > setup-env-local.sh
6246
echo "export TEST_BOARD_IP=${IP}" >> setup-env-local.sh
6347
echo "test_warning_detected=false" >> $GITHUB_ENV
64-
./run-tests.sh || {
48+
false || {
6549
MESSAGE="Failures were detected in the test results in ${{ inputs.bitbake_buildname }} for ${{ inputs.bitbake_target }} with ${{ inputs.bitbake_machine }}"
6650
echo "::warning file=.ci/run-tests.sh,title=Robot Framework tests::${MESSAGE}"
6751
echo "test_warning_detected=true" >> $GITHUB_ENV
6852
echo "${MESSAGE}" > warning.txt
6953
}
70-
TIMESTAMP=${{ steps.timestamp.outputs.timestamp }}
71-
s3cmd put -r -F tests_results/robot s3://yocto/${TIMESTAMP}-${{ inputs.bitbake_buildname }}/
7254
- name: Comment on the pull request if there is a warning
7355
if: env.test_warning_detected == 'true'
7456
uses: mshick/add-pr-comment@v2
7557
with:
7658
message-path: |
7759
warning.txt
60+
- name: Clean
7861
if: always()
7962
shell: bash
8063
run: |

.github/workflows/test-build.yml

+1-80
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,8 @@
11
name: Build tests
22
on: [pull_request]
33
jobs:
4-
scarthgap-repo:
5-
runs-on: [self-hosted, builder]
6-
if: "!contains(github.event.head_commit.message, 'ci skip') && github.event_name == 'pull_request'"
7-
steps:
8-
- uses: actions/checkout@v3
9-
- uses: ./.github/actions/s3-configure
10-
env:
11-
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
12-
S3_SECRET_KEY: ${{ secrets.S3_SECRET_KEY }}
13-
S3_HOST_BASE: ${{ secrets.S3_HOST_BASE }}
14-
with:
15-
access_key: ${S3_ACCESS_KEY}
16-
secret_key: ${S3_SECRET_KEY}
17-
host_base: ${S3_HOST_BASE}
18-
- uses: ./.github/actions/bitbake-repo
19-
with:
20-
repo_release: 'scarthgap'
21-
22-
build-raspberrypi-stable:
23-
strategy:
24-
fail-fast: false
25-
matrix:
26-
machine: ['raspberrypi3-mesa', 'raspberrypi4-64-mesa', 'raspberrypi5']
27-
wpe_vers: ['2_46']
28-
yocto_rel: ['scarthgap']
29-
runs-on: [self-hosted, builder]
30-
if: "!contains(github.event.head_commit.message, 'ci skip') && github.event_name == 'pull_request'"
31-
needs: scarthgap-repo
32-
steps:
33-
- uses: actions/checkout@v3
34-
- uses: ./.github/actions/bitbake-build
35-
with:
36-
bitbake_buildname: wpe-${{ matrix.wpe_vers }}-${{ matrix.machine }}
37-
bitbake_machine: ${{ matrix.machine }}
38-
bitbake_source: 'poky-wayland layers.raspberrypi conf.wpe-${{ matrix.wpe_vers }} --update-config'
39-
repo_release: ${{ matrix.yocto_rel }}
40-
414
test-raspberrypi-stable:
5+
if: "!contains(github.event.head_commit.message, 'ci skip') && github.event_name == 'pull_request'"
426
strategy:
437
fail-fast: false
448
matrix:
@@ -48,7 +12,6 @@ jobs:
4812
runs-on: [self-hosted, podman]
4913
permissions:
5014
pull-requests: write
51-
needs: build-raspberrypi-stable
5215
steps:
5316
- uses: actions/checkout@v3
5417
- uses: ./.github/actions/s3-configure
@@ -61,50 +24,8 @@ jobs:
6124
secret_key: ${S3_SECRET_KEY}
6225
host_base: ${S3_HOST_BASE}
6326
- uses: ./.github/actions/podman-robot
64-
env:
65-
GITHUB_TOKEN: ${{ secrets.github_token }}
6627
with:
6728
bitbake_buildname: wpe-${{ matrix.wpe_vers }}-${{ matrix.machine }}
6829
bitbake_machine: ${{ matrix.machine }}
69-
github_token: ${GITHUB_TOKEN}
7030

71-
build-raspberrypi-nightly:
72-
strategy:
73-
fail-fast: false
74-
matrix:
75-
machine: ['raspberrypi3-mesa', 'raspberrypi4-64-mesa', 'raspberrypi5']
76-
wpe_vers: ['nightly']
77-
yocto_rel: ['scarthgap']
78-
continue-on-error: true
79-
runs-on: [self-hosted, builder]
80-
if: "!contains(github.event.head_commit.message, 'ci skip') && github.event_name == 'pull_request' && !github.event.pull_request.draft"
81-
needs: scarthgap-repo
82-
steps:
83-
- uses: actions/checkout@v3
84-
- uses: ./.github/actions/bitbake-build
85-
with:
86-
bitbake_buildname: wpe-${{ matrix.wpe_vers }}-${{ matrix.machine }}
87-
bitbake_machine: ${{ matrix.machine }}
88-
bitbake_source: 'poky-wayland layers.raspberrypi conf.wpe-${{ matrix.wpe_vers }} --update-config'
89-
repo_release: ${{ matrix.yocto_rel }}
90-
91-
build-freescale:
92-
strategy:
93-
fail-fast: false
94-
matrix:
95-
machine: ['wandboard-mesa']
96-
wpe_vers: ['2_46', 'nightly']
97-
yocto_rel: ['scarthgap']
98-
continue-on-error: true
99-
runs-on: [self-hosted, builder]
100-
if: "!contains(github.event.head_commit.message, 'ci skip') && github.event_name == 'pull_request' && !github.event.pull_request.draft"
101-
needs: scarthgap-repo
102-
steps:
103-
- uses: actions/checkout@v3
104-
- uses: ./.github/actions/bitbake-build
105-
with:
106-
bitbake_buildname: wpe-${{ matrix.wpe_vers }}-${{ matrix.machine }}
107-
bitbake_machine: ${{ matrix.machine }}
108-
bitbake_source: 'poky-wayland layers.freescale conf.wpe-${{ matrix.wpe_vers }} --update-config'
109-
repo_release: ${{ matrix.yocto_rel }}
11031

0 commit comments

Comments
 (0)