Bug 1038159 - Repeat build throws TB
Summary: Repeat build throws TB
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Copr
Classification: Community
Component: backend
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Adam Samalik
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-04 14:23 UTC by Miroslav Suchý
Modified: 2014-06-12 08:26 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-12 08:26:55 UTC


Attachments (Terms of Use)

Description Miroslav Suchý 2013-12-04 14:23:37 UTC
Description of problem:
When some job is stuck (started, but not finished) and you hit "Repeat" button. You will get traceback:
Message type:       ERROR
Location:           /usr/lib/python2.7/site-packages/flask/app.py:1306
Module:             app
Function:           log_exception
Time:               2013-12-04 14:16:06,722

Message:

Exception on /coprs/msuchy/foo/repeat_build/25/ [POST]
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1687, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1360, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1358, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python2.7/site-packages/flask/app.py", line 1344, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/share/copr/coprs_frontend/coprs/views/misc.py", line 121, in decorated_function
    return f(*args, **kwargs)
  File "/usr/share/copr/coprs_frontend/coprs/views/coprs_ns/coprs_builds.py", line 105, in copr_repeat_build
    setattr(new_build, a, getattr(build, a))
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/ext/associationproxy.py", line 270, in __set__
    self._set(proxy, values)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/ext/associationproxy.py", line 338, in _set
    proxy.extend(values)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/ext/associationproxy.py", line 576, in extend
    self.append(v)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/ext/associationproxy.py", line 567, in append
    item = self._create(value)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/ext/associationproxy.py", line 494, in _create
    return self.creator(value)
TypeError: __init__() takes exactly 1 argument (2 given)

Comment 1 Adam Samalik 2014-06-12 08:26:55 UTC
I couldn't reproduce this - there is no cancel button. However, I tried this directly with link .../repeat_build/<build-id> and it worked fine.


Note You need to log in before you can comment on or make changes to this bug.