From 1d70ab934c7874211e8894e831268f468b77eb1c Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Mon, 26 Aug 2024 04:58:41 -0700 Subject: [PATCH] `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 fc847d18e60..bc661e09701 100644 --- a/lib/spack/spack/ci.py +++ b/lib/spack/spack/ci.py @@ -1110,7 +1110,8 @@ def main_script_replacements(cmd): 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 = {