As mentioned in
-
Install php7.4-wikidiff2-dbgsym_1.14.0-0+wmf1+buster1_amd64.deb and php7.4-wikidiff2_1.14.0-0+wmf1+buster1_amd64.deb on;- deployment-mediawiki11
- deployment-mediawiki12
- Testing TBC
As mentioned in
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Exclude equality when comparing similarity metrics | mediawiki/php/wikidiff2 | master | +1 -1 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | akosiaris | T340087 Deploy wikidiff2 1.14.1 | |||
Resolved | TheresNoTime | T340542 Install wikidiff2 1.14.1 deb on deployment-prep & test |
Mentioned in SAL (#wikimedia-releng) [2023-06-27T12:23:21Z] <TheresNoTime> deployment-prep: ran sudo apt install /home/samtar/php7.4-wikidiff2_1.14.0-0+wmf1+buster1_amd64.deb on deployment-mediawiki[11-12] for T340542, watching logs
nb.
samtar@deployment-mediawiki12:~$ php --ri wikidiff2 | grep version wikidiff2 version => 1.13.0 samtar@deployment-mediawiki12:~$ sudo apt install ./php7.4-wikidiff2_1.14.0-0+wmf1+buster1_amd64.deb Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'php7.4-wikidiff2' instead of './php7.4-wikidiff2_1.14.0-0+wmf1+buster1_amd64.deb' The following packages were automatically installed and are no longer required: fonts-beng-extra fonts-deva-extra fonts-gubbi fonts-guru-extra fonts-kalapi fonts-lohit-beng-assamese fonts-lohit-beng-bengali fonts-lohit-deva fonts-lohit-gujr fonts-lohit-guru fonts-lohit-knda fonts-lohit-mlym fonts-lohit-orya fonts-lohit-taml fonts-lohit-taml-classical fonts-lohit-telu fonts-nakula fonts-navilu fonts-orya-extra fonts-sahadeva fonts-samyak-deva fonts-samyak-gujr fonts-samyak-mlym fonts-samyak-taml fonts-smc-anjalioldlipi fonts-smc-chilanka fonts-smc-dyuthi fonts-smc-karumbi fonts-smc-keraleeyam fonts-smc-manjari fonts-smc-meera fonts-smc-rachana fonts-smc-raghumalayalamsans fonts-smc-suruma fonts-smc-uroob fonts-telu-extra fonts-tlwg-garuda fonts-tlwg-garuda-ttf fonts-tlwg-kinnari fonts-tlwg-kinnari-ttf fonts-tlwg-laksaman fonts-tlwg-laksaman-ttf fonts-tlwg-loma fonts-tlwg-loma-ttf fonts-tlwg-mono fonts-tlwg-mono-ttf fonts-tlwg-norasi fonts-tlwg-norasi-ttf fonts-tlwg-purisa fonts-tlwg-purisa-ttf fonts-tlwg-sawasdee fonts-tlwg-sawasdee-ttf fonts-tlwg-typewriter fonts-tlwg-typewriter-ttf fonts-tlwg-typist fonts-tlwg-typist-ttf fonts-tlwg-typo fonts-tlwg-typo-ttf fonts-tlwg-umpush fonts-tlwg-umpush-ttf fonts-tlwg-waree fonts-tlwg-waree-ttf fonts-yrsa-rasa libaec0 libcfitsio7 libexif12 libfontenc1 libgfortran5 libgsf-1-114 libgsf-1-common libharfbuzz-icu0 libhdf5-103 libilmbase23 libkpathsea6 libmatio4 libopenexr23 liborc-0.4-0 libpotrace0 libptexenc1 libquadmath0 libsynctex2 libsz2 libteckit0 libtexlua52 libtexlua53 libtexluajit2 libtidy5deb1 libwoff1 libxaw7 libxmu6 libxt6 libxxhash0 libzzip-0-13 t1utils tex-common xfonts-encodings xfonts-utils Use 'sudo apt autoremove' to remove them. The following packages will be upgraded: php7.4-wikidiff2 1 upgraded, 0 newly installed, 0 to remove and 5 not upgraded. Need to get 0 B/77.9 kB of archives. After this operation, 34.8 kB of additional disk space will be used. Get:1 /home/samtar/php7.4-wikidiff2_1.14.0-0+wmf1+buster1_amd64.deb php7.4-wikidiff2 amd64 1.14.0-0+wmf1+buster1 [77.9 kB] (Reading database ... 75181 files and directories currently installed.) Preparing to unpack .../php7.4-wikidiff2_1.14.0-0+wmf1+buster1_amd64.deb ... Unpacking php7.4-wikidiff2 (1.14.0-0+wmf1+buster1) over (1.13.0-1+wmf1+buster1) ... Setting up php7.4-wikidiff2 (1.14.0-0+wmf1+buster1) ... Configuration file '/etc/php/7.4/mods-available/wikidiff2.ini' ==> Modified (by you or by a script) since installation. ==> Package distributor has shipped an updated version. ==> Keeping old config file as default. Processing triggers for php7.4-fpm (1:7.4.33-1+0~20221108.73+debian10~1.gbpa00350a+wmf10u2) ... NOTICE: Not enabling PHP 7.4 FPM by default. NOTICE: To enable PHP 7.4 FPM in Apache2 do: NOTICE: a2enmod proxy_fcgi setenvif NOTICE: a2enconf php7.4-fpm NOTICE: You are seeing this message because you have apache2 package installed. Processing triggers for php7.4-cli (1:7.4.33-1+0~20221108.73+debian10~1.gbpa00350a+wmf10u2) ... samtar@deployment-mediawiki12:~$ php --ri wikidiff2 | grep version wikidiff2 version => 1.14.0 samtar@deployment-mediawiki12:~$ pwd /home/samtar samtar@deployment-mediawiki12:~$ ls php7.4-wikidiff2_1.14.0-0+wmf1+buster1_amd64.deb
I tested API:Compare on most of the beta wikis[1], just checking that it could generate a diff without returning an exception. For each wiki, I tested a few hundred diffs[2] (sometimes less if the wiki did not have many articles). I tested both inline and two-column diffs.
I kept an eye on beta's logstash. I did not see any errors that seemed to be associated with diffs.
There are circumstances where diffs are different with the latest wikidiff2. I believe, with the default settings, wikidiff2 sometimes allows for more permissive matches[3].
For example, compare:
Or compare:
General question; should we (attempt to) tweak the settings to more closely match the current wikidiff2 match behaviour prior to moving forward with T340087: Deploy wikidiff2 1.14.1, or is the matching behaviour change "a universal improvement" which can be kept as-is?
The similarity between the LHS and RHS is exactly equal to the threshold of 0.2. In e2ead0b14af3b63ab35b5094b90134376d7887b6 I accidentally changed the relevant comparison from > to >=. So the lines are judged to be similar in the new wikidiff2. So it is indeed possible to make the new wikidiff2 work like the old one by increasing wikidiff2.change_threshold from 0.2 to 0.2000001. But it is probably better to just revert the change to the operator. Avoiding user-visible changes will make it easier to detect bugs.
Change 935188 had a related patch set uploaded (by Tim Starling; author: Tim Starling):
[mediawiki/php/wikidiff2@master] Exclude equality when comparing similarity metrics
Change 935188 merged by jenkins-bot:
[mediawiki/php/wikidiff2@master] Exclude equality when comparing similarity metrics
@MoritzMuehlenhoff (see above for context) โ we've released 1.14.1 to fix a bug, could you rebuild the debs and host them, so I can install the update on the beta cluster?
1.14.1 now installed on beta
samtar@deployment-mediawiki12:~$ php --ri wikidiff2 | grep version wikidiff2 version => 1.14.1
@GMikesell-WMF and I have finished our testing here. We have not found any more problems. Moving to Done.