From a21247eada732a12fece631a2dcf48cefe76903d Mon Sep 17 00:00:00 2001 From: "igor.udot" Date: Fri, 9 Aug 2024 10:13:50 +0800 Subject: [PATCH] fix: save artifacts for generate job --- .../templates/generate_target_test_report.yml | 3 +++ tools/ci/dynamic_pipelines/templates/test_child_pipeline.yml | 3 +++ tools/ci/previous_stage_job_status.py | 1 + 3 files changed, 7 insertions(+) diff --git a/tools/ci/dynamic_pipelines/templates/generate_target_test_report.yml b/tools/ci/dynamic_pipelines/templates/generate_target_test_report.yml index fe54363578..1631f949f4 100644 --- a/tools/ci/dynamic_pipelines/templates/generate_target_test_report.yml +++ b/tools/ci/dynamic_pipelines/templates/generate_target_test_report.yml @@ -9,6 +9,9 @@ generate_pytest_report: - failed_cases.html - skipped_cases.html - succeeded_cases.html + expire_in: 1 week + when: always + script: - python tools/ci/get_known_failure_cases_file.py - python tools/ci/dynamic_pipelines/scripts/generate_report.py --report-type target_test diff --git a/tools/ci/dynamic_pipelines/templates/test_child_pipeline.yml b/tools/ci/dynamic_pipelines/templates/test_child_pipeline.yml index 0378bdd381..08b25bc2d9 100644 --- a/tools/ci/dynamic_pipelines/templates/test_child_pipeline.yml +++ b/tools/ci/dynamic_pipelines/templates/test_child_pipeline.yml @@ -9,6 +9,9 @@ generate_pytest_build_report: paths: - build_report.html - test_related_apps_download_urls.yml + expire_in: 1 week + when: always + script: - python tools/ci/dynamic_pipelines/scripts/generate_report.py --report-type build - python tools/ci/previous_stage_job_status.py --stage build diff --git a/tools/ci/previous_stage_job_status.py b/tools/ci/previous_stage_job_status.py index 505cf1ab5c..3888780d40 100644 --- a/tools/ci/previous_stage_job_status.py +++ b/tools/ci/previous_stage_job_status.py @@ -31,5 +31,6 @@ if __name__ == '__main__': for job in jobs: if job['stage'] == args.stage: + print(f'Jobs from the previous stage {args.stage} should pass; otherwise, this job will fail.') sys.exit(1) page += 1