Hashar has uploaded a new change for review.

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

Change subject: Point Doxygen input filter to Zend PHP
......................................................................

Point Doxygen input filter to Zend PHP

On Trusty instances, 'php' refers to HHVM which has a rather large byte
code cache overhead.  That slow down the invocation of mwdoc-filter.php
from 40ms (Zend) to 200+ms (PHP).

Set $wgPhpCli to the Zend version of PHP ('/usr/bin/php5') so invocation
of wfShellWikiCmd() ends up using it when crafting the doxygen
INPUT_FILTER.

Bug: 73311
Change-Id: I48b62c9213faab2f114c41922484def8d90f9426
---
M tools/mwcore-docgen.sh
1 file changed, 5 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/integration/jenkins 
refs/changes/56/172756/1

diff --git a/tools/mwcore-docgen.sh b/tools/mwcore-docgen.sh
index 32c5854..7b8209c 100755
--- a/tools/mwcore-docgen.sh
+++ b/tools/mwcore-docgen.sh
@@ -58,7 +58,11 @@
 
 # Craft a dumb LocalSettings.php which is required by Maintenance script
 # albeit the mwdocgen.php script does not require it.
-touch "$MW_INSTALL_PATH/LocalSettings.php"
+#
+# Explicitly use Zend PHP cli (/usr/bin/php5)
+# HHVM has a large bytecode cache overhead which does not play nice when
+# invoking mwdoc-filter.php thousands of time (bug 73311).
+echo -e "<?php\n\$wgPhpCli = '/usr/bin/php5';" > 
"$MW_INSTALL_PATH/LocalSettings.php"
 
 # Run the MediaWiki documentation wrapper
 #

-- 
To view, visit https://gerrit.wikimedia.org/r/172756
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I48b62c9213faab2f114c41922484def8d90f9426
Gerrit-PatchSet: 1
Gerrit-Project: integration/jenkins
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to