diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c78aa3b276022510ea740069f267494b3a413530..cb336bab9339643ad6b0bb7ba4cc0be59c57dc54 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -253,6 +253,7 @@ stages: - else - testcase_timeout=$TESTCASE_TIMEOUT_STV - fi + - HISTORY_ARTIFACT_NAME="daily_results_$(date +%Y-%m-%d)" - python3 ci/remove_unsupported_testcases.py $PRM_FILES - if [ $LEVEL_SCALING != "1.0" ];then @@ -267,6 +268,7 @@ stages: - python3 scripts/parse_xml_report.py report-junit.xml $CSV_ARTIFACT_NAME - mkdir $IMAGES_ARTIFACT_NAME + - mkdir $HISTORY_ARTIFACT_NAME - for MEASURE in MLD DIFF SSNR;do python3 scripts/create_histogram_summary.py $CSV_ARTIFACT_NAME $IMAGES_ARTIFACT_NAME/summary_"$MEASURE".csv $IMAGES_ARTIFACT_NAME/summary_"$MEASURE".png --measure $MEASURE; done - python3 ci/basop-pages/create_summary_page.py $SUMMARY_HTML_ARTIFACT_NAME $CI_JOB_ID $CI_JOB_NAME @@ -278,6 +280,8 @@ stages: # This wildcard thingy relies on only one csv file being present per job - file_previous="previous_artifacts/mld--$CI_JOB_NAME-$id_previous--sha-*.csv" - python3 ci/basop-pages/create_report_pages.py $PAGES_HTML_ARTIFACT_NAME $MERGED_CSV_ARTIFACT_NAME $CSV_ARTIFACT_NAME $file_previous $CI_JOB_ID $id_previous $CI_JOB_NAME + # Store MLD file for history, such that pages job will only pick these if found in this folder + - cp $CSV_ARTIFACT_NAME $HISTORY_ARTIFACT_NAME - else # create empty file for artifacts to avoid errors - touch $PAGES_HTML_ARTIFACT_NAME @@ -311,6 +315,7 @@ stages: - $MERGED_CSV_ARTIFACT_NAME - $SUMMARY_HTML_ARTIFACT_NAME - $IMAGES_ARTIFACT_NAME + - $HISTORY_ARTIFACT_NAME expose_as: "pytest compare results" reports: junit: @@ -1303,6 +1308,9 @@ pages: - *print-common-info - *update-scripts-repo - python3 ci/setup_pages.py + # Copy logs + - mkdir -p public/history + - cp -r daily_results_* public/history - ls - ls public artifacts: