Page MenuHomePhabricator

Run a CI test using sysop account
Closed, ResolvedPublic

Description

There should a way implemented to login with a sysop account at travis. Not sure whether we have one but I guess we had it.

Details

Related Changes in Gerrit:

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript

@Xqt where do the tests get executed currently? On test.wikipedia.org or somewhere else? Asking to know where we need to have the sysop account set up.

@Xqt where do the tests get executed currently? On test.wikipedia.org or somewhere else? Asking to know where we need to have the sysop account set up.

We run tests on several sites including some outside of the wikimedia cluster. There are some default sites where the most tests are made. Appveyer uses wikipedia:en as default. On github action there are several default sites defined in a matrix, see https://gerrit.wikimedia.org/r/plugins/gitiles/pywikibot/core/+/cb8f7dc864e5788e581f95d2ad770681e2678951/.github/workflows/pywikibot-ci.yml

I activated write tests recently for wikipedia:tests. I don't think that they will be runned on other sites, perhaps on wikidata:tests. Write tests are restricted by the aspects.SiteWriteMixin class to run on test sites only. To test user rights like sysop bots wikipedia:test would be appropriate I guess.

Xqt triaged this task as Low priority.Jan 11 2023, 6:35 PM

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

[pywikibot/core@master] [tests] Add tests for sysop rights

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

Change 1003022 merged by Xqt:

[pywikibot/core@master] [tests] Add tests for sysop rights

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