summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2023-02-22 12:53:42 +0100
committerGitHub <noreply@github.com>2023-02-22 11:53:42 +0000
commit3be9af8c135e1d55697fa67d1d6e3a2a0fd7909d (patch)
treea1882c8b57060c9b9c194b70b28320382928418d /lib
parent6e477d547d82ef1407c55aec1ec8044303f99de4 (diff)
downloadspack-3be9af8c135e1d55697fa67d1d6e3a2a0fd7909d.tar.gz
spack-3be9af8c135e1d55697fa67d1d6e3a2a0fd7909d.tar.bz2
spack-3be9af8c135e1d55697fa67d1d6e3a2a0fd7909d.tar.xz
spack-3be9af8c135e1d55697fa67d1d6e3a2a0fd7909d.zip
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.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/ci.py5
1 files changed, 1 insertions, 4 deletions
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):