saper created this task. saper added a subscriber: saper. saper added a project: Pywikibot-General. Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION I run my bots in a fairly constrained and controlled environment (minimal software configuration, constrained permissions and network traffic) and I am running into problems like pywikibot trying to guess the version number.
I have proposed a Gerrit change to [override User-Agent](https://gerrit.wikimedia.org/r/#/c/208842/). Apparently `pywikibot-core` has a `config.user_agent_format` feature but it does not prevent auto-discovery of the bot version.
Overriding User-Agent is not enough since there may be more features checking the version, one of them is `writeToCommandLogFile()` (see also {T98106}).
When git is not available, it tries to fetch the irrelevant changelog, as I usually have some local patches/commits in the code. (Fetching also fails with {T98104}).
This feature is just not robust enough in my experience.
TASK DETAIL https://phabricator.wikimedia.org/T98107
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: saper Cc: pywikipedia-bugs, saper, Aklapper