Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to Python 3.9 to allow running on Kubernetes after Grid Engine shutdown #27

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

zanhecht
Copy link

@zanhecht zanhecht commented Dec 7, 2023

Per https://wikitech.wikimedia.org/wiki/News/Toolforge_Grid_Engine_deprecation, the Grid Engine that this tool runs on will be start to be shut down on 2023-12-14. This pull request updates the tool to Python 3.9 so that it can run on Kubernetes.

This pull request was based on a version of the code that has improved vote detection and has an option for showing undetermined votes (although there's no UI to expose that option yet).

This version is currently running on http://afdstats2.toolforge.org on Kubernetes.

zanhecht and others added 7 commits November 8, 2019 23:25
Show pages where vote is "UNDETERMINED",
have link to show pages where no vote is found,
detect nominator using altname,
detect "speedy deletion",
detect result when line break is present (such as those closed by MelanieN)
Change print statements to use parentheses, decode byte strings, replace deprecated cgi, and htmllib libraries.
K8s containers don't have /usr/bin/python that they can access. Script creates a venv with appropriate libraries, and the lighttpd.conf points the server to the venv for .py files.
Wasn't uploaded correctly in previous commit
@zanhecht zanhecht mentioned this pull request Dec 7, 2023
@zanhecht zanhecht changed the title Migrate to Python 3.9 to allow runnin on Kubernetes after Grid Engine shutdown Migrate to Python 3.9 to allow running on Kubernetes after Grid Engine shutdown Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants