stestr 2.3.1 doesnt work well with ostestr 1.0.0

Bug #1827834 reported by Reedip
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
os-testr
Fix Committed
Undecided
Unassigned

Bug Description

After [1] merged into stestr 2.3.1, concurrency is expected to be an int but ostestr defaults to None resulting the below error:

Traceback (most recent call last):
  File ".../bin/ostestr", line 10, in <module>
    sys.exit(main())
  File ".../os_testr/ostestr.py", line 263, in main
    exit(ostestr(sys.argv[1:]))
  File ".../os_testr/ostestr.py", line 259, in ostestr
    return _select_and_call_runner(opts, regex, others)
  File ".../os_testr/ostestr.py", line 212, in _select_and_call_runner
    black_regex=opts.black_regex)
  File ".../os_testr/ostestr.py", line 167, in call_testr
    black_regex=black_regex)
  File ".../stestr/commands/run.py", line 334, in run_command
    concurrency = _to_int(concurrency)
  File ".../stestr/commands/run.py", line 39, in _to_int
    i = int(possible)
TypeError: int() argument must be a string or a number, not 'NoneType'

This issue seems to be fixed in [2], but the gate would be broken for networking-ovn till that is not released

[1]https://github.com/mtreinish/stestr/commit/c93bc81
[2]https://github.com/mtreinish/stestr/commit/ac8dac0

Revision history for this message
Reedip (reedip-banerjee-deactivatedaccount) wrote :
description: updated
Revision history for this message
Jakub Libosvar (libosvar) wrote :

This should have been reported against os-testr as networking-ovn doesn't do anything wrong.

no longer affects: networking-ovn
Revision history for this message
Tim Burke (1-tim-z) wrote :

Fixed in https://review.opendev.org/#/c/651275/

Still needs a release from either os-testr or stestr, though; until then `pip install os-testr` is going to continue to pull down bad versions.

Changed in os-testr:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.