Project

General

Profile

Actions

tickets #125453

closed

osc crashing when selecting rejection reason

Added by mrohrich about 1 year ago. Updated 8 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2023-03-06
Due date:
% Done:

0%

Estimated time:
Relevance:
P5

Description

│ ~ │► osc -A https://api.suse.de -H qam reject SUSE:Maintenance:25682:291406
139784096269200. Administrative (e.g. pack more fixes into the updates)
139784096269592. Retracted (e.g. fix not needed)
139784096269536. Build problem (e.g. wrong rpm $version-$release)
139784096269872. Issues not fixed (e.g. incomplete back-port or upstream fix)
139784096270152. Regression (e.g. run-time regression or installation issues)
139784096269256. False reject (e.g. spoiled results due to test setup error)
139784096269368. Incident tracking issue (e.g. bad bug list or issues with patchinfo metadata)
q. Quit
Please specify the options (separate multiple values with ,): Regression
Traceback (most recent call last):
  File "/usr/bin/osc", line 45, in <module>
    r = babysitter.run(osccli)
  File "/usr/lib/python3.6/site-packages/osc/babysitter.py", line 67, in run
    return prg.main(argv)
  File "/usr/lib/python3.6/site-packages/osc/cmdln.py", line 349, in main
    return self.cmd(args)
  File "/usr/lib/python3.6/site-packages/osc/cmdln.py", line 372, in cmd
    retval = self.onecmd(argv)
  File "/usr/lib/python3.6/site-packages/osc/cmdln.py", line 506, in onecmd
    return self._dispatch_cmd(handler, argv)
  File "/usr/lib/python3.6/site-packages/osc/cmdln.py", line 1237, in _dispatch_cmd
    return handler(argv[0], opts, *args)
  File "/usr/lib/osc-plugins/qam.py", line 652, in do_qam
    ret = interp.onecmd(sys.argv[index + 1 :])
  File "/usr/lib/python3.6/site-packages/osc/cmdln.py", line 506, in onecmd
    return self._dispatch_cmd(handler, argv)
  File "/usr/lib/python3.6/site-packages/osc/cmdln.py", line 1237, in _dispatch_cmd
    return handler(argv[0], opts, *args)
  File "/usr/lib/osc-plugins/qam.py", line 464, in do_reject
    else self.query_enum(RejectReason, lambda r: r.enum_id, lambda r: r.text)
  File "/usr/lib/osc-plugins/qam.py", line 430, in query_enum
    numbers = [int(s.strip()) for s in user_input.split(",")]
  File "/usr/lib/osc-plugins/qam.py", line 430, in <listcomp>
    numbers = [int(s.strip()) for s in user_input.split(",")]
ValueError: invalid literal for int() with base 10: 'Regression'
Actions #1

Updated by mrohrich about 1 year ago

When instead of entering the reject reason as String, I enter them as a number, the error changes, but osc still crashes:

│ ~ │► osc -A https://api.suse.de -H qam reject SUSE:Maintenance:25682:291406
140688841442192. Administrative (e.g. pack more fixes into the updates)
140688841442584. Retracted (e.g. fix not needed)
140688841442528. Build problem (e.g. wrong rpm $version-$release)
140688841442864. Issues not fixed (e.g. incomplete back-port or upstream fix)
140688841443144. Regression (e.g. run-time regression or installation issues)
140688841442248. False reject (e.g. spoiled results due to test setup error)
140688841442360. Incident tracking issue (e.g. bad bug list or issues with patchinfo metadata)
q. Quit
Please specify the options (separate multiple values with ,): 4
Traceback (most recent call last):
  File "/usr/bin/osc", line 45, in <module>
    r = babysitter.run(osccli)
  File "/usr/lib/python3.6/site-packages/osc/babysitter.py", line 67, in run
    return prg.main(argv)
  File "/usr/lib/python3.6/site-packages/osc/cmdln.py", line 349, in main
    return self.cmd(args)
  File "/usr/lib/python3.6/site-packages/osc/cmdln.py", line 372, in cmd
    retval = self.onecmd(argv)
  File "/usr/lib/python3.6/site-packages/osc/cmdln.py", line 506, in onecmd
    return self._dispatch_cmd(handler, argv)
  File "/usr/lib/python3.6/site-packages/osc/cmdln.py", line 1237, in _dispatch_cmd
    return handler(argv[0], opts, *args)
  File "/usr/lib/osc-plugins/qam.py", line 652, in do_qam
    ret = interp.onecmd(sys.argv[index + 1 :])
  File "/usr/lib/python3.6/site-packages/osc/cmdln.py", line 506, in onecmd
    return self._dispatch_cmd(handler, argv)
  File "/usr/lib/python3.6/site-packages/osc/cmdln.py", line 1237, in _dispatch_cmd
    return handler(argv[0], opts, *args)
  File "/usr/lib/osc-plugins/qam.py", line 464, in do_reject
    else self.query_enum(RejectReason, lambda r: r.enum_id, lambda r: r.text)
  File "/usr/lib/osc-plugins/qam.py", line 435, in query_enum
    return [enum.from_ids(i) for i in numbers]
  File "/usr/lib/osc-plugins/qam.py", line 435, in <listcomp>
    return [enum.from_ids(i) for i in numbers]
  File "/usr/lib64/python3.6/enum.py", line 326, in __getattr__
    raise AttributeError(name) from None
AttributeError: from_ids
Actions #2

Updated by GraceWang 8 months ago

@mrohrich I am afraid this is not the correct place for this ticket since we are using the project "QE-Workstation" only for Desktop manual test cases.

After a quick glance at the description and with the info from colleage, this should be a bug for osc.
Not sure if this issue can still be reproduced right now. If yes, can you please file a bug for osc (maybe here: https://github.com/openSUSE/osc/issues)

If you don't mind, I will set the status to REJECTED.

Actions #3

Updated by mrohrich 8 months ago

Hi Grace,
sorry for filing this bug in the wrong place. Please set go ahead and the status to rejected.

For anyone who encounters the same issue and ends up here, this is half bug half user issue. The rejection reason can be selected successfully by passing the -R $REASON parameter on the command line.

Actions #4

Updated by GraceWang 8 months ago

  • Status changed from New to Rejected

Set the status to REJECTED based on above comments.

Actions

Also available in: Atom PDF