Skip to content

test(cli): the concurrency help check passes on Python before 3.13 - #1069

Merged
xaleryb merged 1 commit into
intel:mainfrom
xaleryb:fix/f1b-help-test-argparse-formats
Nov 21, 2026
Merged

xaleryb merged 1 commit into
intel:mainfrom
xaleryb:fix/f1b-help-test-argparse-formats

Conversation

@xaleryb

@xaleryb xaleryb commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Push runs of ci.yml on main fail tests/test_cli_f1b_reps.py::test_help_shows_the_registry_metavar_not_the_old_name for repo run and eval check on 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 on main, 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 --help shows the registry's metavar N and 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); main needs both to be green.

Changes

  • tests/test_cli_f1b_reps.py: the three expected usages are patterns, matched with re.search; a docstring says why.

Testing

On the host, Python 3.12 (venv built from the locks) and 3.13:

  • test_cli_f1b_reps.py on main, Python 3.12: 2 failed (repo run, eval check). With this change: 26 passed on 3.12 and on 3.13.
  • Mutant at the definition (metavar="N" of --concurrency in repo run changed to JOBS): both cases fail on 3.12 and on 3.13, so the old name is still rejected.
  • ruff, check_comment_blocks.py and check_test_narrowing.py pass; test_cli_flags.py and test_cli_flag_moves.py pass 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 main after the merge does.

Revert

Revert the commit. Nothing outside tests/ changes.

Checklist

  • Tests added/updated and pytest passes
  • ruff, mypy, and schema checks pass (CI)
  • Docs updated (or N/A): N/A, tests only
  • Self-reviewed per "Before opening a PR" in AGENTS.md
  • No ad-hoc run artifacts committed
  • New files carry the SPDX license header (or are exempt in .github/.licenserc.yaml) (N/A: no new files)

`--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>
@exai-bot

exai-bot commented Nov 21, 2026 •

Copy link
Copy Markdown

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

CI at c29e6e9: 19 passing, 2 skipped.

Review details
  • Commit reviewed: c29e6e9 against merge base 763d7cd
  • Coverage: 1 files in 1 groups
  • Engine: OpenCodeReview v1.13.5-exai.4.8f73eada, us.openai.gpt-6.1-sol
  • Usage: 21k tokens (10k from cache), 4s
  • Tool calls: 1 (1 file_read)
  • dokimi/tests/test_cli_f1b_reps.py: 1 file

@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 95.90%. Comparing base (763d7cd) to head (c29e6e9).
⚠️ Report is 2 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

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     

see 8 files with indirect coverage changes

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

@xaleryb
xaleryb merged commit 1666fe7 into intel:main Nov 21, 2026
27 of 29 checks passed
@xaleryb
xaleryb deleted the fix/f1b-help-test-argparse-formats branch November 21, 2026 05:38
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