@@ -24,13 +24,11 @@ jobs:
2424 twister-build-prep :
2525 if : github.repository_owner == 'zephyrproject-rtos'
2626 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'
3027 outputs :
3128 subset : ${{ steps.output-services.outputs.subset }}
3229 size : ${{ steps.output-services.outputs.size }}
3330 fullrun : ${{ steps.output-services.outputs.fullrun }}
31+ rundate : ${{ steps.output-services.outputs.rundate }}
3432 env :
3533 MATRIX_SIZE : 10
3634 PUSH_MATRIX_SIZE : 20
@@ -101,21 +99,6 @@ jobs:
10199 fi
102100 rm -f testplan.json .testplan
103101
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-
119102 - name : Determine matrix size
120103 id : output-services
121104 run : |
@@ -135,6 +118,8 @@ jobs:
135118 else
136119 size=0
137120 fi
121+ run_date=`date --iso-8601=minutes`
122+ echo "rundate=${run_date}" >> $GITHUB_OUTPUT
138123 echo "subset=${subset}" >> $GITHUB_OUTPUT
139124 echo "size=${size}" >> $GITHUB_OUTPUT
140125 echo "fullrun=${TWISTER_FULL}" >> $GITHUB_OUTPUT
@@ -152,6 +137,8 @@ jobs:
152137 matrix :
153138 subset : ${{fromJSON(needs.twister-build-prep.outputs.subset)}}
154139 timeout-minutes : 1440
140+ outputs :
141+ rundate : ${{ steps.output-services.outputs.rundate }}
155142 env :
156143 CCACHE_DIR : /node-cache/ccache-zephyr
157144 CCACHE_REMOTE_STORAGE : " redis://cache-*.keydb-cache.svc.cluster.local|shards=1,2,3"
@@ -255,6 +242,7 @@ jobs:
255242 ./scripts/twister +module_tests.args --outdir module_tests ${TWISTER_COMMON} ${PUSH_OPTIONS}
256243 fi
257244 fi
245+ echo "rundate=${{needs.twister-build-prep.outputs.rundate}}" >> $GITHUB_OUTPUT
258246
259247 - if : github.event_name == 'pull_request_target'
260248 name : Run Tests with Twister (Pull Request)
@@ -325,7 +313,6 @@ jobs:
325313 ELASTICSEARCH_KEY : ${{ secrets.ELASTICSEARCH_KEY }}
326314 ELASTICSEARCH_SERVER : " https://elasticsearch.zephyrproject.io:443"
327315 needs :
328- - twister-build-prep
329316 - twister-build
330317 runs-on : ubuntu-22.04
331318 # the build-and-test job might be skipped, we don't need to run this job then
@@ -350,12 +337,11 @@ jobs:
350337 run : |
351338 pip3 install elasticsearch
352339 # set run date on upload to get consistent and unified data across the matrix.
353- run_date=`date --iso-8601=minutes`
354340 if [ "${{github.event_name}}" = "push" ]; then
355- python3 ./scripts/ci/upload_test_results_es.py -r ${run_date } \
341+ python3 ./scripts/ci/upload_test_results_es.py -r ${{needs.twister-build.outputs.rundate} } \
356342 --index zephyr-main-ci-push-1 artifacts/*/*/twister.json
357343 elif [ "${{github.event_name}}" = "schedule" ]; then
358- python3 ./scripts/ci/upload_test_results_es.py -r ${run_date } \
344+ python3 ./scripts/ci/upload_test_results_es.py -r ${{needs.twister-build-prep.outputs.rundate} } \
359345 --index zephyr-main-ci-weekly-1 artifacts/*/*/twister.json
360346 fi
361347
0 commit comments