https://bugzilla.wikimedia.org/show_bug.cgi?id=53972

--- Comment #17 from Bryan Davis <[email protected]> ---
I'm looking into this again and still can't figure out why
http://en.wikipedia.beta.wmflabs.org/wiki/Special:Version isn't displaying the
git SHA1 for extensions now.

Debugging using `mwscript eval.php --wiki=enwiki` on deployment-apache01 and
deployment-apache02 shows that GitInfo can read the precomputed git information
there:

    > $wgDebugLogGroups = array(); $wgDebugLogFile = 'php://stdout';
    > $gitinfo = new GitInfo($IP); $coreId = $gitinfo->getHeadSHA1();
    > $cache = wfGetCache( CACHE_ANYTHING );
    > $path = "$IP/extensions/VisualEditor/VisualEditor.php";
    > $memcKey = wfMemcKey( 'specialversion-ext-version-text', $path, $coreId
);
    > echo $memcKey;
   
enwiki:specialversion-ext-version-text:/srv/common-local/php-master/extensions/VisualEditor/VisualEditor.php:49952a405014c89b239da3bcaea158c47faf8251
    > var_dump( $cache->get( $memcKey ) );
    enwiki-bca38539: 649.4035  25.8M  [memcached]
get(enwiki:specialversion-ext-version-text:/srv/common-local/php-master/extensions/VisualEditor/VisualEditor.php:49952a405014c89b239da3bcaea158c47faf8251)
    enwiki-bca38539: 649.4047  25.8M  [memcached] result: NOT FOUND
    bool(false)

    > $gitinfo = new GitInfo( dirname( $path ) );
    > echo $gitinfo->getHeadSHA1();
    fefd3a5d72c118993cc555f0a53a561f58a5fd19
    > echo $gitinfo->getHeadViewUrl();
   
https://git.wikimedia.org/commit/mediawiki%2Fextensions%2FVisualEditor.git/fefd3a5d72c118993cc555f0a53a561f58a5fd19
    > echo $gitinfo->getHeadCommitDate();
    1400528579

I've verified that apache is running as the user "apache" on these nodes and
that apache can read the *info.json files. The output of `eval.php` above shows
that the php code is functional when executed from the cli. At this point I'm
unable to understand why this output differs from
SpecialVersion::getCreditsForExtension(). I'm sure I'm missing something in my
analysis but I'm at a loss for what it is.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to