From acd2f232d73dfc5150d69513bb386c5225e9cd31 Mon Sep 17 00:00:00 2001 From: Vladislav Perevezentsev Date: Fri, 4 Dec 2026 03:43:37 -0700 Subject: [PATCH 1/2] fix(runs): import InputError from dokimi.files in runs/resolve upstream/main fails test_package_uses_the_new_modules: dokimi.runs.resolve imports InputError through the legacy dokimi.utils re-export. #1190 split utils into its defining modules and added the test; #1523 added the import. Each PR was green against its own base, so the failure appeared only after both merged. Import InputError from dokimi.files, where it is defined. It is the same class object, so nothing changes at runtime. Refs #1190, #1523 Signed-off-by: Vladislav Perevezentsev --- dokimi/dokimi/runs/resolve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dokimi/dokimi/runs/resolve.py b/dokimi/dokimi/runs/resolve.py index 0a20cf074..342cf39d1 100644 --- a/dokimi/dokimi/runs/resolve.py +++ b/dokimi/dokimi/runs/resolve.py @@ -18,6 +18,7 @@ from typing import Any from dokimi.artifacts import is_run_id, schema_errors +from dokimi.files import InputError from dokimi.runs.rundir import RUN_FILE from dokimi.runs.scan import ( Unreadable, @@ -29,7 +30,6 @@ scan, select, ) -from dokimi.utils import InputError @dataclass(frozen=True) From e8ca93c0a57b8efcc652ef1fe589f4b99f6aba39 Mon Sep 17 00:00:00 2001 From: Vladislav Perevezentsev Date: Fri, 4 Dec 2026 04:06:55 -0700 Subject: [PATCH 2/2] test(runs): import InputError from dokimi.files in test_runs_resolve #1523 added the legacy dokimi.utils import in the test too. #1190 moved the tests to the defining modules, so point this one at dokimi.files as well. test_package_uses_the_new_modules scans only the package, so it did not catch this one. Refs #1190, #1523 Signed-off-by: Vladislav Perevezentsev --- dokimi/tests/test_runs_resolve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dokimi/tests/test_runs_resolve.py b/dokimi/tests/test_runs_resolve.py index cd5634d0a..02a4b54b8 100644 --- a/dokimi/tests/test_runs_resolve.py +++ b/dokimi/tests/test_runs_resolve.py @@ -16,9 +16,9 @@ from dokimi import cli from dokimi.artifacts import RUN_ID_ENV, save_artifact +from dokimi.files import InputError from dokimi.runs.resolve import resolve, resolve_with from dokimi.runs.rundir import Status, open_run -from dokimi.utils import InputError FIXTURES = Path(__file__).resolve().parent / "fixtures" / "artifacts"