Repository navigation
cli: reps and concurrency flags have one spelling each (F1b, part of #94) - #957
Conversation
…ntel#94) Repetitions of one cell are --reps. The old spellings --repeats (tasks run), --work-repeats (subjects run), --multi-run (benchmark run) and --trials (catalog trigger-probe) move there and tombstone with exit 2. How much runs at once is --concurrency, with -j kept as its short form. The old --jobs (catalog check, eval check, repo run) moves there and tombstones. Each old spelling counted the same thing on its leaf, so values are unchanged. JSON output keys are unchanged. --typed-threads, --min-reps, ci_local --jobs and harbor --jobs-dir keep their meaning and stay on the allowlist with reasons. Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 33 selected item(s). CI at Test notes (2)
Review details
|
CLI interface change detectedThis PR changes dokimi's user-facing CLI surface (commands and/or options): ~ `dokimi benchmark run` parameters changed:
- removed option `--multi-run`
+ added option `--reps`
~ `dokimi catalog check` parameters changed:
- removed option `--jobs`
+ added option `--concurrency`
~ `dokimi catalog trigger-probe` parameters changed:
- removed option `--trials`
+ added option `--reps`
~ `dokimi eval check` parameters changed:
- removed option `--jobs/-j`
+ added option `--concurrency/-j`
~ `dokimi repo run` parameters changed:
- removed option `--jobs/-j`
+ added option `--concurrency/-j`
~ `dokimi subjects run` parameters changed:
- removed option `--work-repeats`
+ added option `--reps`
~ `dokimi tasks run` parameters changed:
- removed option `--repeats`
+ added option `--reps`Updated on every push; the |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #957 +/- ##
==========================================
- Coverage 95.89% 95.87% -0.02%
==========================================
Files 448 448
Lines 59289 59291 +2
Branches 10224 10224
==========================================
- Hits 56853 56848 -5
- Misses 1514 1517 +3
- Partials 922 926 +4
🚀 New features to boost your workflow:
|
Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
Signed-off-by: Vladislav Perevezentsev <vladislav.perevezentsev@intel.com>
vlad-perevezentsev
left a comment
There was a problem hiding this comment.
LGTM
I checked 88c297f. The renames are right: each old spelling moves only on the leaves that had it, every new flag parses to the dest the handler reads, and the JSON keys stay. The small points I had are fixed in this branch (below).
Merge: after a rebase: it conflicts with current main in tests/test_repo_batch_lifecycle.py, where #949 rewrote a Ctrl-C test; keep main's lines with --concurrency for --jobs. On that merge the lifecycle, CLI-flag and catalog JSONL tests pass. Once it is in, #955, #954, #956, #958, #781, #787, #848 and #845 conflict with it and need a rebase. Two break with no textual conflict: #956's test_schema_only_refuses_the_self_check_options passes eval check --jobs 2, which now prints moved:, and #840 / #846 add a --jobs flag to catalog novelty, which the flag contract refuses once --jobs leaves the allowlist; both need --concurrency.
What I ran, at 88c297f:
make ci-local --offline: 0 failed, 25 passed, 20 skipped (network-only jobs); tests 23,742 passed, 72 skipped.- Old and new spellings on this head and on d2790e1: every exact old spelling exits 2 with the
moved:line. A prefix of one (--repeat,--job,--multi,--work-rep) parsed on the base and now exits 2 without it. That is howmoved_flags_argvon main matches, so it goes to an issue, not to this PR. - Dropped
dest="work_repeats"fromsubjects run --reps:test_subjects.pyfails, so the dest is covered. - CI's
external-catalog-smokecommand (docker-oracle,docker-probe): 1/1 pass each.
Checked, no issues
- Moves:
tasks run --jobsandsubjects run --repeatsare not moved, and nothing after--is; on the base, each old spelling was on the moved leaves only. - Docs and changelog: no doc or README names an old spelling any more. The
.agent-evaltaskrename-cli-flagis pinned to an older base, so it is not affected. The fragment says what changed and what to type.
Fixed in this branch, up to 88c297f:
--helpshowed the retired names as the value placeholder (--reps TRIALS,--concurrency, -j JOBS): bfcc285 passesmetavar="N"at the five calls, and a test checks the help of all seven leaves.- The BenchFlow comment lost the note that its help calls
--retry-attempts"Reserved": 60a9274 and 88c297f bring it back, in two lines, so the growth baseline stays. subjects run --repsdid not say it repeats onlysuite.tasks: 5505dc1 says so in the help, and that the arms matrix runs once.- The tombstone cases re-checked the whole registry seven times: 5b57ebf drops it;
test_registry_data_is_consistentalready checks it once.
The new help test fails on daf705d for the six leaves it fixes.
Signed-off-by: Nikolay Petrov <nikolay.a.petrov@intel.com>
…1069) `--concurrency, -j N` is what argparse prints from Python 3.13; before that it repeats the metavar, `--concurrency N, -j N`. The check looked for the first form only, so it failed on Python 3.11 and 3.12 and has kept push runs of ci.yml on main red, where the whole version matrix runs. Pull requests run 3.14 only, so #957 passed. The pattern now accepts both renderings and still rejects the old metavar. Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com>
Part of #94 (F1b, reps + concurrency concepts). Does not close #94.
Summary
Repetitions of one cell get one spelling,
--reps. How much runs at once gets--concurrency, with-jkept as its short form. The old spellings are tombstoned: they exit 2 and print the new command. Values, meanings and JSON keys do not change.tasks run--repeats--repssubjects run--work-repeats--repsbenchmark run--multi-run--repscatalog trigger-probe--trials--repscatalog check--jobs--concurrencyeval check--jobs--concurrency(-jkept)repo run--jobs--concurrency(-jkept)Each old spelling was on its one leaf only (checked by walking the parser on base and head), so the move is limited to that leaf; elsewhere the old spelling is not tombstoned, as before.
Evidence
tests/test_cli_f1b_reps.py: each old spelling tombstones with the new argv; canonical spellings and old spellings on leaves that never had them are not moved; the moved values parse to the same destinations.tests/test_cli_flags.pyratchet: banned spellings removed from the allowlist;--typed-threadsand--min-repskept with reasons.docs/reference/cli-interface.jsonregenerated withmake cli-snapshot.Merge danger
Scripts and docs that still say
--repeats,--work-repeats,--multi-run,--trialsor--jobson the leaves above stop running with exit 2. The tombstone prints the new command. Prefix abbreviations of the old spellings (--repeat,--job) no longer parse, and--reis now ambiguous onbenchmark runandsubjects run(it is a prefix of the new--reps).Not in this PR
--typed-threads(torch intra-op threads),--min-reps(a gate threshold),--threads FILEoneval tasks generate(an input file), harbor/benchflow--jobs-dir(external),ci_local.py --jobs(a separate parser): different meanings, kept on the allowlist with reasons.--repsand--concurrencyon other leaves (routing_parser,tools,answers,arms,evaluate,benchmark, ...) are F1c's sweep; they are on base too.20261111_180000_napetrov_repo-batch-lifecycle.md,20261114_140000_*) still name--jobs; a release-notes follow-up.🤖 Generated with Claude Code