From 1d70ab934c7874211e8894e831268f468b77eb1c Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Mon, 26 Aug 2024 04:58:41 -0700 Subject: `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 --- lib/spack/spack/ci.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 = { -- cgit v1.2.3-70-g09d2