summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2024-08-26 04:58:41 -0700
committerGitHub <noreply@github.com>2024-08-26 13:58:41 +0200
commit1d70ab934c7874211e8894e831268f468b77eb1c (patch)
tree4f45c282a35607a2bfc853071059229b36172c5d
parentfa704e867ce596e21f2d0cb0213d4d0a4d221fe5 (diff)
downloadspack-1d70ab934c7874211e8894e831268f468b77eb1c.tar.gz
spack-1d70ab934c7874211e8894e831268f468b77eb1c.tar.bz2
spack-1d70ab934c7874211e8894e831268f468b77eb1c.tar.xz
spack-1d70ab934c7874211e8894e831268f468b77eb1c.zip
`ci generate`: don't warn when no cdash config (#46004)
Right now if you run `spack ci generate` you get a warning about CDash credentials even if there's no CDash configuration specified. We should only warn if there was actually a CDash config. Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
-rw-r--r--lib/spack/spack/ci.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/ci.py b/lib/spack/spack/ci.py
index fc847d18e6..bc661e0970 100644
--- a/lib/spack/spack/ci.py
+++ b/lib/spack/spack/ci.py
@@ -1110,7 +1110,8 @@ def generate_gitlab_ci_yaml(
cdash_handler.populate_buildgroup(all_job_names)
except (SpackError, HTTPError, URLError, TimeoutError) as err:
tty.warn(f"Problem populating buildgroup: {err}")
- else:
+ elif cdash_config:
+ # warn only if there was actually a CDash configuration.
tty.warn("Unable to populate buildgroup without CDash credentials")
service_job_retries = {