On Wed, Sep 07, 2016 at 10:28:41AM -0400, Justin W. Flory wrote: > Hi all, > > I've been getting a few hundred of these types of emails every day. Does > anyone have any idea what might be going on with this? I'm not familiar with > what's happening here. > > > Message > ------- > [2016-09-07 11:08:46][moksha.hub ERROR] > Rule: <fedbadges.models.BadgeRule: {'name': 'Long Life to Pagure (Pagure > I)', 'creator': 'robyduck', 'discussion': > 'https://fedorahosted.org/fedora-badges/ticket/434', 'issuer_id': > 'fedora-project', 'trigger': {'topic': 'pagure.git.receive'}, 'image_url': > 'https://badges.fedoraproject.org/pngs/pagure-long-life-01.png', 'criteria': > {'datanommer': {'filter': {'topics': ['%(topic)s'], 'users': > ['%(msg.commit.username)s']}, 'operation': 'count', 'condition': {'greater > than or equal to': 1}}}, 'badge_id': 'long-life-to-pagure-pagure-i', > 'recipient': '%(msg.commit.username)s', 'description': 'Pushed 1 commit to a > Pagure repository.'}>, message: {u'username': u'git', u'certificate': u'LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUVTRENDQTdHZ0F3SUJBZ0lDQWZzd0RRWUpL\nb1pJaHZjTkFRRUZCUUF3Z2FBeEN6QUpCZ05WQkFZVEFsVlQKTVFzd0NRWURWUVFJRXdKT1F6RVFN\nQTRHQTFVRUJ4TUhVbUZzWldsbmFERVhNQlVHQTFVRUNoTU9SbVZrYjNKaApJRkJ5YjJwbFkzUXhE\nekFOQmdOVkJBc1RCbVpsWkcxelp6RVBNQTBHQTFVRUF4TUdabVZrYlhObk1ROHdEUVlEClZRUXBF\ > > nd1ptWldSdGMyY3hKakFrQmdrcWhraUc5dzBCQ1FFV0YyRmtiV2x1UUdabFpHOXlZWEJ5YjJwbFkz\nUXUKYjNKbk1CNFhEVEUxTURVeE9ERTNNamMxTTFvWERUSTFNRFV4TlRFM01qYzFNMW93Z2RZeEN6\nQUpCZ05WQkFZVApBbFZUTVFzd0NRWURWUVFJRXdKT1F6RVFNQTRHQTFVRUJ4TUhVbUZzWldsbmFE\nRVhN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Fd1ptWldSdGMyY3hEekFOQmdOVkJDa1RCbVps\nClpHMXpaekVtTUNRR0NTcUdTSWIzRFFFSkFSWVhZV1J0YVc1QVptVmtiM0poY0hKdmFtVmpkQzV2\nY21lQ0NRRGoKVUI1SFR4Y2VSVEFUQmdOVkhTVUVEREFLQmdnckJnRUZCUWNEQWpBTEJnTlZIUThF\nQkFNQ0I0QXdEUVlKS29aSQpodmNOQVFFRkJRQURnWUVBSjhUVGdMMHJhZ3lCdlo5RlBhdis2ZE5B\nZzEza0poQnYrWS9xeU9rT0RadHFwOWovCkdkOHU1emQwVkFwdXlIMnFBYzg1cUcyaEVsY0ZqUytx\nOU95YmtkQnlwQzF5cklzRSt2akZTRHZqalQxMjV6d3EKS2FNV1UwSVgyTnp2d2l4cWxYN1pxc2cz\nMHIwNzgvUHNPTGRLTlo5VWR0QXJGUHZ2b3hQRHpsTTM4aUE9Ci0tLS0tRU5EIENFUlRJRklDQVRF\nLS0tLS0K\n', > u'i': 1, u'timestamp': 1473243776, u'msg_id': > u'2016-2e015a38-5d12-49cf-8c14-68141a3ebbf9', u'crypto': u'x509', u'topic': > u'io.pagure.prod.pagure.git.receive', u'signature': u'VwIogRjtQu > > 91zBpfvubjfo458fOEf8zj/Rm0tYSDpQ9WHh2AM7KhMTdh/fc1iCyB2EQdnbPzyk5e\nrknUhFc2N/1GqOtb+B2q2xVBxJhUPZxHjAk2pASb/bAVL4e8ZPlJd+IpzUXdJqbMNBqy9DHWya3B\npEV0nQhRJ2ILd5lzQMA=\n', > u'msg': {u'forced': False, u'agent': u'pingou', u'repo': {u'description': > u'A git centered forge', u'parent': None, u'tags': [u'pagure', u'fedmsg', > u'fedora-infra'], u'settings': {u'Minimum_score_to_merge_pull-request': -1, > u'Web-hooks': None, u'project_documentation': True, u'always_merge': False, > u'pull_requests': True, u'Enforce_signed-off_commits_in_pull-request': > False, u'Only_assignee_can_merge_pull-request': False, u'issue_tracker': > True}, u'priorities': {}, u'user': {u'fullname': u'Pierre-YvesChibon', > u'name': u'pingou'}, u'date_created': u'1431549490', u'id': 10, u'name': > u'pagure'}, u'end_commit': u'52ed110a52259f30b57370c39bb4ce27b4bcec65', > u'branch': u'refs/heads/fix_pagure_ci', u'authors': [{u'fullname': > u'Pierre-YvesChibon', u'name': u'pingou'}], u'total_commits': 1, > u'start_commit': u'52ed110a52259f3 > 0b57370c39bb4ce27b4bcec65'}} > > > Process Details > --------------- > host: badges-backend01.phx2.fedoraproject.org > PID: 12196 > name: fedmsg-hub > command: /usr/bin/python /usr/bin/fedmsg-hub > msg_id: 2016-2e015a38-5d12-49cf-8c14-68141a3ebbf9 > > Callstack that lead to the logging statement > -------------------------------------------- > File "/usr/lib64/python2.7/threading.py", line 784 in __bootstrap > self.__bootstrap_inner() > File "/usr/lib64/python2.7/threading.py", line 811 in __bootstrap_inner > self.run() > File "/usr/lib64/python2.7/threading.py", line 764 in run > self.__target(*self.__args, **self.__kwargs) > File "/usr/lib64/python2.7/site-packages/twisted/python/threadpool.py", > line 167 in _worker > result = context.call(ctx, function, *args, **kwargs) > File "/usr/lib64/python2.7/site-packages/twisted/python/context.py", line > 118 in callWithContext > return self.currentContext().callWithContext(ctx, func, *args, **kw) > File "/usr/lib64/python2.7/site-packages/twisted/python/context.py", line > 81 in callWithContext > return func(*args,**kw) > File "/usr/lib/python2.7/site-packages/moksha/hub/api/consumer.py", line > 191 in _work > self.consume(message) > File "/usr/lib/python2.7/site-packages/fedbadges/consumers.py", line 240 > in consume > log.exception("Rule: %r, message: %r" % (badge_rule, msg)) > Traceback (most recent call last): > File "/usr/lib/python2.7/site-packages/fedbadges/consumers.py", line 237, > in consume > for recipient in badge_rule.matches(msg): > File "/usr/lib/python2.7/site-packages/fedbadges/rules.py", line 167, in > matches > obj = format_args(self.recipient_key, subs) > File "/usr/lib/python2.7/site-packages/fedbadges/utils.py", line 56, in > format_args > obj = obj % subs > KeyError: 'msg.commit.username' > Looks like the logic used in fedbadges to process some of the pagure message is wrong. Pierre
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ infrastructure mailing list infrastructure@xxxxxxxxxxxxxxxxxxxxxxx https://lists.fedoraproject.org/admin/lists/infrastructure@xxxxxxxxxxxxxxxxxxxxxxx