https://bugzilla.wikimedia.org/show_bug.cgi?id=72326
Antoine "hashar" Musso (WMF) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|get ZeroPortal configured |ZeroPortal browsertests |in jenkins job builder |fails early due to auth | |issue with | |zero.wikimedia.org --- Comment #2 from Antoine "hashar" Musso (WMF) <[email protected]> --- Browser tests jobs assume the targeted URL is a MediaWiki instance with an accessible API. It then query /w/api.php for the git_branch being used which let us checkout the matching branch. That script fails: ++ /srv/deployment/integration/slave-scripts/bin/mw-api-siteinfo.py http://zero.wikimedia.org/w/api.php git_branch Traceback (most recent call last): File "/srv/deployment/integration/slave-scripts/bin/mw-api-siteinfo.py", line 92, in <module> main() File "/srv/deployment/integration/slave-scripts/bin/mw-api-siteinfo.py", line 89, in main print getattr(mwresponse.query.general, field) AttributeError: 'MwApiResponse' object has no attribute 'query' And the branch is not set so the job abort: + MEDIAWIKI_GIT_BRANCH= We had the issue previously of not properly failing when the API send an HTTP error code (bug 70695) which S Page kindly fixed by having the script raise an exception whenever the status is wrong. When querying Zero portal API I end up with: Http response code 200 {u'servedby': u'mw1117', u'error': {u'info': u'You need read permission to use this module', u'*': u'See https://zero.wikimedia.org/w/api.php for API usage', u'code': u'readapidenied'}} That highlights two issues: 1) ZeroPortal / MediaWiki API should yield a 403 which would abort the script. Should probably be a bug on its own reported to ZeroPortal. 2) The script bin/mw-api-siteinfo.py in integration/jenkins.git needs to be adjusted by someone so it can be passed a username and an env variable name from which to read the password. Then adjust the python code to authenticate with Zero. -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
