Page MenuHomePhabricator

Upgrade Quarry to python 3
Closed, ResolvedPublic

Description

Python 2 will die... in less than 2 years. We get lots of good stuffs like map() result being a lazy generator rather than a list in python 3.

Event Timeline

Change 440007 had a related patch set uploaded (by Framawiki; owner: Framawiki):
[analytics/quarry/web@master] [WIP, DON'T MERGE] Port to Python3

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

@Framawiki Can I play with your quarry-frama-test-py3-* instances? (ssh in, install packages, git fetch & checkout, restart services) Kinda lazy to rebuild all these instances.

Hello @zhuyifei1999, these old instances have really been draft :) you'd better create them again.
We still have to work on the dependencies (upgrade to Trusty at the same time) and update puppet with this. Doc for standalone puppetmaster.

Hello @zhuyifei1999, these old instances have really been draft :) you'd better create them again.

Ok sure.

There some annoying things (like if you rebuild an instance puppet break). But thanks for linking

Umm. the quota on the # of instances can't let me create more instances... Can I delete them?

Change 451698 had a related patch set uploaded (by Zhuyifei1999; owner: Zhuyifei1999):
[operations/puppet@production] [WIP] Quarry: Move the install into a venv and upgrade to Python 3

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

Change 454079 had a related patch set uploaded (by Framawiki; owner: Framawiki):
[analytics/quarry/web@master] Update Vagrant files to py3

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

Change 454079 abandoned by Zhuyifei1999:
Update Vagrant files to py3

Reason:
Squashed into https://gerrit.wikimedia.org/r/#/c/analytics/quarry/web/ /440007/

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

Change 451698 merged by Bstorm:
[operations/puppet@production] quarry: Move the install into a venv and upgrade to Python 3

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

Change 440007 merged by jenkins-bot:
[analytics/quarry/web@master] Port to Python3

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

Change 460104 had a related patch set uploaded (by Framawiki; owner: Framawiki):
[analytics/quarry/web@master] worker.py: fix indexing of sql errors

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

Change 460104 merged by Zhuyifei1999:
[analytics/quarry/web@master] worker.py: fix indexing of sql errors

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

zhuyifei1999 claimed this task.
zhuyifei1999 reassigned this task from zhuyifei1999 to Framawiki.

Change 462295 had a related patch set uploaded (by Framawiki; owner: Framawiki):
[analytics/quarry/web@master] killer.py: fix import since py3

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

Change 462295 merged by jenkins-bot:
[analytics/quarry/web@master] killer.py: fix import since py3

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