Repository navigation
Conversation
… reader The commands grader had its own copy of the run-record checks (missing, not an object, the framework's problem key). It now calls run_record.read_run_record, as hidden_tests and mutation do, and keeps only its own check that the record has groups. Same messages, same order. Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the refactor that reuses the shared run-record reader.
No open issues 🎉
What changed in this PR
0 new findings; nothing to fix.
This internal refactor makes the commands grader reuse the shared run-record reader without changing its validation messages or order.
Changes:
- Replace duplicated record checks with
read_run_record, retaining commands-specificgroupsvalidation. - Add a changelog fragment documenting the behavior-preserving refactor.
| File | Description |
|---|---|
dokimi/dokimi/repos/graders/command.py |
Delegate common validation to the shared reader. |
dokimi/changelog.d/20261205_130000_napetrov_arch-r14-3a.md |
Document the internal refactor. |
Review effort: Balanced
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 2 selected item(s). CI at Review details
|
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1663 +/- ##
==========================================
- Coverage 96.44% 96.43% -0.01%
==========================================
Files 585 585
Lines 76600 76592 -8
Branches 13175 13172 -3
==========================================
- Hits 73876 73861 -15
- Misses 1671 1673 +2
- Partials 1053 1058 +5
🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The commands grader kept its own copy of the run-record checks (missing file, not an object, the framework's
problemkey). It now callsrun_record.read_run_record, ashidden_testsandmutationalready do, and keeps only its own check that the record hasgroups. Same messages, same order.The refactor is internal: no CLI flag, file format or public name changes.
Evidence
test_grader_characterization.py,test_repo_command_grader.py,test_repo_builtin_graders.py,test_repo_mutation_grader.py,test_repo_typecheck_grader.py,test_unloaded_hidden_unicode.py): 333 passed.ci-local --offline --jobs static,typecheckon the head: 0 failed, 17 passed, 3 skipped.Merge Danger
Door: two-way. No schema, file or CLI change; a revert restores the local copy.
Blast Radius: only
commandsgrader runs, through the record reader. The three error messages are the same text as before.🤖 Generated with Claude Code