Skip to content

Commit 1eec0e6

Browse files
committed
xxx
Signed-off-by: Anas Nashif <[email protected]>
1 parent 1153b80 commit 1eec0e6

File tree

1 file changed

+10
-23
lines changed

1 file changed

+10
-23
lines changed

.github/workflows/twister.yaml

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@ concurrency:
2323
jobs:
2424
twister-build-prep:
2525
if: github.repository_owner == 'zephyrproject-rtos'
26-
runs-on: ubuntu-22.04
27-
container:
28-
image: ghcr.io/zephyrproject-rtos/ci-repo-cache:v0.27.4.20241026
29-
options: '--entrypoint /bin/bash'
26+
runs-on:
27+
group: ubuntu-22.04
3028
outputs:
3129
subset: ${{ steps.output-services.outputs.subset }}
3230
size: ${{ steps.output-services.outputs.size }}
3331
fullrun: ${{ steps.output-services.outputs.fullrun }}
32+
rundate: ${{ steps.output-services.outputs.rundate }}
3433
env:
3534
MATRIX_SIZE: 10
3635
PUSH_MATRIX_SIZE: 20
@@ -101,21 +100,6 @@ jobs:
101100
fi
102101
rm -f testplan.json .testplan
103102
104-
- name: Provide rundate to runners
105-
id: test-plan-rundate
106-
run: |
107-
run_date=`date --iso-8601=minutes`
108-
echo "RUNDATE=${run_date}" > testplan.txt
109-
110-
- name: Upload Testplans
111-
if: always()
112-
uses: actions/upload-artifact@v4
113-
with:
114-
name: Testplans
115-
if-no-files-found: ignore
116-
path: |
117-
testplan.txt
118-
119103
- name: Determine matrix size
120104
id: output-services
121105
run: |
@@ -138,6 +122,8 @@ jobs:
138122
echo "subset=${subset}" >> $GITHUB_OUTPUT
139123
echo "size=${size}" >> $GITHUB_OUTPUT
140124
echo "fullrun=${TWISTER_FULL}" >> $GITHUB_OUTPUT
125+
run_date=`date +%s`
126+
echo "rundate=${run_date}" >> $GITHUB_OUTPUT
141127
142128
twister-build:
143129
runs-on:
@@ -152,6 +138,8 @@ jobs:
152138
matrix:
153139
subset: ${{fromJSON(needs.twister-build-prep.outputs.subset)}}
154140
timeout-minutes: 1440
141+
outputs:
142+
rundate: ${{ steps.output-services.outputs.rundate }}
155143
env:
156144
CCACHE_DIR: /node-cache/ccache-zephyr
157145
CCACHE_REMOTE_STORAGE: "redis://cache-*.keydb-cache.svc.cluster.local|shards=1,2,3"
@@ -255,6 +243,7 @@ jobs:
255243
./scripts/twister +module_tests.args --outdir module_tests ${TWISTER_COMMON} ${PUSH_OPTIONS}
256244
fi
257245
fi
246+
echo ${{needs.twister-build-prep.outputs.rundate}} >> $GITHUB_OUTPUT
258247
259248
- if: github.event_name == 'pull_request_target'
260249
name: Run Tests with Twister (Pull Request)
@@ -325,7 +314,6 @@ jobs:
325314
ELASTICSEARCH_KEY: ${{ secrets.ELASTICSEARCH_KEY }}
326315
ELASTICSEARCH_SERVER: "https://elasticsearch.zephyrproject.io:443"
327316
needs:
328-
- twister-build-prep
329317
- twister-build
330318
runs-on: ubuntu-22.04
331319
# the build-and-test job might be skipped, we don't need to run this job then
@@ -350,12 +338,11 @@ jobs:
350338
run: |
351339
pip3 install elasticsearch
352340
# set run date on upload to get consistent and unified data across the matrix.
353-
run_date=`date --iso-8601=minutes`
354341
if [ "${{github.event_name}}" = "push" ]; then
355-
python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
342+
python3 ./scripts/ci/upload_test_results_es.py -r ${{needs.twister-build.outputs.rundate}} \
356343
--index zephyr-main-ci-push-1 artifacts/*/*/twister.json
357344
elif [ "${{github.event_name}}" = "schedule" ]; then
358-
python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
345+
python3 ./scripts/ci/upload_test_results_es.py -r ${{needs.twister-build-prep.outputs.rundate}} \
359346
--index zephyr-main-ci-weekly-1 artifacts/*/*/twister.json
360347
fi
361348

0 commit comments

Comments
 (0)