Page MenuHomePhabricator

pywikibot does not drop throttles when finishing tests
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • run only one instance of a test script
  • open throttle.ctrl

What happens?:

The trottle.ctrl file contains several entries. This may lead to a high throttle delay when starting a script until the drop delay was reached.

What should have happened instead?:
throttle.ctrl. should be empty or deleted after the script was terminated.

Software version (skip for WMF-hosted wikis like Wikipedia):
Tested with 9.0, 8.0, 7.0

Event Timeline

Xqt triaged this task as Medium priority.Feb 19 2024, 10:48 AM
Xqt renamed this task from pywikibot does not drop throttles when finishing to pywikibot does not drop throttles when finishing tests.Feb 19 2024, 11:06 AM
Xqt lowered the priority of this task from Medium to Low.
Xqt updated the task description. (Show Details)

Change 1004635 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [tests] clear pywikibot._sites instead of reallocate it

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

Change 1004635 merged by jenkins-bot:

[pywikibot/core@master] [tests] clear pywikibot._sites instead of reallocate it

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