Repository navigation
node smoke: take full option names only (fixes main's exact-parser coverage test) - #927
Merged
Merged
Conversation
…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>
This was referenced Nov 26, 2026
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.
Fixes main:
tests/test_exact_option_names.py::test_every_entry_point_under_yeto_parses_full_names_onlyfails on main since #894 and #925 merged.Cause
#894 added
yeto/node/smoke.pywith a plainargparse.ArgumentParser. #925 merged after it, and its coverage test requires every parser underyeto/to be anExactArgumentParser.Change
yeto/node/smoke.pynow builds anExactArgumentParser. The smoke runs aspython -m yeto.node.smokeinside the adopted image, with the yeto tree available: it already importsyeto.rl.engine.engine_sampler_entry, andimage_smokestarts it throughnode.launch.container_argvwithmodule="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 plainArgumentParser(. The only remaining stdlib parsers are the three self-contained modules that setallow_abbrev=False:weights_sync,preflight/benchandcodepack.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.run up --dry-runfor everyexamples/k31/run*.jsonand the pool--dry-run, compared line by line with origin/main. 5 outputs were compared.🤖 Generated with Claude Code