Last modified: 2013-10-23 19:53:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57595, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55595 - set $wgShowExceptionDetails on jenkins jobs.
set $wgShowExceptionDetails on jenkins jobs.
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
unspecified
All All
: High enhancement (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-10 21:21 UTC by Erik Bernhardson
Modified: 2013-10-23 19:53 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Erik Bernhardson 2013-10-10 21:21:36 UTC
The error message displayed here:

https://integration.wikimedia.org/ci/job/mwext-Flow-testextensions-master/195/console

Basically says

21:17:33 Modifying subscription_user_id field of table flow_subscription ...Set $wgShowExceptionDetails = true; in LocalSettings.php to show detailed debugging information.

So when it failed instead of showing the problem we get an error message saying we need to enable a debug flag to see the problem.

Not sure at what level this global is supposed to be set, in flow or in jenkins, i'm not sure.
Comment 1 Antoine "hashar" Musso (WMF) 2013-10-22 09:08:15 UTC
I did a bunch of refactoring last week since it was no more acceptable to miss debug logs or leave people clueless when something goes wrong.

The most important changes are:

"settings injection for MediaWiki" https://gerrit.wikimedia.org/r/#/c/89837/ . That let us append PHP files to the end of LocalSettings. The files are under integration/jenkins.git in /mediawiki/conf.d


The Jenkins Job Builder macro definition is https://gerrit.wikimedia.org/r/#/c/90341/

It has been applied to all extensions tests by https://gerrit.wikimedia.org/r/#/c/90358/ . A side effect is that the build also capture the debug log entry as an artifact so people can download it from Jenkins \O/


Still have to apply such modification to mediawiki/core and possibly to other jobs, so I am leaving this bug open meanwhile.  Assigning to self and raising priority so I dont forget about it.
Comment 2 Antoine "hashar" Musso (WMF) 2013-10-22 09:50:23 UTC
Pending the modification of mediawiki/core jobs.
Comment 3 Gerrit Notification Bot 2013-10-23 14:56:18 UTC
Change 91385 had a related patch set uploaded by Hashar:
mediawiki phpunit no more use ant and LOG!

https://gerrit.wikimedia.org/r/91385
Comment 4 Gerrit Notification Bot 2013-10-23 15:41:07 UTC
Change 91385 merged by jenkins-bot:
mediawiki phpunit no more use ant and LOG!

https://gerrit.wikimedia.org/r/91385
Comment 5 Antoine "hashar" Musso (WMF) 2013-10-23 19:53:16 UTC
The jobs now have $wgShowExceptionDetails and $wgDebugLogFile (the later output being archived as a build artifact).

The related PHP configuration is integration/jenkins.git under /mediawiki/conf.d/*.php and are appended by LocalSettings.php with /bin/mw-apply-settings.sh

Thanks for the report!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links