Skip to content

Fix docker arguments in CLI#231

Open
kozlov721 wants to merge 2 commits into
fix/incorrect-archivesfrom
fix/benchmark-cli
Open

Fix docker arguments in CLI#231
kozlov721 wants to merge 2 commits into
fix/incorrect-archivesfrom
fix/benchmark-cli

Conversation

@kozlov721
Copy link
Copy Markdown
Collaborator

Purpose

Run benchmark and analyze commands outside of a docker container.

Specification

None / not applicable

Dependencies & Potential Impact

None / not applicable

Deployment Plan

None / not applicable

Testing & Validation

None / not applicable

AI Usage

Assisted-by: AGENT_NAME:MODEL_VERSION [TOOL1] [TOOL2]

Submitted code was reviewed by a human: YES/NO

The author is taking the responsibility for the contribution: YES/NO

@kozlov721 kozlov721 requested a review from a team as a code owner May 17, 2026 06:19
@kozlov721 kozlov721 requested review from conorsim, klemen1999 and tersekmatija and removed request for a team May 17, 2026 06:19
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 799d003b5a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".



@app.meta.command(group=device_commands)
@app.command(group=device_commands)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore analyze as a meta command for script entrypoint

Registering analyze with @app.command routes modelconverter analyze ... through launcher() when users run the installed modelconverter script (the entrypoint is modelconverter.__main__:app.meta in pyproject.toml). In that path, launcher() unconditionally reads bound.arguments["target"], but analyze has no target parameter, so this now raises a KeyError before analysis starts. Cyclopts meta-app behavior requires @app.meta.command to bypass the launcher.

Useful? React with 👍 / 👎.



@app.meta.command(group=device_commands)
@app.command(group=device_commands)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep benchmark outside launcher in installed CLI

Switching benchmark to @app.command also sends modelconverter benchmark ... through launcher() for normal installs (again because the console script calls app.meta), so it is wrapped by docker_exec(...) instead of running directly on the host. That defeats the change’s stated goal of running device commands outside Docker and can break benchmark/device access workflows that require host ADB/SSH visibility.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator

@klemen1999 klemen1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out Codex comments ^

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.

2 participants