Skip to content

[Bug]: retain_unknown_options incorrectly assumes unknown arguments are consecutive #22434

Open

Description

@TheNeuralBit

What happened?

See #22422

retain_unknown_options first parses all known arguments, then parses the unknown arguments assuming they are consecutive. To illustrate this issue, let's look at this execution:

run_pipeline.py --unknown_arg --known_arg=foo bar

We first parse the known arguments, and are left with unknown_args = ['--unknown_arg', 'bar']. Our logic then assumes bar is the value for an unknown option called unknown_arg.

Issue Priority

Priority: 2

Issue Component

Component: sdk-py-core

Activity

  1. Thanatos9404 commented on Oct 18, 2026

    @Thanatos9404
    Contributor

    .take-issue

  2. added 6 commits that reference this issue on Oct 21, 2026
    6bd5f33
    ff664f7
    fddb45b
    c428efc
    a035011
    5659c17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions