From 0d946de8813867342f160aa5f3272eb10c8fbe78 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 23 Nov 2026 20:07:19 +0900 Subject: [PATCH 1/6] drop: unused import --- dzgui/managers/config.py | 1 - 1 file changed, 1 deletion(-) diff --git a/dzgui/managers/config.py b/dzgui/managers/config.py index 50468d95..d9bc0344 100644 --- a/dzgui/managers/config.py +++ b/dzgui/managers/config.py @@ -13,7 +13,6 @@ from dzgui.api.probe import test_steam_api from dzgui.const.enum import Preferences from dzgui.managers.threading import call_on_thread, StoredFunc, ThreadingManager from dzgui.views.dialogs.generic import ExceptionDialog -from dzgui.strings import dialogs from dzgui.util._json import read_json, write_json if TYPE_CHECKING: From 29c276573277461c309ccde8d68b502780b628a5 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 23 Nov 2026 20:08:59 +0900 Subject: [PATCH 2/6] docs: update DEVELOPERS.md --- DEVELOPERS.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/DEVELOPERS.md b/DEVELOPERS.md index abecac90..c07ff3c8 100644 --- a/DEVELOPERS.md +++ b/DEVELOPERS.md @@ -29,3 +29,8 @@ sphinx-build -M html source build -a 2. Set up the build target: `rustup target add x86_64-unknown-linux-musl` 3. Run `python3 scripts/release.py` 4. Generate a release and tag against the resulting tarfile generated in `dist` + +### Running tests + +Some tests are environment specific and require real configuration files. +For a generally environment-agnostic test suite, invoke `pytest -m "not realconfig, not flatpak"` From e5d94a8c520111f53d6e81f4fecbddc9f1d54b97 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 23 Nov 2026 20:19:02 +0900 Subject: [PATCH 3/6] chore: update log levels --- dzgui/api/shortcuts.py | 2 ++ dzgui/managers/connection.py | 2 +- dzgui/managers/update.py | 2 +- dzgui/model/servers.py | 6 +++--- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dzgui/api/shortcuts.py b/dzgui/api/shortcuts.py index 7900e22c..91f8b8fd 100644 --- a/dzgui/api/shortcuts.py +++ b/dzgui/api/shortcuts.py @@ -114,6 +114,7 @@ class Shortcuts: make_parents(dest) b = images.joinpath(img).with_suffix(".png").read_bytes() dest.write_bytes(b) + logger.debug(f"Wrote grid image to '{dest}'") # NOTE: legacy Big Picture header b = images.joinpath("_hero.png").read_bytes() @@ -127,6 +128,7 @@ class Shortcuts: except Exception: n = 0 self.shortcuts["shortcuts"][str(n)] = entry + logger.debug("Added shortcut at index {n}") @classmethod def _create_entry(cls, meta: ShortcutMetadata) -> dict[str, Any]: diff --git a/dzgui/managers/connection.py b/dzgui/managers/connection.py index c929dce3..d160e56b 100644 --- a/dzgui/managers/connection.py +++ b/dzgui/managers/connection.py @@ -147,7 +147,7 @@ class ConnectionManager: self.missing_mods = missing_mods self.remote_mod_ids = [mod[1] for mod in remote_mods] except Exception as e: - logger.warning(e) + logger.critical(e) self.thread_man.set_cleanup_func(failure_func, destroy_first=True) return diff --git a/dzgui/managers/update.py b/dzgui/managers/update.py index f08b2798..f29c1736 100644 --- a/dzgui/managers/update.py +++ b/dzgui/managers/update.py @@ -50,7 +50,7 @@ class UpdateManager: except Exception as e: func = StoredFunc(self._on_update_failure, str(e)) self.thread_man.set_cleanup_func(func, destroy_first=True) - logger.warning(e) + logger.critical(e) def _on_update_success(self) -> None: msg = dialogs.update_success diff --git a/dzgui/model/servers.py b/dzgui/model/servers.py index d4db1b30..97f0bd8b 100644 --- a/dzgui/model/servers.py +++ b/dzgui/model/servers.py @@ -205,7 +205,7 @@ class ServerModelManager: res = Servers.query_by_ip(addr) self._parse_single_record(res) except Exception as e: - logger.warning(e) + logger.critical(e) self.thread_man.set_cleanup_func( StoredFunc(self._cleanup_on_failure), destroy_first=True ) @@ -219,7 +219,7 @@ class ServerModelManager: res = Servers.query_by_record(record) self._parse_single_record(res) except Exception as e: - logger.warning(e) + logger.critical(e) self.thread_man.set_cleanup_func( StoredFunc(self._cleanup_on_failure), destroy_first=True ) @@ -232,7 +232,7 @@ class ServerModelManager: res = Servers.query_by_record(record) self._parse_single_record(res, delete=True) except Exception as e: - logger.warning(e) + logger.critical(e) self.thread_man.set_cleanup_func( StoredFunc(self._cleanup_on_failure), destroy_first=True ) From e52858035083d790e1aaa34e7e9251b64757d4d1 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 23 Nov 2026 20:23:39 +0900 Subject: [PATCH 4/6] fix: f-string --- dzgui/api/shortcuts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dzgui/api/shortcuts.py b/dzgui/api/shortcuts.py index 91f8b8fd..0c423383 100644 --- a/dzgui/api/shortcuts.py +++ b/dzgui/api/shortcuts.py @@ -128,7 +128,7 @@ class Shortcuts: except Exception: n = 0 self.shortcuts["shortcuts"][str(n)] = entry - logger.debug("Added shortcut at index {n}") + logger.debug(f"Added shortcut at index {n}") @classmethod def _create_entry(cls, meta: ShortcutMetadata) -> dict[str, Any]: From 4487833d99a33aa2b71c857d0fbf4a4b8c34a390 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 23 Nov 2026 20:23:55 +0900 Subject: [PATCH 5/6] chore: add debug logging --- dzgui/init/migrate.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dzgui/init/migrate.py b/dzgui/init/migrate.py index 3b2b8ce2..c16ae176 100644 --- a/dzgui/init/migrate.py +++ b/dzgui/init/migrate.py @@ -66,6 +66,7 @@ def copy_state_files(state_path: Path) -> None: ".month", ] if state_path == legacy: + logger.debug(f"Legacy state path '{legacy}' is identical to current") # TODO: log this return for file in legacy.iterdir(): From 1a4bc40cf6ef9c7eeedbcc9661dfc991405dce84 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 23 Nov 2026 20:24:23 +0900 Subject: [PATCH 6/6] drop: unused comment --- dzgui/init/migrate.py | 1 - 1 file changed, 1 deletion(-) diff --git a/dzgui/init/migrate.py b/dzgui/init/migrate.py index c16ae176..b16e05ba 100644 --- a/dzgui/init/migrate.py +++ b/dzgui/init/migrate.py @@ -67,7 +67,6 @@ def copy_state_files(state_path: Path) -> None: ] if state_path == legacy: logger.debug(f"Legacy state path '{legacy}' is identical to current") - # TODO: log this return for file in legacy.iterdir(): if file.name in to_copy: