Page MenuHomePhabricator

script_tests.TestScriptGenerator fails with test_newitem
Closed, ResolvedPublic

Description

Lately script_tests.TestScriptGenerator fails with test_newitem:

======================================================================
FAIL: test_newitem (tests.script_tests.TestScriptGenerator)
Test running newitem -simulate -page:Foobar -always -site:wikipedia:en.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\projects\pywikibot\tests\script_tests.py", line 240, in test_script
    self.assertIn(error, err_result)
AssertionError: 'Script terminated successfully' not found in 'WARNING: You are logged in as Pywikibot-test, an account that is not in the\r\nautoconfirmed group on wikipedia:en. Script will not touch pages\r\nlinked to newly created  items to avoid triggering edit rates or\r\ncaptchas. Use -touch param to force this.\r\nWARNING: NewItemRobot.__init__ set the Bot.site property; this is only needed when the Bot accesses many sites.\r\nPage age is set to 21 days so only pages created\r\nbefore 2023-07-19T10:01:09Z will be considered.\r\n\r\nLast edit is set to 7 days so only pages last edited\r\nbefore 2023-08-02T10:01:10Z will be considered.\r\n\r\nRetrieving 1 pages from wikipedia:en.\r\n'
----------------------------------------------------------------------

The reason is that te Pywikibot-test account is confirmed at en-wiki bot not autoconfirmed as needed by the script due to T199936

Event Timeline

Xqt changed the task status from Open to In Progress.Aug 9 2023, 11:23 AM
Xqt claimed this task.
Xqt triaged this task as High priority.

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

[pywikibot/core@master] [IMPR] Enable -touch in newitem script for confirmed user

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

Change 947329 merged by jenkins-bot:

[pywikibot/core@master] [IMPR] Enable -touch in newitem script for confirmed user

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