A friend of mine asked me what's the best way to identify actually executed MediaWiki extensions, not just the ones that are installed.
Any hints? I thought that enabling debug logs for a day, then grepping for the text of filenames in the directory 'extensions' (subtracting out the stuff that adds hooks to the registry on page load only) may do the trick. But I imagine there are other wrinkles, and was hoping someone had a canned technique.
-Adam
What do you mean by "actually executed"? Because that kind of various by extension. A special page extension is "executed" when its special page is viewed by a user. A parser hook extension is "executed" when a user saves a page with that parser function in it. Etc.
*-- * *Tyler Romeo* Stevens Institute of Technology, Class of 2016 Major in Computer Science www.whizkidztech.com | tylerromeo@gmail.com
On Mon, Jul 22, 2013 at 1:39 PM, Adam Baso abaso@wikimedia.org wrote:
A friend of mine asked me what's the best way to identify actually executed MediaWiki extensions, not just the ones that are installed.
Any hints? I thought that enabling debug logs for a day, then grepping for the text of filenames in the directory 'extensions' (subtracting out the stuff that adds hooks to the registry on page load only) may do the trick. But I imagine there are other wrinkles, and was hoping someone had a canned technique.
-Adam _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Sounds like a wide net will need to be used. Thanks!
-Adam
On Mon, Jul 22, 2013 at 10:45 AM, Tyler Romeo tylerromeo@gmail.com wrote:
What do you mean by "actually executed"? Because that kind of various by extension. A special page extension is "executed" when its special page is viewed by a user. A parser hook extension is "executed" when a user saves a page with that parser function in it. Etc.
*-- * *Tyler Romeo* Stevens Institute of Technology, Class of 2016 Major in Computer Science www.whizkidztech.com | tylerromeo@gmail.com
On Mon, Jul 22, 2013 at 1:39 PM, Adam Baso abaso@wikimedia.org wrote:
A friend of mine asked me what's the best way to identify actually
executed
MediaWiki extensions, not just the ones that are installed.
Any hints? I thought that enabling debug logs for a day, then grepping
for
the text of filenames in the directory 'extensions' (subtracting out the stuff that adds hooks to the registry on page load only) may do the
trick.
But I imagine there are other wrinkles, and was hoping someone had a
canned
technique.
-Adam _______________________________________________ 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
Hey,
I suspect you are out of luck here, and already have one of the most viable approaches in mind. A silver bullet solution that covers all types of extensions seems very unlikely. Even if you look at things such as all lines of code that got executed, you'd still need to analyse this per extension where execution happened to verify that it actually added meaningful behaviour. Where "meaningful" is something ill defined.
Cheers
-- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. ~=[,,_,,]:3 --
Thanks! -Adam
On Mon, Jul 22, 2013 at 11:04 AM, Jeroen De Dauw jeroendedauw@gmail.comwrote:
Hey,
I suspect you are out of luck here, and already have one of the most viable approaches in mind. A silver bullet solution that covers all types of extensions seems very unlikely. Even if you look at things such as all lines of code that got executed, you'd still need to analyse this per extension where execution happened to verify that it actually added meaningful behaviour. Where "meaningful" is something ill defined.
Cheers
-- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. ~=[,,_,,]:3 -- _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org