From 3be9af8c135e1d55697fa67d1d6e3a2a0fd7909d Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Wed, 22 Feb 2023 12:53:42 +0100 Subject: copy_files_to_artifacts: error -> warning (#35613) This error shows up a lot, typically it's harmless because an error happened before the source build even started, in which case we don't have build logs to copy. So, warn instead of error, cause it distracts from the actual CI error. --- lib/spack/spack/ci.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/spack/spack/ci.py b/lib/spack/spack/ci.py index 2eadb0929c..8be254be23 100644 --- a/lib/spack/spack/ci.py +++ b/lib/spack/spack/ci.py @@ -1502,10 +1502,7 @@ def copy_files_to_artifacts(src, artifacts_dir): try: fs.copy(src, artifacts_dir) except Exception as err: - msg = ("Unable to copy files ({0}) to artifacts {1} due to " "exception: {2}").format( - src, artifacts_dir, str(err) - ) - tty.error(msg) + tty.warn(f"Unable to copy files ({src}) to artifacts {artifacts_dir} due to: {err}") def copy_stage_logs_to_artifacts(job_spec, job_log_dir): -- cgit v1.2.3-70-g09d2