| Aklapper renamed this task from "Detect toollabs environment in pywikibot.version" to "Detect Wikimedia Toolforge environment in pywikibot.version". Aklapper updated the task description. (Show Details) |
CHANGES TO TASK DESCRIPTION
`version.py` detects the version being used, using git`git` on Unix. As toollabs is a major customer[Toolforge](https://wikitech.wikimedia.org/wiki/Portal:Toolforge) is a major customer, and partially managed by the [Pywikibot](https://www.mediawiki.org/wiki/Manual:Pywikibot) team, it would be nice if Pywikibot detected that it is being run from the 'shared' environment, so that it can be better maintained and bug reports clearly indicate that the problem exists on Toolforge.
We need to create a new function in `pywikibot/version.py` that first check the hostname (command `hostname -d` of similar, in python perhaps using subprocess or a built-in function to see if the script is running in a ToolForge host. Then if yes, and partially managed by the pywikibot teamwe can add a more accurate information, it would be nice if pywikibot detected that it is being run from the 'shared' environmentusing `socket.gethostname()`, so that it can be better maintained and bug reports clearly indicate that the problem exists on toollabs.
to print the machine name, something like `tools-bastion-02` (2nd string).
We need to create a new function in `pywikibot/version.py` that first check the hostname (command `hostname -d` of similar, in python perhaps using subprocess or a built-in function to see if the script is running in a ToolForge host. Then if yes, and partially managed by the pywikibot teamwe can add a more accurate information, it would be nice if pywikibot detected that it is being run from the 'shared' environmentusing `socket.gethostname()`, so that it can be better maintained and bug reports clearly indicate that the problem exists on toollabs.
to print the machine name, something like `tools-bastion-02` (2nd string).
TASK DETAIL
EMAIL PREFERENCES
To: Aklapper
Cc: Framawiki, Aklapper, pywikibot-bugs-list, jayvdb, Toppole69, Mine0901, Jayprakash12345, Magul, Tbscho, MayS, Beeyan, Mdupont, JJMC89, MtDu, D3r1ck01, Avicennasis, Dalba, Masti, Alchimista, Rxy
Cc: Framawiki, Aklapper, pywikibot-bugs-list, jayvdb, Toppole69, Mine0901, Jayprakash12345, Magul, Tbscho, MayS, Beeyan, Mdupont, JJMC89, MtDu, D3r1ck01, Avicennasis, Dalba, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
