Re: [Wikitech-l] More fun and games with file position relative code

2009-08-14 Thread Roan Kattouw
2009/8/14 Brion Vibber br...@wikimedia.org:
  On my production wiki I have phase3/ checked out in
 /var/www/w, and some extensions individually checked out in
 subdirectories of /var/www/w/extensions.  When I do svn up in
 /var/www/w, that doesn't update the other repositories in extensions/;
 I have to do svn up . extensions/* instead.  Does commit work
 differently, or am I misunderstanding?

 svn up works just fine for this too in my experience. Perhaps your
 'extensions' dir isn't SVN-managed for some reason, or something?


The reason this is happening is that Brion did

rm -rf extensions/
svn co svn+ssh://svn.wikimedia.org/svnroot/trunk/mediawiki/extensions

whereas Aryeh (and I too, FTM) did
cd extensions/
svn co svn+ssh://svn.wikimedia.org/svnroot/trunk/mediawiki/extensions/Foo
svn co svn+ssh://svn.wikimedia.org/svnroot/trunk/mediawiki/extensions/Bar

In the latter case, you don't get all extensions, but svn commands on
phase3 don't affect extensions.

Roan Kattouw (Catrope)

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] [Foundation-l] Question to post...

2009-08-14 Thread Dmitriy Sintsov
* Brion Vibber br...@wikimedia.org [Thu, 13 Aug 2009 18:13:38 -0700]:
 That's been deployed for a while, eg:

 link rel=canonical href=/wiki/Foobar /
 at http://en.wikipedia.org/wiki/Foo

I haven't found such code in MediaWiki 54916 snapshot from SVN 
(currently seems to be running at WMF). I am missing the code (I've 
looked into monobook and grepped for canonical through the subtree), 
or does it use some kind of extension? The most logical place for it is 
the monobook skin source code.
Dmitriy

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] More fun and games with file position relative code

2009-08-14 Thread Ilmari Karonen
Aryeh Gregor wrote:
 On Thu, Aug 13, 2009 at 3:24 PM, Ilmari Karonennos...@vyznev.net wrote:
 You don't need symlinks for that, a simple svn switch works just fine.
 
 Could you explain in more detail?  I don't get how that would work.

 From memory (don't feel like doing a new checkout over this crappy wlan 
just to test it right now):

svn co svn+ssh://svn.wikimedia.org/svnroot/trunk/mediawiki/phase3 foo
svn switch 
svn+ssh://svn.wikimedia.org/svnroot/trunk/mediawiki/extensions 
foo/extensions

But you're right, that doesn't really work if you only want a few 
extensions, not all of them.  Although, IME, for a development copy one 
usually does want all the extensions, if any.

-- 
Ilmari Karonen

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] Wiki not responding to patches

2009-08-14 Thread Sergey Chernyshev
There might be an aggressive cache like APC that is configured not to check
for changes.
In this case, you need to stop and then start your web server.

But it's a rare case, I would say.

Thank you,

Sergey


--
Sergey Chernyshev
http://www.sergeychernyshev.com/


On Thu, Aug 13, 2009 at 7:32 PM, Aryeh Gregor
simetrical+wikil...@gmail.comsimetrical%2bwikil...@gmail.com
 wrote:

 On Thu, Aug 13, 2009 at 3:10 PM, Taja Anandtaja.w...@gmail.com wrote:
  3) removed all the content of index.php !! [it still runs]

 Then you're editing the wrong files.

 ___
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-l

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


[Wikitech-l] identifier collisions

2009-08-14 Thread dan nessett
One of the first problems to solve in developing the proposed CPRT is how to 
call a function with the same name in two different MW distributions. I can 
think of 3 ways: 1) use the Namespace facility of PHP 5.3, 2) use threads, or 
3) use separate process and IPC. Since MAMP supports none of these I am off 
building an AMP installation from scratch.

Some questions:

* Are there other ways to solve the identifier collision problem?

* Are some of the options I mention unsuitable for a MW CPRT, e.g., currently 
MW only assumes PHP 5.0 and requiring 5.3 may unacceptably constrain the user 
base.

* Is MW thread safe?

Dan


  

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] identifier collisions

2009-08-14 Thread Chad
On Fri, Aug 14, 2009 at 11:31 AM, dan nessettdness...@yahoo.com wrote:
 One of the first problems to solve in developing the proposed CPRT is how to 
 call a function with the same name in two different MW distributions. I can 
 think of 3 ways: 1) use the Namespace facility of PHP 5.3, 2) use threads, or 
 3) use separate process and IPC. Since MAMP supports none of these I am off 
 building an AMP installation from scratch.

 Some questions:

 * Are there other ways to solve the identifier collision problem?

 * Are some of the options I mention unsuitable for a MW CPRT, e.g., currently 
 MW only assumes PHP 5.0 and requiring 5.3 may unacceptably constrain the user 
 base.

 * Is MW thread safe?

 Dan




 ___
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-l


I can't really answer to the rest of it, but anything that _requires_ 5.3
would be a no-go at this point. I doubt all of our developers are even on
it yet, much less the user base :)

-Chad

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] identifier collisions

2009-08-14 Thread dan nessett
--- On Fri, 8/14/09, Dmitriy Sintsov ques...@rambler.ru wrote:

 I remember some time ago I was strongly discouraged to
 compile and run 
 PHP threaded MPM for apache because some functions or
 libraries of PHP 
 itself were not thread safe.

OK, this and Chad's comment suggests the option is multi-process/IPC. One more 
question:

* Can we assume PHP has PCNLT support or will the test require startup from a 
shell script?

Dan


  

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


[Wikitech-l] Video transcoding settings Was: [54611] trunk/extensions/WikiAtHome/WikiAtHome.php

2009-08-14 Thread Gregory Maxwell
On Fri, Aug 7, 2009 at 5:29 PM, d...@svn.wikimedia.org wrote:
 http://www.mediawiki.org/wiki/Special:Code/MediaWiki/54611

 Revision: 54611
 Author:   dale
 Date:     2009-08-07 21:29:26 + (Fri, 07 Aug 2009)

 Log Message:
 ---
 added a explicit keyframeInterval per gmaxwell's mention on wikitech-l. (I 
 get ffmpeg2theora: unrecognized option `--buf-delay for adding in buf-delay)


I thought firefogg was tracking j^'s nightly?  If the encoder has
two-pass it has --buf-delay. Does firefog perhaps need to be changed
to expose it?

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] Video transcoding settings Was: [54611] trunk/extensions/WikiAtHome/WikiAtHome.php

2009-08-14 Thread Michael Dale
yea was using the wrong version of ffmpeg2theora locally ;)... Thanks 
for the reminder, updated our ffmpeg2theora encode command in r55042 ... 
an update to firefogg should support the --buf-delay argument shortly as 
well.

--michael

Gregory Maxwell wrote:
 On Fri, Aug 7, 2009 at 5:29 PM, d...@svn.wikimedia.org wrote:
   
 http://www.mediawiki.org/wiki/Special:Code/MediaWiki/54611

 Revision: 54611
 Author:   dale
 Date: 2009-08-07 21:29:26 + (Fri, 07 Aug 2009)

 Log Message:
 ---
 added a explicit keyframeInterval per gmaxwell's mention on wikitech-l. (I 
 get ffmpeg2theora: unrecognized option `--buf-delay for adding in buf-delay)
 


 I thought firefogg was tracking j^'s nightly?  If the encoder has
 two-pass it has --buf-delay. Does firefog perhaps need to be changed
 to expose it?

 ___
 Wikitech-l mailing list
 Wikitech-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/wikitech-l


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] identifier collisions

2009-08-14 Thread Tim Starling
dan nessett wrote:
 One of the first problems to solve in developing the proposed CPRT
 is how to call a function with the same name in two different MW
 distributions. I can think of 3 ways: 1) use the Namespace facility
 of PHP 5.3, 2) use threads, or 3) use separate process and IPC.
 Since MAMP supports none of these I am off building an AMP
 installation from scratch.

I think if you spent half as much time reading the PHP manual as
posting clueless questions to this list, you would know that neither
of the first two options can work. Namespaces because even if we did
use them, the different versions would necessarily be in the same
namespace, and threads because PHP does not have them (despite
appearances to the contrary noted by Dmitriy Sintsov).

 * Is MW thread safe?

It would be rather hard for MW to not be thread safe, since PHP does
not expose any thread-related functions to the user. It has no
inter-thread communication or data sharing, and no way to create new
threads. It does have threads at the SAPI level, but that's irrelevant
to your current problem.

And please, spare us from your rant about how terrible this is. It's
not PHP's fault that you don't know anything about it.

-- Tim Starling


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


[Wikitech-l] Wikipedia Test, Build Deploy practices

2009-08-14 Thread Ryan Chan
Hello,

Just out of curiosity, now consider if a security hole in mediawiki
was identified, how does wikipedia manage to roll out the new patch to
all servers?

Any formal steps? Tesing? Regression? UAT?

Any build/deployment scripts can be shared?


Thanks.

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l