summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2023-04-24 10:08:30 -0500
committerGitHub <noreply@github.com>2023-04-24 10:08:30 -0500
commit7df2865dce556ece9b632083215bb255cae03b8c (patch)
tree7a0eee26d767afcf40e3a68f8c91356b2f15cb8f /lib
parente69d6937274b2f5f323458426e448a61a402d45c (diff)
downloadspack-7df2865dce556ece9b632083215bb255cae03b8c.tar.gz
spack-7df2865dce556ece9b632083215bb255cae03b8c.tar.bz2
spack-7df2865dce556ece9b632083215bb255cae03b8c.tar.xz
spack-7df2865dce556ece9b632083215bb255cae03b8c.zip
Copy more logs to CI artifacts (#36783)
* Copy more logs to CI artifacts * Trigger rebuilds again * Remove test variant
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/ci.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/spack/spack/ci.py b/lib/spack/spack/ci.py
index 69f47cfccb..5056cb250f 100644
--- a/lib/spack/spack/ci.py
+++ b/lib/spack/spack/ci.py
@@ -1662,16 +1662,16 @@ def copy_files_to_artifacts(src, artifacts_dir):
tty.warn(msg)
-def copy_stage_logs_to_artifacts(job_spec, job_log_dir):
+def copy_stage_logs_to_artifacts(job_spec: spack.spec.Spec, job_log_dir: str) -> None:
"""Copy selected build stage file(s) to the given artifacts directory
- Looks for spack-build-out.txt in the stage directory of the given
- job_spec, and attempts to copy the file into the directory given
+ Looks for build logs in the stage directory of the given
+ job_spec, and attempts to copy the files into the directory given
by job_log_dir.
- Parameters:
- job_spec (spack.spec.Spec): spec associated with spack install log
- job_log_dir (str): path into which build log should be copied
+ Args:
+ job_spec: spec associated with spack install log
+ job_log_dir: path into which build log should be copied
"""
tty.debug("job spec: {0}".format(job_spec))
if not job_spec:
@@ -1690,8 +1690,8 @@ def copy_stage_logs_to_artifacts(job_spec, job_log_dir):
stage_dir = job_pkg.stage.path
tty.debug("stage dir: {0}".format(stage_dir))
- build_out_src = os.path.join(stage_dir, "spack-build-out.txt")
- copy_files_to_artifacts(build_out_src, job_log_dir)
+ for file in [job_pkg.log_path, job_pkg.env_mods_path, *job_pkg.builder.archive_files]:
+ copy_files_to_artifacts(file, job_log_dir)
def copy_test_logs_to_artifacts(test_stage, job_test_dir):