Repository navigation
Conversation
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 264 selected item(s). CI at Test notes (2)
Review details
|
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1190 +/- ##
==========================================
- Coverage 96.08% 96.08% -0.01%
==========================================
Files 495 499 +4
Lines 65330 65362 +32
Branches 11327 11327
==========================================
+ Hits 62775 62802 +27
- Misses 1580 1582 +2
- Partials 975 978 +3
🚀 New features to boost your workflow:
|
vlad-perevezentsev
left a comment
There was a problem hiding this comment.
🟡 Changes needed · reviewed b5c0a1b
To fix: removing dokimi.utils outright breaks open PRs that merge without a conflict (line comment); the import-style nit is optional. The branch also needs a rebase: it conflicts with current main in repos/source.py (one import line, from #1139).
✅ make ci-local --offline: 28,236 passed, mutation and changed-line coverage pass · ✅ all 45 definitions of the old utils.py are AST-identical in the new modules, one home each · ✅ no dokimi.utils left in code or docs
The split is clean and the new module names say what each one holds.
The @exai-bot test notes on model_names.py:63 and :67 are about code moved here unchanged, so they belong to a separate test change, not to this PR.
…t, model_names Pure move, no logic edits. The 800-line utils module is split by concern: - dokimi.frontmatter: markdown frontmatter parsing - dokimi.files: InputError, device refusal, JSON input reads, symlink-loop and rmtree-retry helpers - dokimi.digest: text, file and git-aware tree digests - dokimi.model_names: model identity, same-model/evaluator checks and the judge-independence warnings - dokimi.records: question_id moves here beside the record helpers Importers in the package, scripts, fuzz targets and tests point at the new homes directly. dokimi.utils has no shim: it is not public API. The layer map in tests/test_import_architecture.py lists the new foundation modules. Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8673s4g Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Thread: PRRT_kwDOVBg7g8673s4q Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com> # Conflicts: # dokimi/dokimi/repos/reach.py
|
Re: review by vlad-perevezentsev
|
Summary
Splits the 800-line
dokimi/utils.pyby concern. Pure move, no logic edits.dokimi.frontmatterparse_frontmatter,parse_frontmatter_strict,describe_yaml_error)dokimi.filesInputError,read_json_input,refuse_device, symlink-loop and rmtree-retry helpersdokimi.digesttree_digest,GitTree,key_bytes, ...)dokimi.model_namesdokimi.recordsquestion_iddokimi.utilskeeps compatibility imports for the moved names. Importers in the package, scripts, fuzz targets and tests point at the new homes. The changelog lists the new import locations.Evidence
ruff checkclean;check_growth.pypasses (pipeline.py stays at 800 lines).tests/test_import_architecture.py54 passed; full pytest 28290 passed, one monkeypatch target fixed in this PR.Merge danger
.github/workflows/fuzz.ymlpaths now listfiles.py,records.py,digest.py,model_names.py, so changes to them start the fuzz job asutils.pychanges did.yaml_unique.py(imported byfrontmatter.py) is not in the fuzz path filter.🤖 Generated with Claude Code