Page MenuHomePhabricator

Wikibugs bot is skipping many notifications
Closed, ResolvedPublic

Description

For example, my status change and comment on T87834 was supposed to be echoed to Wikimedia-Fundraising (logs: http://bots.wmflabs.org/~wm-bot/logs/%23wikimedia-fundraising/).

Event Timeline

awight raised the priority of this task from to Medium.
awight updated the task description. (Show Details)
awight added subscribers: awight, atgo.
Traceback (most recent call last):                                                                                   
File "/data/project/wikibugs/wikibugs2/wikibugs.py", line 309, in <module>
    bugs.poll()
  File "/data/project/wikibugs/wikibugs2/wikibugs.py", line 79, in poll
    self.process_event(event)                                                                                        
File "/data/project/wikibugs/wikibugs2/wikibugs.py", line 287, in process_event
    print(useful_event_metadata)                                                                                   
UnicodeEncodeError: 'ascii' codec can't encode character '\xa7' in position 200: ordinal not in range(128)

which is §, so it probably has to do with the sprint projects. Investigating.

gerritbot subscribed.

Change 188925 had a related patch set uploaded (by Merlijn van Deen):
Set PYTHONIOENCODING in jsub

https://gerrit.wikimedia.org/r/188925

Patch-For-Review

Change 188925 merged by jenkins-bot:
Set PYTHONIOENCODING in jsub

https://gerrit.wikimedia.org/r/188925

Unfortunately, this still doesn't fix the issue, as the bug still doesn't show up in the correct channel. The bug itself reports

Sprints: § Fundraising Tech Backlog (AWight brooding on), § Fundraising Sprint Devo (Deployed)
Projects: Wikimedia-Fundraising, § Fundraising Tech Backlog (AWight brooding on), Wikimedia-Fundraising-CiviCRM (Important), § Fundraising Sprint Devo (Deployed)

but wb2-phab reports

{'user': 'valhallasw', 'projects': {'§ Fundraising Tech Backlog': {'disabled': Fa
lse, 'shade': 'blue', 'uri': '/tag/§_fundraising_tech_backlog/', 'tagtype': 'brie
fcase'}, '§ Fundraising Sprint Devo': {'disabled': False, 'shade': 'violet', 'uri
': '/tag/§_fundraising_sprint_devo/', 'tagtype': 'briefcase'}}, 'comment': 'Anoth
er test, to make sure this also works.', 'url': 'https://phabricator.wikimedia.org/T87834#1019477', 'title': 'Gateway Reconciliation report times out'}

i.e. just the sprint projects.

Change 188936 had a related patch set uploaded (by Merlijn van Deen):
Fix project tag screen scraping

https://gerrit.wikimedia.org/r/188936

Patch-For-Review

Change 188936 merged by jenkins-bot:
Fix project tag screen scraping

https://gerrit.wikimedia.org/r/188936

Legoktm assigned this task to valhallasw.
Legoktm subscribed.