Bug 32716 - Bugzilla not updated after git change
Summary: Bugzilla not updated after git change
Status: RESOLVED FIXED
Alias: None
Product: Infrastructure
Classification: Unclassified
Component: Others (show other bugs)
Version: unspecified
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Sysadmin Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-13 07:00 CET by Dan Fandrich
Modified: 2024-01-15 23:47 CET (History)
1 user (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Dan Fandrich 2024-01-13 07:00:18 CET
The Mageia Robot has stopped updating bugs with bug references found in git commits. It seems to have stopped in 2018, as the last bug I can find with an update is #22928.

During a git submit, the log shows this:

remote: Sending notification emails to: sysadmin-commits@ml.mageia.org
remote: Unable to post to bugzilla bugs: 12220 :(
Comment 1 Dan Fandrich 2024-01-13 07:15:28 CET
Enabling logging of the exception cause makes the problem obvious:

remote: Sending notification emails to: sysadmin-commits@ml.mageia.org
remote: Unable to post to bugzilla bugs: 32716 :(
remote: Traceback (most recent call last):
remote:   File "hooks/post-receive", line 182, in generate_email_body
remote:     self.bugzilla_call(bz.Bug.update, params)
remote:   File "hooks/post-receive", line 125, in bugzilla_call
remote:     return method(*args)
remote:   File "/usr/lib64/python2.7/xmlrpclib.py", line 1243, in __call__
remote:     return self.__send(self.__name, args)
remote:   File "/usr/lib64/python2.7/xmlrpclib.py", line 1602, in __request
remote:     verbose=self.__verbose
remote:   File "/usr/lib/python2.7/site-packages/bugz/bugzilla.py", line 56, in request
remote:     return self.parse_response(resp)
remote:   File "/usr/lib64/python2.7/xmlrpclib.py", line 1493, in parse_response
remote:     return u.close()
remote:   File "/usr/lib64/python2.7/xmlrpclib.py", line 800, in close
remote:     raise Fault(**self._stack[0])
remote: Fault: <Fault 32000: 'The cookies or token provide were not valid or have expired. You may login again to get new cookies or a new token.'>
Comment 2 Mageia Robot 2024-01-13 07:33:08 CET
commit eeae5efcc9f62baf2bf40e3c1ba0b22455bb9e51
Author: Dan Fandrich <danf@...>
Date:   Fri Jan 12 22:08:54 2024 -0800

    Add debug logging to git Bugzilla update code (mga#32716)
---
 Commit Link:
   https://gitweb.mageia.org/infrastructure/puppet/commit/?id=eeae5efcc9f62baf2bf40e3c1ba0b22455bb9e51
Comment 3 Mageia Robot 2024-01-13 07:36:50 CET
commit 071fa3f63c14e33cbfcb82883fcab840371a683c
Author: Dan Fandrich <danf@...>
Date:   Fri Jan 12 22:08:54 2024 -0800

    Add error logging to git Bugzilla update code (mga#32716)
---
 Commit Link:
   https://gitweb.mageia.org/infrastructure/puppet/commit/?id=071fa3f63c14e33cbfcb82883fcab840371a683c
Comment 4 Dan Fandrich 2024-01-13 07:38:09 CET
The robot's Bugzilla token was expired/invalidated, so I deleted /var/lib/git/.gitzilla-authtoken and it was automatically regenerated on the next access.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 5 Mageia Robot 2024-01-13 11:29:11 CET
commit 13cf58aeaa7acc1c7fd4320cf6983c619db1c534
Author: Dan Fandrich <dan@...>
Date:   Sat Jan 13 01:38:32 2024 -0800

    Next comment (mga#32716)
---
 Commit Link:
   https://gitweb.mageia.org/test-hook-repo/commit/?id=13cf58aeaa7acc1c7fd4320cf6983c619db1c534
Comment 6 Mageia Robot 2024-01-15 20:14:05 CET
commit 8b3688f0585bc699a027237e8d6a79eb04188538
Author: Dan Fandrich <dan@...>
Date:   Mon Jan 15 11:12:55 2024 -0800

    py3 test 2 (mga#32716)
---
 Commit Link:
   https://gitweb.mageia.org/.git/commit/?id=8b3688f0585bc699a027237e8d6a79eb04188538
Comment 7 Mageia Robot 2024-01-15 20:31:09 CET
commit 3d6b74e179c1fa0f344ade26e6ca81fd4a70acdb
Author: Dan Fandrich <dan@...>
Date:   Mon Jan 15 11:28:22 2024 -0800

    py3 test 3 (mga#32716)
---
 Commit Link:
   https://gitweb.mageia.org/.git/commit/?id=3d6b74e179c1fa0f344ade26e6ca81fd4a70acdb
Comment 8 Mageia Robot 2024-01-15 20:50:55 CET
commit 05de95733f30b044e66770280a25ffeae8cb699a
Author: Dan Fandrich <dan@...>
Date:   Mon Jan 15 11:50:20 2024 -0800

    py3 i18n test 5 (mga#32716)
---
 Commit Link:
   https://gitweb.mageia.org/.git/commit/?id=05de95733f30b044e66770280a25ffeae8cb699a
Comment 9 Mageia Robot 2024-01-15 23:47:14 CET
commit c6f7a488eeab906255ef001db1a9ec88da4cc636
Author: Dan Fandrich <danf@...>
Date:   Mon Jan 15 14:46:09 2024 -0800

    py3 Bugzilla integration test (mga#32716)
---
 Commit Link:
   https://gitweb.mageia.org/infrastructure/puppet/commit/?id=c6f7a488eeab906255ef001db1a9ec88da4cc636

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