Repository navigation
Cherry-pick #144: run-tests rejects unknown options before the -- separator - #145
Merged
rquidute merged 5 commits intoNov 23, 2026
Conversation
run-tests accepted any unknown option and forwarded it to the Python test runner as an extra test parameter, so a typo such as --prompt_timeout (instead of --prompt-timeout) only failed inside the SDK container, with the error visible only in the backend logs. Parse options before a literal -- strictly, so unknown options fail with "No such option" and a suggestion. Arguments after -- are still forwarded as test parameters. Closes #1215
Suite updates carry an errors list (e.g. a failed suite setup), but the CLI only printed the suite title and state, so the reason was visible only in the backend log. Print each suite error once. Related to #1215
Everything after -- is passed to the test runner, so an option of run-tests itself there (e.g. -- --prompt-timeout 5, or the --prompt_timeout typo) was either rejected by the runner deep inside the run or silently ignored. Fail up front and tell the user to pass it before the separator. The option names come from the command definition, so they cannot drift. Related to #1215
A long error glued to the header with ' - ' is hard to read. Put multi-line API error content below the header, and indent every line of a multi-line suite error. Related to #1215
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
|
This pull request is merged. |
antonio-amjr
approved these changes
Nov 23, 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.
Summary
Cherry-pick of #144 onto
v2.17-cli-develop. The original PR is not merged yet; this branch will need updating if review changes it.Closes #1215 together with the backend cherry-pick certification-tool-backend#422.
th-cli run-testssilently accepted any unknown option and forwarded it to the Python test runner, so a typo such as--prompt_timeoutonly failed deep inside the run.--are parsed strictly: unknown ones fail withNo such optionand a suggestion.run-testsoption placed after--(e.g.-- --prompt-timeout 5) fails with a hint to pass it before the separator.Full description and review discussion: #144.
Conflicts
None; the five commits applied cleanly. On this branch the same 5 tests fail as on the untouched
v2.17-cli-develop(config-file related, unrelated to this change); everything else passes.Behaviour change
Passing test parameters without
--(e.g.run-tests -t X --int-arg PIXIT.X:1) now errors. The help text and docs describe only the--form.