Skip to content

vaadin-bench.sh has no test suite, and a missing option value dies on an unbound variable #19

Description

@vesanieminen

vaadin-bench.sh does custom option parsing, glob selection, YAML filtering,
temporary config generation and command construction, with no focused tests.

The visible symptom, on main today:

$ ./vaadin-bench.sh -c
./vaadin-bench.sh: line 238: $2: unbound variable

An internal set -u failure rather than a usage error. Note the validation that
does exist is good — -k abc correctly says --attempts wants a positive integer, got 'abc' — so the gap is specifically an option present with its value missing.

Worth covering:

  • every option given without its value
  • selection: -c/-m/-t globs, substring matching for models, a pattern that
    matches nothing in one configuration but not others (select_optional)
  • the -- pass-through
  • temporary-file cleanup on success and on failure
  • local validation of --attempts, --concurrent, --timeout-multiplier

select_optional and check_recordings are both recent and both untested; the
first decides which trials run, the second gates the run entirely.

From the initial codebase review (finding 4). Findings 1, 2, 3 and 5 from that
review are closed by #11.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions