Commit 74db50b9 authored by Anas Nashif's avatar Anas Nashif
Browse files

ci: twister: set run_date when uploading data to elasticsearch



This way we will get unified data across the matrix and will not have
duplications when re-running a job.

Signed-off-by: default avatarAnas Nashif <anas.nashif@intel.com>
parent 59b3e5ba
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -292,10 +292,14 @@ jobs:
        name: Upload to opensearch
        run: |
          pip3 install elasticsearch
          # set run date on upload to get consistent and unified data across the matrix.
          run_date=`date --iso-8601=minutes`
          if [ "${{github.event_name}}" = "push" ]; then
            python3 ./scripts/ci/upload_test_results_es.py --index zephyr-main-ci-push-1 artifacts/*/*/twister.json
            python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
              --index zephyr-main-ci-push-1 artifacts/*/*/twister.json
          elif [ "${{github.event_name}}" = "schedule" ]; then
            python3 ./scripts/ci/upload_test_results_es.py --index zephyr-main-ci-weekly-1 artifacts/*/*/twister.json
            python3 ./scripts/ci/upload_test_results_es.py -r ${run_date} \
              --index zephyr-main-ci-weekly-1 artifacts/*/*/twister.json
          fi

      - name: Merge Test Results