From 47c560d5268e663fa21bdce14588c6a568136030 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Wed, 22 Nov 2023 16:06:46 +0100 Subject: [PATCH] ASP-based solver: don't emit spurious debug output (#41218) When improving the error message, we started #showing in the answer set a lot more symbols - but we forgot to suppress the debug messages warning about UNKNOWN SYMBOLs --- lib/spack/spack/solver/asp.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py index 806bbac28f..e3068e7db4 100644 --- a/lib/spack/spack/solver/asp.py +++ b/lib/spack/spack/solver/asp.py @@ -1013,14 +1013,6 @@ def on_model(model): # record the possible dependencies in the solve result.possible_dependencies = setup.pkgs - # print any unknown functions in the model - for sym in best_model: - if sym.name not in ("attr", "error", "opt_criterion"): - tty.debug( - "UNKNOWN SYMBOL: %s(%s)" - % (sym.name, ", ".join([str(s) for s in intermediate_repr(sym.arguments)])) - ) - elif cores: result.control = self.control result.cores.extend(cores) @@ -2799,9 +2791,11 @@ class SpecBuilder: r"^.*_propagate$", r"^.*_satisfies$", r"^.*_set$", + r"^dependency_holds$", r"^node_compiler$", r"^package_hash$", r"^root$", + r"^track_dependencies$", r"^variant_default_value_from_cli$", r"^virtual_node$", r"^virtual_root$",