Type:
Task
Priority:
Major
Resolution:
Fixed
Let's add MTR tests which will load the default weight table allkeys.txt from Unicode-4.0.0 and Unicode-5.2.0 to check that the collations utf8mb4_unicode_ci and utf8mb4_unicode_520_ci work as expected.
These new tests will cover all characters in the range U+0000..U+10FFFF and will make sure that nothing breaks after upcoming changes soon.
The idea is to calculate weights for every Unicode character into two ways:
1. Using WEIGHT_STRING() - this is the weight that the MariaDB collation returns for the character.
2. Parsing implicit weights from the corresponding line in allkeys.txt (or by calculating its implicit weight) - this is the weight that the collation is supposed to return according to the Unicode standard.
Both calculated values must produce equal results for every character.
If for some character the weights calculated in two weights are different, it means the collation works incorrectly.
The only exception character is "FDFA ARABIC LIGATURE SALLALLAHOU ALAYHE WASALLAM". It has 18 weights in allkeys.txt, while MariaDB has a limit of 8 weights per character.
{"report":{"fcp":817.1999998092651,"ttfb":166.39999961853027,"pageVisibility":"visible","entityId":105681,"key":"jira.project.issue.view-issue","isInitial":true,"threshold":1000,"elementTimings":{},"userDeviceMemory":8,"userDeviceProcessors":64,"apdex":1,"journeyId":"8aa401ec-d2d7-4438-be3f-a0067d9c59d4","navigationType":0,"readyForUser":879.6999998092651,"redirectCount":0,"resourceLoadedEnd":871,"resourceLoadedStart":172.39999961853027,"resourceTiming":[{"duration":132.69999980926514,"initiatorType":"link","name":"https://jira.mariadb.org/s/2c21342762a6a02add1c328bed317ffd-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/css/_super/batch.css","startTime":172.39999961853027,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":172.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":305.0999994277954,"responseStart":0,"secureConnectionStart":0},{"duration":132.80000019073486,"initiatorType":"link","name":"https://jira.mariadb.org/s/7ebd35e77e471bc30ff0eba799ebc151-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/css/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.css?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&slack-enabled=true&whisper-enabled=true","startTime":172.69999980926514,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":172.69999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":305.5,"responseStart":0,"secureConnectionStart":0},{"duration":142,"initiatorType":"script","name":"https://jira.mariadb.org/s/0917945aaa57108d00c5076fea35e069-CDN/lu2cib/820016/12ta74/0a8bac35585be7fc6c9cc5a0464cd4cf/_/download/contextbatch/js/_super/batch.js?locale=en","startTime":172.80000019073486,"connectEnd":172.80000019073486,"connectStart":172.80000019073486,"domainLookupEnd":172.80000019073486,"domainLookupStart":172.80000019073486,"fetchStart":172.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":172.80000019073486,"responseEnd":314.80000019073486,"responseStart":314.80000019073486,"secureConnectionStart":172.80000019073486},{"duration":198.5999994277954,"initiatorType":"script","name":"https://jira.mariadb.org/s/2d8175ec2fa4c816e8023260bd8c1786-CDN/lu2cib/820016/12ta74/494e4c556ecbb29f90a3d3b4f09cb99c/_/download/contextbatch/js/jira.browse.project,project.issue.navigator,jira.view.issue,jira.general,jira.global,atl.general,-_super/batch.js?agile_global_admin_condition=true&jag=true&jira.create.linked.issue=true&locale=en&slack-enabled=true&whisper-enabled=true","startTime":173,"connectEnd":173,"connectStart":173,"domainLookupEnd":173,"domainLookupStart":173,"fetchStart":173,"redirectEnd":0,"redirectStart":0,"requestStart":173,"responseEnd":371.5999994277954,"responseStart":371.5999994277954,"secureConnectionStart":173},{"duration":202.80000019073486,"initiatorType":"script","name":"https://jira.mariadb.org/s/a9324d6758d385eb45c462685ad88f1d-CDN/lu2cib/820016/12ta74/c92c0caa9a024ae85b0ebdbed7fb4bd7/_/download/contextbatch/js/atl.global,-_super/batch.js?locale=en","startTime":173.19999980926514,"connectEnd":173.19999980926514,"connectStart":173.19999980926514,"domainLookupEnd":173.19999980926514,"domainLookupStart":173.19999980926514,"fetchStart":173.19999980926514,"redirectEnd":0,"redirectStart":0,"requestStart":173.19999980926514,"responseEnd":376,"responseStart":376,"secureConnectionStart":173.19999980926514},{"duration":203.10000038146973,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-en/jira.webresources:calendar-en.js","startTime":173.39999961853027,"connectEnd":173.39999961853027,"connectStart":173.39999961853027,"domainLookupEnd":173.39999961853027,"domainLookupStart":173.39999961853027,"fetchStart":173.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":173.39999961853027,"responseEnd":376.5,"responseStart":376.5,"secureConnectionStart":173.39999961853027},{"duration":203.5,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:calendar-localisation-moment/jira.webresources:calendar-localisation-moment.js","startTime":173.5999994277954,"connectEnd":173.5999994277954,"connectStart":173.5999994277954,"domainLookupEnd":173.5999994277954,"domainLookupStart":173.5999994277954,"fetchStart":173.5999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":173.5999994277954,"responseEnd":377.0999994277954,"responseStart":377.0999994277954,"secureConnectionStart":173.5999994277954},{"duration":289.3999996185303,"initiatorType":"link","name":"https://jira.mariadb.org/s/b04b06a02d1959df322d9cded3aeecc1-CDN/lu2cib/820016/12ta74/a2ff6aa845ffc9a1d22fe23d9ee791fc/_/download/contextbatch/css/jira.global.look-and-feel,-_super/batch.css","startTime":173.80000019073486,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":173.80000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":463.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":203.9000005722046,"initiatorType":"script","name":"https://jira.mariadb.org/rest/api/1.0/shortcuts/820016/47140b6e0a9bc2e4913da06536125810/shortcuts.js?context=issuenavigation&context=issueaction","startTime":173.89999961853027,"connectEnd":173.89999961853027,"connectStart":173.89999961853027,"domainLookupEnd":173.89999961853027,"domainLookupStart":173.89999961853027,"fetchStart":173.89999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":173.89999961853027,"responseEnd":377.80000019073486,"responseStart":377.80000019073486,"secureConnectionStart":173.89999961853027},{"duration":289.1000003814697,"initiatorType":"link","name":"https://jira.mariadb.org/s/3ac36323ba5e4eb0af2aa7ac7211b4bb-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/css/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.css?jira.create.linked.issue=true","startTime":174.0999994277954,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":174.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":463.19999980926514,"responseStart":0,"secureConnectionStart":0},{"duration":204.29999923706055,"initiatorType":"script","name":"https://jira.mariadb.org/s/5d5e8fe91fbc506585e83ea3b62ccc4b-CDN/lu2cib/820016/12ta74/d176f0986478cc64f24226b3d20c140d/_/download/contextbatch/js/com.atlassian.jira.projects.sidebar.init,-_super,-project.issue.navigator,-jira.view.issue/batch.js?jira.create.linked.issue=true&locale=en","startTime":174.30000019073486,"connectEnd":174.30000019073486,"connectStart":174.30000019073486,"domainLookupEnd":174.30000019073486,"domainLookupStart":174.30000019073486,"fetchStart":174.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":174.30000019073486,"responseEnd":378.5999994277954,"responseStart":378.5999994277954,"secureConnectionStart":174.30000019073486},{"duration":363.29999923706055,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-js/jira.webresources:bigpipe-js.js","startTime":175.30000019073486,"connectEnd":175.30000019073486,"connectStart":175.30000019073486,"domainLookupEnd":175.30000019073486,"domainLookupStart":175.30000019073486,"fetchStart":175.30000019073486,"redirectEnd":0,"redirectStart":0,"requestStart":175.30000019073486,"responseEnd":538.5999994277954,"responseStart":538.5999994277954,"secureConnectionStart":175.30000019073486},{"duration":695.6000003814697,"initiatorType":"script","name":"https://jira.mariadb.org/s/d41d8cd98f00b204e9800998ecf8427e-CDN/lu2cib/820016/12ta74/1.0/_/download/batch/jira.webresources:bigpipe-init/jira.webresources:bigpipe-init.js","startTime":175.39999961853027,"connectEnd":175.39999961853027,"connectStart":175.39999961853027,"domainLookupEnd":175.39999961853027,"domainLookupStart":175.39999961853027,"fetchStart":175.39999961853027,"redirectEnd":0,"redirectStart":0,"requestStart":175.39999961853027,"responseEnd":871,"responseStart":871,"secureConnectionStart":175.39999961853027},{"duration":329.20000076293945,"initiatorType":"xmlhttprequest","name":"https://jira.mariadb.org/rest/webResources/1.0/resources","startTime":480.0999994277954,"connectEnd":480.0999994277954,"connectStart":480.0999994277954,"domainLookupEnd":480.0999994277954,"domainLookupStart":480.0999994277954,"fetchStart":480.0999994277954,"redirectEnd":0,"redirectStart":0,"requestStart":480.0999994277954,"responseEnd":809.3000001907349,"responseStart":809.3000001907349,"secureConnectionStart":480.0999994277954},{"duration":222.30000019073486,"initiatorType":"script","name":"https://www.google-analytics.com/analytics.js","startTime":798,"connectEnd":0,"connectStart":0,"domainLookupEnd":0,"domainLookupStart":0,"fetchStart":798,"redirectEnd":0,"redirectStart":0,"requestStart":0,"responseEnd":1020.3000001907349,"responseStart":0,"secureConnectionStart":0}],"fetchStart":0,"domainLookupStart":0,"domainLookupEnd":0,"connectStart":0,"connectEnd":0,"requestStart":14,"responseStart":166,"responseEnd":168,"domLoading":170,"domInteractive":980,"domContentLoadedEventStart":980,"domContentLoadedEventEnd":1020,"domComplete":1791,"loadEventStart":1791,"loadEventEnd":1792,"userAgent":"Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)","marks":[{"name":"bigPipe.sidebar-id.start","time":965.3999996185303},{"name":"bigPipe.sidebar-id.end","time":966.3999996185303},{"name":"bigPipe.activity-panel-pipe-id.start","time":966.5999994277954},{"name":"bigPipe.activity-panel-pipe-id.end","time":970},{"name":"activityTabFullyLoaded","time":1031.3999996185303}],"measures":[],"correlationId":"f2a0ecc907dc11","effectiveType":"4g","downlink":10,"rtt":0,"serverDuration":94,"dbReadsTimeInMs":12,"dbConnsTimeInMs":21,"applicationHash":"9d11dbea5f4be3d4cc21f03a88dd11d8c8687422","experiments":[]}}