Repository navigation
Conversation
The four output spellings still allowlisted (--out-md, --results-dir, --items-out, --no-json) each name a second file beside --out or an input directory, and no canonical has that meaning. They stay with their reason; a test now fails if a move is added for one of them without revisiting the reason. --out-json on eval check stays unmoved: eval check takes a directory (--out-dir), not a file. Part of intel#94 (F1b, output remainder: decided, nothing moved) Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues requiring changes.
No open issues 🎉
What changed in this PR
0 new findings; nothing to fix.
This PR pins CLI output spellings retained under #94 because existing canonical flags do not express their meanings. Runtime behavior is unchanged.
Changes:
- Adds regression tests for retained spellings and checks the complete
--out-mdleaf set. - Clarifies why
--results-dirremains allowlisted.
| File | Description |
|---|---|
dokimi/tests/test_cli_flag_moves.py |
Pins retained flags against migration and verifies parser coverage. |
dokimi/tests/data/cli_flags_allowlist.txt |
Clarifies the input-directory rationale for --results-dir. |
Review effort: Balanced
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 2 selected item(s). CI at Review details
|
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1661 +/- ##
==========================================
- Coverage 96.44% 96.43% -0.01%
==========================================
Files 585 585
Lines 76600 76600
Branches 13175 13175
==========================================
- Hits 73876 73871 -5
Misses 1671 1671
- 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
F1b output remainder, decided. Nothing moves. The four allowlisted output-family spellings (
--out-md,--items-out,--no-json,--results-dir) each name something no canonical says, so each keeps its# whyrow.--out-md--out--items-out--out--no-jsondashboard.json--results-dirinputshas no directory-of-results canonical (--from RUNnames one run)For reference,
--out-jsononeval checkis not moved:eval checktakes a directory (--out-dir), not a file, andtest_out_json_does_not_move_on_directory_only_leavesalready pins it.The
--results-dirallowlist row now says why it has no move, instead of pointing at an inputs decision that is not pending. A new test pins the moved-flag check asNonefor all eight--out-mdleaves and for one argv each of--items-out,--no-jsonand--results-dir, and checks that the eight leaves are exactly the leaves whose parser takes--out-md. A move added toFLAG_MOVESfor any of them fails there first. A rename of any of them fails the leaf-set test.Evidence
tests/test_cli_flags.py,tests/test_cli_flag_moves.py,tests/test_cli_output.py: 437 passed before the leaf-check additions;test_cli_flag_moves.pyandtest_cli_flags.pytogether: 308 passed after them.FlagMove("--items-out", ...)made the pin fail (1 failed); reverted.cli.build_parser(): the eight--out-mdleaves each take--out.make ci-local CI_LOCAL_ARGS="--offline --jobs static,typecheck": 0 failed, 17 passed, 3 skipped.Merge danger
None. Test and allowlist comment only; no parser, route, or
cli-interface.jsonchange, so nocli-interface-changelabel.Open question
A canonical for "a second file beside
--out" would cover--out-mdand--items-out(nine leaves). Not added here: it is a new concept and needs a decision. Recommendation: keep the rows as they are.Part of #94 (F1b, output remainder). #94 stays open.
🤖 Generated with Claude Code