hashar added a comment.

SiteConfiguration::getConfig() uses wfShellWikiCmd() to craft the command it uses the PHP interpreter from $wgPhpCli, that is '/usr/bin/php' which on terbium is hhvm.

549             $retVal = 1;
550             $cmd = wfShellWikiCmd(
551                 "$IP/maintenance/getConfiguration.php",
552                 [
553                     '--wiki', $wiki,
554                     '--settings', implode( ' ', $settings ),
555                     '--format', 'PHP'
556                 ]
557             );

Then the call is made. Note the comment about ulimit5.sh breaking the call !!! The memory limit is set to zero explicitly :(

558             // ulimit5.sh breaks this call
559             $data = trim( wfShellExec( $cmd, $retVal, [], [ 'memory' => 0 ] ) );
560             if ( $retVal != 0 || !strlen( $data ) ) {
561                 throw new MWException( "Failed to run getConfiguration.php." );
562             }
563             $res = unserialize( $data );
564             if ( !is_array( $res ) ) {
565                 throw new MWException( "Failed to unserialize configuration array." );
566             }
567             $this->cfgCache[$wiki] = $this->cfgCache[$wiki] + $res;

A monkey patch would be to pass to wfShellExec the env 'filesize' => 0 to workaround the write to the HHVM cache file.

Unsolved

Why on 1.28.0.wmf-18 /var/cache/hhvm/cli.hhbc.sq3 is not updated/written to but it is on 1.28.0.wmf-19.


TASK DETAIL
https://phabricator.wikimedia.org/T145819

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: hashar
Cc: FastLizard4, JJMC89, zeljkofilipin, Lydia_Pintscher, daniel, aude, Addshore, Aklapper, greg, Legoktm, demon, gerritbot, Stashbot, hashar, D3r1ck01, Liudvikas, Izno, Luke081515, Wikidata-bugs, JanZerebecki, Mbch331, Jay8g, Joe, jeremyb
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to