Skip to content

[Bug]: Python streaming LoadTests failing since July 8 #22422

Closed

Description

@TheNeuralBit

What happened?

https://ci-beam.apache.org/job/beam_LoadTests_Python_ParDo_Dataflow_Streaming/

06:01:37                      [--input_options INPUT_OPTIONS] [--timeout_ms TIMEOUT_MS]
06:01:37                      [--iterations ITERATIONS]
06:01:37                      [--number_of_counter_operations NUMBER_OF_COUNTER_OPERATIONS]
06:01:37                      [--number_of_counters=0 NUMBER_OF_COUNTERS=0]
06:01:37 pardo_test.py: error: argument --number_of_counters=0: expected one argument

Issue Priority

Priority: 1

Issue Component

Component: build-system

Activity

  1. TheNeuralBit commented on Jul 23, 2022

    @TheNeuralBit
    MemberAuthor

    Looks like this started with 20949a9,

  2. self-assigned this
    on Jul 23, 2022
  3. TheNeuralBit commented on Jul 23, 2022

    @TheNeuralBit
    MemberAuthor

    This is a gross one.

    The problem is the space in the argument --experiments=use_runner_v2, shuffle_mode=appliance

    shuffle_mode=appliance is being interpreted as a separate argument because there's a space and it's not quoted. Then after we parse the known arguments we're left with the unknown_args:

    ['--iterations=10', '--number_of_counter_operations=0', '--number_of_counters=0', 'shuffle_mode=appliance']
    

    The logic interprets shuffle_mode=appliance as the argument for an option with name number_of_counters=0.

    We can fix by changing use_runner_v2, shuffle_mode=appliance, use_runner_v2,shuffle_mode=appliance, or nmore generally by adding quoting logic in LoadTestsBuilder.groovy. We should also adjust the retain_unknown_options logic. It's bad that it assumes the arguments are consecutive.

  4. tvalentyn commented on Jul 23, 2022

    @tvalentyn
    Contributor
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