diff options
author | psakievich <psakiev@sandia.gov> | 2023-12-05 15:05:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-05 22:05:39 +0000 |
commit | 1829dbd7b644f87d8a91948d9138f56510f2e9da (patch) | |
tree | 2e2d64ffee3e0f03c06c23a2a8945a9e00004d89 /lib | |
parent | 9e3b231e6f2242dc2519136de6cec63abd0c6939 (diff) | |
download | spack-1829dbd7b644f87d8a91948d9138f56510f2e9da.tar.gz spack-1829dbd7b644f87d8a91948d9138f56510f2e9da.tar.bz2 spack-1829dbd7b644f87d8a91948d9138f56510f2e9da.tar.xz spack-1829dbd7b644f87d8a91948d9138f56510f2e9da.zip |
CDash: Spack dumps stage errors to configure phase (#41436)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/reporters/cdash.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/spack/spack/reporters/cdash.py b/lib/spack/spack/reporters/cdash.py index 4517530751..3c538418f6 100644 --- a/lib/spack/spack/reporters/cdash.py +++ b/lib/spack/spack/reporters/cdash.py @@ -153,6 +153,25 @@ class CDash(Reporter): elif cdash_phase: report_data[cdash_phase]["loglines"].append(xml.sax.saxutils.escape(line)) + # something went wrong pre-cdash "configure" phase b/c we have an exception and only + # "update" was encounterd. + # dump the report in the configure line so teams can see what the issue is + if len(phases_encountered) == 1 and package["exception"]: + # TODO this mapping is not ideal since these are pre-configure errors + # we need to determine if a more appropriate cdash phase can be utilized + # for now we will add a message to the log explaining this + cdash_phase = "configure" + phases_encountered.append(cdash_phase) + + log_message = ( + "Pre-configure errors occured in Spack's process that terminated the " + "build process prematurely.\nSpack output::\n{0}".format( + xml.sax.saxutils.escape(package["exception"]) + ) + ) + + report_data[cdash_phase]["loglines"].append(log_message) + # Move the build phase to the front of the list if it occurred. # This supports older versions of CDash that expect this phase # to be reported before all others. |