From 618298f2b22010f86774c4a1f185dfa225f19b1d Mon Sep 17 00:00:00 2001 From: miro Date: Sat, 4 Jan 2025 21:14:07 +0000 Subject: [PATCH 1/2] rm scary warning --- ovos_plugin_manager/templates/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovos_plugin_manager/templates/media.py b/ovos_plugin_manager/templates/media.py index 85e25381..f769b613 100644 --- a/ovos_plugin_manager/templates/media.py +++ b/ovos_plugin_manager/templates/media.py @@ -2,7 +2,7 @@ from ovos_bus_client.message import Message from ovos_utils.log import LOG -from ovos_utils.messagebus import FakeBus +from ovos_utils.fakebus import FakeBus from ovos_utils.ocp import MediaState, PlayerState, TrackState From b957f3246353baeb648932635f34f8ab6adc81a7 Mon Sep 17 00:00:00 2001 From: miro Date: Sat, 4 Jan 2025 23:54:58 +0000 Subject: [PATCH 2/2] fix:logspam --- .github/workflows/build_tests.yml | 2 +- .github/workflows/pipaudit.yml | 2 +- .github/workflows/unit_tests.yml | 2 +- ovos_plugin_manager/templates/solvers.py | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_tests.yml b/.github/workflows/build_tests.yml index 686d91da..378eec37 100644 --- a/.github/workflows/build_tests.yml +++ b/.github/workflows/build_tests.yml @@ -24,7 +24,7 @@ jobs: strategy: max-parallel: 2 matrix: - python-version: [ 3.7, 3.8, 3.9, "3.10" ] + python-version: [3.9, "3.10", "3.11"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/pipaudit.yml b/.github/workflows/pipaudit.yml index 9f2f3fbf..47a05e99 100644 --- a/.github/workflows/pipaudit.yml +++ b/.github/workflows/pipaudit.yml @@ -11,7 +11,7 @@ jobs: strategy: max-parallel: 2 matrix: - python-version: [ 3.7, 3.8, 3.9, "3.10" ] + python-version: [3.9, "3.10", "3.11"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 69a78d3a..2134dd2b 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -33,7 +33,7 @@ jobs: strategy: max-parallel: 2 matrix: - python-version: [ 3.8, 3.9, "3.10" ] + python-version: [3.9, "3.10", "3.11"] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/ovos_plugin_manager/templates/solvers.py b/ovos_plugin_manager/templates/solvers.py index 3c04b5ed..bcf3a58e 100644 --- a/ovos_plugin_manager/templates/solvers.py +++ b/ovos_plugin_manager/templates/solvers.py @@ -494,7 +494,8 @@ def retrieve_from_corpus(self, query: str, k: int = 3, lang: Optional[str] = Non """return top_k matches from indexed corpus""" res = [] for doc, score in self.query(query, lang, k=k): - LOG.debug(f"Rank {len(res) + 1} (score: {score}): {doc}") + # this log can be very spammy, only enable for debug during dev + #LOG.debug(f"Rank {len(res) + 1} (score: {score}): {doc}") if self.config.get("min_conf"): if score >= self.config["min_conf"]: res.append((score, doc))