wiki.techinc.nl/tests/phpunit/includes
Timo Tijhof 9f516f1d3b resourceloader: Reduce width of module hash from 7 chars to 5
In a nut shell:

* We very often (52% of modules on enwiki) pad the hash with a zero,
  which means the amount of bits we currently compute already fit in
  6 characters already for most modules. For some modules (3%) we
  even padded two zeroes.

* For the (now documented) use cases, the space of 78 Giga
  (78 billion, or 78 milliard) seems more than we need. The space of
  60 million should be enough.

  This follows-up dfd046412f from 2016, which previously shortened the hash
  down from 8 chars of base 64 (or 12 chars of hex) to 7 chars of base 32.
  Before that change, the space was 281 Tera (64^8, or 16^12).

For more details see the added inline comment for ResourceLoader::makeHash,
and also the data at <https://phabricator.wikimedia.org/T229245>.

Bug: T229245
Change-Id: I9ad11772a33b3a44cb625275b1d7353e1393ee49
2019-09-02 01:25:48 +00:00
..
actions Replace User::isAllowed with PermissionManager. 2019-08-20 14:43:51 -07:00
api Fix method/function names case mismatch in core files 2019-08-31 23:17:51 +00:00
auth Fix method/function names case mismatch in core files 2019-08-31 23:17:51 +00:00
block Allow CompositeBlock::appliesToRight to return null when unsure 2019-09-01 21:41:18 +01:00
cache Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
changes Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
changetags ChangeTags: turn private getPrevTags() into public getTags() 2019-08-07 15:19:20 +02:00
collation Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
config Test that classes use all their ServiceOptions 2019-08-19 20:42:28 +03:00
content Add UnknownContentHandler. 2019-08-29 10:43:11 +00:00
context
db Revert "rdbms: make LoadBalancer::reallyOpenConnection() handle setting DBO_TRX" 2019-08-25 16:39:33 +00:00
debug Load GlobalFunctions.php to tests/phpunit/bootstrap.php 2019-07-14 01:28:07 +02:00
deferred deferred: make DeferredUpdates::attemptUpdate() use callback owners for $fnameTrxOwner 2019-08-03 05:48:02 +00:00
diff Merge "Call resetServices() when setting globals in tests" 2019-08-29 13:21:27 +00:00
editpage Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
exception Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
externalstore externalstore: unbreak writes to non-default storage clusters due to isReadOnly() 2019-07-16 22:08:00 -07:00
filebackend Fix FileBackendGroup test for some configurations 2019-08-29 16:32:40 +03:00
filerepo Merge "Add some LocalRepo integration tests" 2019-08-30 11:42:55 +00:00
GlobalFunctions Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
htmlform Load GlobalFunctions.php to tests/phpunit/bootstrap.php 2019-07-14 01:28:07 +02:00
http Split HttpTest and SessionTest to unit and integration 2019-07-13 21:01:09 +02:00
import Merge "Inline trivial object creation helpers in tests" 2019-06-11 20:55:44 +00:00
interwiki Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
jobqueue Various fixes and simplifications to RefreshLinksJob::runTitle() 2019-07-11 06:06:02 +00:00
language language: Move ConverterRule to includes/ and add test case 2019-08-26 12:32:14 +01:00
libs Merge "Optimize HashRing to avoid hashing for the common single-location case" 2019-08-31 17:59:08 +00:00
linkeddata linkeddata: Simplity PageDataRequestHandler test setup 2019-04-01 14:20:19 +00:00
linker objectcache: Hard deprecate ObjectCache::getMainWANInstance() 2019-07-09 09:29:57 +00:00
logging Revert "Make LocalisationCache a service" 2019-08-26 18:28:26 +02:00
mail
media Deprecate wrapper SVGMetadataExtractor::getMetadata 2019-07-26 12:07:54 -07:00
Message MessageFormatterFactory 2019-08-28 12:28:05 +10:00
Navigation Refactor buildPrevNextNavigation 2019-06-05 19:32:27 -04:00
objectcache Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
page Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
pager
parser parser: document what 0/null rev IDs do when given to Parser::parse 2019-08-21 11:13:49 -07:00
password Remove hard deprecation of PasswordPolicyChecks::checkPopularPasswordBlacklist 2019-08-27 17:53:27 +01:00
Permissions Merge "Move User::getAllRights to PermissionManager." 2019-08-29 21:00:23 +00:00
poolcounter Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
preferences Test that classes use all their ServiceOptions 2019-08-19 20:42:28 +03:00
rcfeed Clear test user registry between tests 2019-08-14 10:27:21 +03:00
registration Move unit tests, round III 2019-07-09 22:06:59 +02:00
resourceloader resourceloader: Reduce width of module hash from 7 chars to 5 2019-09-02 01:25:48 +00:00
Rest Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
Revision Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
search Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
session objectcache: add MediumSpecificBagOStuff base class for non-proxy subclasses 2019-07-19 13:01:46 -07:00
shell Load GlobalFunctions.php to tests/phpunit/bootstrap.php 2019-07-14 01:28:07 +02:00
site Load GlobalFunctions.php to tests/phpunit/bootstrap.php 2019-07-14 01:28:07 +02:00
skins Move trivially compatible tests to the unit tests suite 2019-06-30 15:23:53 +02:00
sparql Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
specialpage Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
specials Fix method/function names case mismatch in core files 2019-08-31 23:17:51 +00:00
Storage Introduce BlobStore::getBlobBatch method 2019-08-30 09:40:49 +00:00
title Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
upload Relax HTML sniffing checks on image upload 2019-06-07 14:21:00 -07:00
user Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
utils Load GlobalFunctions.php to tests/phpunit/bootstrap.php 2019-07-14 01:28:07 +02:00
watcheditem createNoOpMock() method for PHPUnit tests 2019-08-29 18:00:37 +03:00
ActorMigrationTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
AutoLoaderTest.php
AutopromoteTest.php
CategoryTest.php Avoid hitting DB in Category getters when they have the required info 2019-04-04 12:40:14 -07:00
CommentStoreCommentTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
CommentStoreTest.php Add missing use for IMaintainableDatabase 2019-02-20 20:57:18 +01:00
CommentStoreTest.sql Mostly drop old comment schemas 2019-02-07 16:59:27 +11:00
ContentSecurityPolicyTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
DeprecatedGlobalTest.php
DiffHistoryBlobTest.php Remove comments literally documenting unit tests being unit tests 2019-02-19 15:18:12 +01:00
EditPageTest.php EditPage: Migrate Title::userCan() calls to PermissionManager 2019-05-18 20:49:21 +02:00
ExportTest.php
ExtraParserTest.php During special page transclusion, save and restore context's WikiPage too 2018-10-19 22:19:52 +02:00
FauxRequestTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
GitInfoTest.php
HooksTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
HtmlTest.php Don't process "all" option in Html::namespaceSelectorOptions 2019-07-04 10:17:59 +02:00
LinkerTest.php Make userLink() not fail too hard on false and null. 2019-06-05 14:51:57 +02:00
LinkFilterTest.php Use new externallinks.el_index_60 field 2018-11-12 22:33:18 +00:00
ListToggleTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MagicWordFactoryTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MediaWikiServicesTest.php Revert "Separate MediaWiki unit and integration tests" 2019-06-13 23:00:08 +00:00
MediaWikiTest.php Add @coversNothing for left over tests and enable sniff 2019-02-02 21:53:40 -08:00
MediaWikiVersionFetcherTest.php Unset all globals unneeded for unit tests, assert correct directory 2019-07-09 14:09:29 -04:00
MergeHistoryTest.php Don't use new MCR schema without using DB 2019-08-13 17:05:24 +03:00
MessageTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
MovePageTest.php Merge "createNoOpMock() method for PHPUnit tests" 2019-08-29 18:15:43 +00:00
MultiHttpClientTest.php Revert "Convert MultiHttpClient to use Guzzle" 2019-03-06 09:53:32 +01:00
MWTimestampTest.php
OutputPageTest.php resourceloader: Reduce width of module hash from 7 chars to 5 2019-09-02 01:25:48 +00:00
PagePropsTest.php Mass conversion to NamespaceInfo 2019-05-07 22:44:56 +02:00
PrefixSearchTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
ReadOnlyModeTest.php Don't pass Config to service constructors 2019-05-02 11:33:56 +03:00
RevisionDbTestBase.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
RevisionMcrDbTest.php Allow getRevisionText to function without the text table. 2018-10-17 10:54:39 -04:00
RevisionMcrReadNewDbTest.php Normalize use of "INNER JOIN" to "JOIN" in database queries 2019-03-06 09:17:30 -08:00
RevisionMcrWriteBothDbTest.php Add missing newline between <?php and namespace/use section 2019-06-03 13:36:48 +00:00
RevisionNoContentModelDbTest.php Remove usages of 'text' flag in revision-related getQueryInfo() calls 2019-04-16 15:23:14 -05:00
RevisionPreMcrDbTest.php Remove usages of 'text' flag in revision-related getQueryInfo() calls 2019-04-16 15:23:14 -05:00
RevisionTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
RevisionTestModifyableContent.php
RevisionTestModifyableContentHandler.php
SampleTest.php Replace old URLs in SampleTest 2019-07-10 15:00:12 +01:00
SiteStatsTest.php jobqueue: add GenericParameterJob and RunnableJob interface 2019-04-08 11:05:23 -07:00
StatusTest.php Use [...] instead of array(...) in PHP comments and documentation 2019-06-17 21:15:09 +02:00
SystemBlockTest.php Separate Block into AbstractBlock, Block and SystemBlock 2019-05-07 17:36:31 -05:00
TemplateCategoriesTest.php Re-apply: Factors out permissions check from User into PermissionManager service 2019-06-28 13:19:38 -07:00
TemplateParserTest.php
TestLogger.php Use [...] instead of array(...) in PHP comments and documentation 2019-06-17 21:15:09 +02:00
TestUser.php Drop last bits of oracle 2019-08-14 23:44:22 +02:00
TestUserRegistry.php tests: Remove use of wfRandomString() for test fixtures 2019-05-06 17:22:03 +00:00
TimeAdjustTest.php
TitleMethodsTest.php Hard-deprecate Title::moveTo and friends 2019-05-28 11:52:36 -05:00
TitlePermissionTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
TitleTest.php Remove unneeded overrideMwServices/resetServices 2019-08-29 14:26:18 +03:00
WebRequestTest.php Rename CDN config variables to be generic, deprecating the old names 2019-05-24 21:09:22 +00:00
WikiMapTest.php Removed deprecated WikiMap::getWikiIdFromDomain() method 2019-07-14 01:17:31 +01:00
XmlTest.php ResourceLoader: Add support for packageFiles 2019-02-05 22:05:02 +00:00