Repository navigation
test(cli): the concurrency help check passes on Python before 3.13 - #1069
Merged
Merged
Conversation
`--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 intel#957 passed. The pattern now accepts both renderings and still rejects the old metavar. Signed-off-by: Alexander Rybkin <alexander.rybkin@intel.com>
6 tasks done
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 1 selected item(s). CI at Review details
|
napetrov
approved these changes
Nov 21, 2026
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1069 +/- ##
==========================================
- Coverage 95.92% 95.90% -0.02%
==========================================
Files 449 449
Lines 59468 59472 +4
Branches 10252 10253 +1
==========================================
- Hits 57042 57039 -3
- Misses 1508 1511 +3
- Partials 918 922 +4 🚀 New features to boost your workflow:
|
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
Push runs of
ci.ymlonmainfailtests/test_cli_f1b_reps.py::test_help_shows_the_registry_metavar_not_the_old_nameforrepo runandeval checkon Python 3.11 and 3.12 (assert '--concurrency, -j N' in 'usage: dokimi repo run ...'). Pull requests run Python 3.14 only, so #957 passed its checks and the break shows only onmain, where the whole version matrix runs.The test looks for
--concurrency, -j N, which is what argparse prints from Python 3.13. Before that it repeats the metavar after each option string:--concurrency N, -j N. What the test guards is that--helpshows the registry's metavarNand not the old name, so the expected text is now a pattern,--concurrency(?: N)?, -j N, that accepts both renderings.This is independent of the failures from a missing git identity on hosted runners (separate pull request);
mainneeds both to be green.Changes
tests/test_cli_f1b_reps.py: the three expected usages are patterns, matched withre.search; a docstring says why.Testing
On the host, Python 3.12 (venv built from the locks) and 3.13:
test_cli_f1b_reps.pyonmain, Python 3.12: 2 failed (repo run,eval check). With this change: 26 passed on 3.12 and on 3.13.metavar="N"of--concurrencyinrepo runchanged toJOBS): both cases fail on 3.12 and on 3.13, so the old name is still rejected.check_comment_blocks.pyandcheck_test_narrowing.pypass;test_cli_flags.pyandtest_cli_flag_moves.pypass on 3.12.The checks of this pull request run on Python 3.14 only, so they do not exercise the fixed case; the first push run on
mainafter the merge does.Revert
Revert the commit. Nothing outside
tests/changes.Checklist
pytestpassesruff,mypy, and schema checks pass (CI)AGENTS.md.github/.licenserc.yaml) (N/A: no new files)