Skip to content

test(cli): pin the output spellings kept with a reason (F1b output) - #1661

Open
napetrov wants to merge 1 commit into
intel:mainfrom
napetrov:feat/cli-f1b-output-3
Open

napetrov wants to merge 1 commit into
intel:mainfrom
napetrov:feat/cli-f1b-output-3

Conversation

@napetrov

@napetrov napetrov commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

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 # why row.

Spelling Leaves Kept because
--out-md docs check, docs compare, arms run, arms matrix-run, arms plugin-delta, subjects run, tasks run, explore run a second file beside --out
--items-out tools preference the expanded items, a second file beside --out
--no-json dashboard generate opts out of the second file dashboard.json
--results-dir dashboard generate an input directory of results, not an output; inputs has no directory-of-results canonical (--from RUN names one run)

For reference, --out-json on eval check is not moved: eval check takes a directory (--out-dir), not a file, and test_out_json_does_not_move_on_directory_only_leaves already pins it.

The --results-dir allowlist 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 as None for all eight --out-md leaves and for one argv each of --items-out, --no-json and --results-dir, and checks that the eight leaves are exactly the leaves whose parser takes --out-md. A move added to FLAG_MOVES for 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.py and test_cli_flags.py together: 308 passed after them.
  • Red: a temporary FlagMove("--items-out", ...) made the pin fail (1 failed); reverted.
  • Leaf walk of cli.build_parser(): the eight --out-md leaves 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.json change, so no cli-interface-change label.

Open question

A canonical for "a second file beside --out" would cover --out-md and --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

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>
@napetrov
napetrov requested a review from a team as a code owner December 6, 2026 06:29
Copilot AI balanced review requested due to automatic review settings December 6, 2026 06:29

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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-md leaf set.
  • Clarifies why --results-dir remains 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

@exai-bot

exai-bot commented Dec 6, 2026 •

Copy link
Copy Markdown

✅ OpenCodeReview: Review complete: 0 finding(s) across 2 selected item(s).

CI at 471bbb8: 19 passing, 3 skipped.

Review details
  • Commit reviewed: 471bbb8 against merge base 19e5222
  • Coverage: 2 files in 1 groups
  • Engine: OpenCodeReview v1.13.5-exai.4.8f73eada, us.openai.gpt-6.1-sol
  • Usage: 86k tokens (60k from cache), 7s
  • Tool calls: 9 (5 file_read, 2 code_search, 1 ci_status, 1 local_check_results)
  • small change set: 2 files

@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.43%. Comparing base (19e5222) to head (471bbb8).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

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     

see 6 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants