Skip to content

node smoke: take full option names only (fixes main's exact-parser coverage test) - #927

Merged
michaellchung merged 1 commit into
mainfrom
fix/node-smoke-exact-argparse
Nov 26, 2026
Merged

michaellchung merged 1 commit into
mainfrom
fix/node-smoke-exact-argparse

Conversation

@michaellchung

Copy link
Copy Markdown
Contributor

Fixes main: tests/test_exact_option_names.py::test_every_entry_point_under_yeto_parses_full_names_only fails on main since #894 and #925 merged.

Cause

#894 added yeto/node/smoke.py with a plain argparse.ArgumentParser. #925 merged after it, and its coverage test requires every parser under yeto/ to be an ExactArgumentParser.

Change

yeto/node/smoke.py now builds an ExactArgumentParser. The smoke runs as python -m yeto.node.smoke inside the adopted image, with the yeto tree available: it already imports yeto.rl.engine.engine_sampler_entry, and image_smoke starts it through node.launch.container_argv with module="yeto.node.smoke". It is therefore not a stdlib-only single file, and the exact parser applies.

A grep of yeto/ on main finds no other plain ArgumentParser(. The only remaining stdlib parsers are the three self-contained modules that set allow_abbrev=False: weights_sync, preflight/bench and codepack.

Checks

  • test_exact_option_names, test_image_smoke, test_smoke_scripts, the image adopt and node launch tests, and the 52 customer goldens: 269 passed.
  • customer dry-run diff: none. That covers run up --dry-run for every examples/k31/run*.json and the pool --dry-run, compared line by line with origin/main. 5 outputs were compared.
  • The full suite was not run for this one-file fix.

🤖 Generated with Claude Code

…verage test)

yeto/node/smoke.py (#894) built a plain argparse.ArgumentParser and
landed after #925, whose coverage test requires every parser under yeto/
to be an ExactArgumentParser. The smoke runs as `python -m yeto.node.smoke`
inside the adopted image with the yeto tree (it imports
yeto.rl.engine.engine_sampler_entry), so it takes the exact parser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant