Commit graph

1934 commits

Author SHA1 Message Date
Ori Livneh 7e63874c5c Move getResourceUsage to Scribunto_LuaSandboxEngine
Fix-up for I6a4ed03c126.

Change-Id: I69e9218c6a3da6ca2a6f13e5911fee1c78a8f4a0
2015-10-29 16:29:00 -07:00
Translation updater bot 8299a0a22d Localisation updates from https://translatewiki.net.
Change-Id: I1c4efebfbb44a1b727bbc03abfd4bee306d000c8
2015-10-29 21:25:57 +01:00
Ori Livneh 605b5ed742 Keep stats on slow function calls
Report timing data for the top 1% of Lua function invocations, measured by CPU
time. Use the PSquare class from RunningStat (Ibbd3925aa) to keep an online
estimate of the 99th percentile without storing observations.

Depends on Ibbd3925aa (and on a follow-up patch to bump the RunningStat version
in core's composer.json.)

Change-Id: I0d39920733fe719f87698f03408698ed032c9849
2015-10-28 21:34:50 -07:00
Ori Livneh 930421d242 Add ScribuntoEngineBase::getResourceUsage()
Introduce a method, ScribuntoEngineBase::getResourceUsage(), which may be
overridden by script engine implementations to provide CPU and memory usage
data.

Change-Id: I6a4ed03c1261f43a7ce7de6f274c32c450e66abb
2015-10-29 03:59:07 +00:00
Translation updater bot 36d108a02e Localisation updates from https://translatewiki.net.
Change-Id: I9f7abedbf5358c1b5cc3d2be704ab09c9dab282f
2015-10-28 21:55:28 +01:00
Translation updater bot 7053497390 Localisation updates from https://translatewiki.net.
Change-Id: Ie306f413abd9431f4bfc0ac0cdfb09ef0f2e1882
2015-10-25 22:07:06 +01:00
maurelio 920b6d190c Localization updates for Scribunto.namespaces from Meta
Languages changed: ast, eml, ka, lb, sr, th and zh.

@authors:

* ast: m:User:Xuacu
* ka: m:User:David1010
* lb: m:User:Robby
* sr: m:User:Milicevic01
* th: m:User:Pirun
* zh: m:User:Leiem, m:User:Liuxinyu970226

Comes from m:User:MarcoAurelio/NS Trans

Change-Id: Ic4b57d196faeaebe098caf5a13bc130ecb4b45b0
2015-10-20 18:12:35 +00:00
Translation updater bot 42eaa4f1e6 Localisation updates from https://translatewiki.net.
Change-Id: I8703b788076e40bab49a8eff5395cb4d2d0aeab5
2015-10-19 22:19:39 +02:00
Brad Jorsch cd618c7a92 ustring: Handle "empty" charset like Lua does (part 2)
Lua actually treats a close-bracket at the start of a bracketed
character class as a literal, rather than using it to close the
character class. Probably unintended behavior, but it happens.

Also, have the pure-lua version throw our more informative errors on
error even when falling back to string.find and the like, and fix some
other weird edge cases that came up in testing.

Bug: T95958
Bug: T115686
Change-Id: Iab783d4a3e58b1514cc09729d4a71c2cb1242ee8
2015-10-16 09:26:55 -04:00
Translation updater bot 0cb68ac7c3 Localisation updates from https://translatewiki.net.
Change-Id: I655883b806cf66bd4894abb4d75b9342fe811fc4
2015-10-15 09:50:16 +02:00
Translation updater bot 1716e7d297 Localisation updates from https://translatewiki.net.
Change-Id: I1e2d3dcde4a0a8bc5161f3cc31f21e73ba73feed
2015-10-14 21:55:27 +02:00
Kunal Mehta e084a3c31d build: Updating development dependencies
* grunt-banana-checker: 0.2.2 → 0.4.0

Change-Id: I50c4895e210b930f69c28fdeb65423b5a89e5d55
2015-10-11 11:58:37 -04:00
Translation updater bot ffc6b2aa24 Localisation updates from https://translatewiki.net.
Change-Id: I0f9ddc51ceb30fc67f6df101e922ff1baf70e708
2015-10-09 22:33:34 +02:00
Translation updater bot ba92310f08 Localisation updates from https://translatewiki.net.
Change-Id: I7e1bb777f1a6d78c2023a57d435c74a9822fd85d
2015-10-07 22:02:45 +02:00
Jan Berkel fb20934b16 Fix a problem with simple pattern detection
A string with a dot pattern is only "simple" if
followed by +, - or *. The end of string condition was not checked
properly.

Change-Id: Ia10b9164caeabe464c76441cc82eef37a7013048
2015-10-07 10:27:45 -04:00
Translation updater bot dfb59d508d Localisation updates from https://translatewiki.net.
Change-Id: I06402e78565b28edc0c13652738d584e2f7bd160
2015-10-03 22:13:45 +02:00
Translation updater bot a51644831d Localisation updates from https://translatewiki.net.
Change-Id: I3fd6fe9e1f3ff3fcbc90b38985fed088a4195c13
2015-09-26 21:16:20 +02:00
Translation updater bot c663dcde12 Localisation updates from https://translatewiki.net.
Change-Id: Idccff25c64128773a05ac0c1caaa58dee847ebfa
2015-09-24 21:31:32 +02:00
Translation updater bot 0038ca1c0e Localisation updates from https://translatewiki.net.
Change-Id: Ic09bfa8f215708593d0a15d8d917e8e717069df2
2015-09-23 21:34:35 +02:00
Jan Berkel 7c5454b36c Fix off-by one error in gsub
Change-Id: I49c0386970e007271d23087fd112580af7b21c9c
2015-09-23 17:41:15 +01:00
Translation updater bot 49e26b6f38 Localisation updates from https://translatewiki.net.
Change-Id: I7535df3ad6fc4bf44843d2f758ada803df821cdd
2015-09-22 22:27:16 +02:00
Translation updater bot 36c5f82b9e Localisation updates from https://translatewiki.net.
Change-Id: I4d0e827feb5b2e6d0f7893262eab150aedf64544
2015-09-21 21:58:08 +02:00
Translation updater bot dd26eaa8e7 Localisation updates from https://translatewiki.net.
Change-Id: I6e7615bfe40ad58ed0957f7ff8d0a16bdf7291b6
2015-09-19 23:11:35 +02:00
Translation updater bot 715e904425 Localisation updates from https://translatewiki.net.
Change-Id: I52bc25e26548bfb10c32dca514a9752cfff7f906
2015-09-14 22:07:08 +02:00
Translation updater bot 003ad2caec Localisation updates from https://translatewiki.net.
Change-Id: Idedab5785520da5abf4ad6e906c05861188810c2
2015-09-06 21:42:42 +02:00
jenkins-bot 99c0e198e4 Merge "Localize Module and Module_talk namespaces for Armenian wikis" 2015-09-05 10:53:01 +00:00
Translation updater bot 9192d586d3 Localisation updates from https://translatewiki.net.
Change-Id: I3e56e2534966b06c1d0328cb72eb07adeaecdefe
2015-09-04 21:53:17 +02:00
maurelio ead95a5f71 Localize Module and Module_talk namespaces for Armenian wikis
Bug: T111376
Change-Id: I312082aba0eff4f434a1ba05715161b0df69dee3
2015-09-03 16:21:25 +00:00
jenkins-bot 3cd5e80036 Merge "Add mw-scribunto-console placeholder to view source page" 2015-09-01 16:46:02 +00:00
Derk-Jan Hartman 7e5d5759b4 Add mw-scribunto-console placeholder to view source page
Add a placeholder in the HTML to have a more reliable position in the
HTML structure of the View source page.

Depends On: Ia03265a907212ee7bac1b839dcdd4d2f24c79bbe

Bug: T110050
Change-Id: I10ff67b359f04c0decd38fae750cc264e6bce50a
2015-09-01 16:37:41 +00:00
jenkins-bot cbf48fd706 Merge "Update namespace for gom-deva" 2015-09-01 13:19:00 +00:00
Translation updater bot 4522828bcf Localisation updates from https://translatewiki.net.
Change-Id: I941eb5483dddf4e4b6894b67d6d366e2026e6403
2015-08-30 21:10:29 +02:00
Amir E. Aharoni 35e687c676 Update namespace for gom-deva
Bug: T109182
Change-Id: I6a83f58efa6a8b6d36c487df7a915b560d6bce02
2015-08-30 14:26:37 +03:00
Translation updater bot d3e55f840e Localisation updates from https://translatewiki.net.
Change-Id: I4ebb4a79607af3f54a4bc074c348452f9fe3e173
2015-08-28 21:54:14 +02:00
Translation updater bot 530b598270 Localisation updates from https://translatewiki.net.
Change-Id: I4fe53352a68143aa4c909031f0958a09e00f61ca
2015-08-27 21:37:19 +02:00
Translation updater bot 7f68591b0f Localisation updates from https://translatewiki.net.
Change-Id: I242e92f790312e1e182e78c653361cec5e206254
2015-08-26 21:48:25 +02:00
Ori Livneh eec31286bc Fix-up for I32bad5fd9
Don't return nonexistent variable $content, and don't bypass loadString / callFunction.

Change-Id: Iae493606d0167853c3c79536e35eeb23a54bb6d1
2015-08-25 17:36:26 -07:00
Ori Livneh 7bd4959b55 Cache Lua code files in APC
Cache Lua libraries in APC (if available) for up to 5 minutes. Always check the
file's mtime to avoid serving a stale copy.

This code path is hot enough that using APC makes a difference.

Change-Id: I32bad5fd9443c1759fe6dc91f8df2ac2f120d75b
2015-08-25 16:28:36 -07:00
Translation updater bot 7ff15fc4ad Localisation updates from https://translatewiki.net.
Change-Id: I4b85a219665770eecd59c3c54148237e6463b2f5
2015-08-25 21:58:09 +02:00
Derk-Jan Hartman 87bc426b6b Don't override other content added to the edit page
Per the comment in EditPage.php:
extensions should take care to _append_ to the present value

Change-Id: Icaf3f250b5f65768e50b7983b5f018c38a13490a
2015-08-24 22:38:46 +02:00
Translation updater bot 2257a89374 Localisation updates from https://translatewiki.net.
Change-Id: I7b933a8ed72eb08f469e42efb09dc9d627601ebf
2015-08-24 21:34:06 +02:00
Translation updater bot 9c42eb101d Localisation updates from https://translatewiki.net.
Change-Id: I516a95b3a8d53388f17faec3597db2093fa15b15
2015-08-23 21:38:43 +02:00
Translation updater bot eb0ac25c26 Localisation updates from https://translatewiki.net.
Change-Id: I60931996e586862b0434f778e52f42b5bcc9fa0c
2015-08-11 22:09:51 +02:00
Translation updater bot d58feccafd Localisation updates from https://translatewiki.net.
Change-Id: Ib2442cbd434b79fb19f157a6e7c8923a74783ff6
2015-08-08 21:15:01 +02:00
Translation updater bot fa0ee5ea71 Localisation updates from https://translatewiki.net.
Change-Id: I4384d2ee3a397c124a135e5eec37f64f166b1b86
2015-08-05 22:36:31 +02:00
Translation updater bot 100bf84897 Localisation updates from https://translatewiki.net.
Change-Id: Ie121919c117edacd080985311a5c255223279c4e
2015-08-02 21:53:45 +02:00
Translation updater bot e789d79d5d Localisation updates from https://translatewiki.net.
Change-Id: Ia03571b44b2e2c733e297e776091bebfa0e2652b
2015-07-30 21:12:32 +02:00
Translation updater bot 563a62f067 Localisation updates from https://translatewiki.net.
Change-Id: I6fb5ed3d4aba9e4c46410e8e4e681b4462b21d1e
2015-07-28 21:50:33 +02:00
Jackmcbarn 828c6cf513 Prevent leaking title fragments across invokes
Bug: T106951
Change-Id: Iace5d75deac3d8ffde6f3dec6a4f910dcb77d1e2
2015-07-27 10:46:23 -04:00
Translation updater bot cccdc1e524 Localisation updates from https://translatewiki.net.
Change-Id: I729d57c503b1a3e7855fd804af45d1e10d4fa20f
2015-07-24 21:09:21 +02:00