Last modified: 2014-10-28 14:53:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63090, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61090 - Math related Debian packages needed to test coverage of extension math
Math related Debian packages needed to test coverage of extension math
Status: REOPENED
Product: MediaWiki extensions
Classification: Unclassified
Math (Other open bugs)
master
All All
: Lowest enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 61051
  Show dependency treegraph
 
Reported: 2014-02-08 14:04 UTC by physikerwelt
Modified: 2014-10-28 14:53 UTC (History)
10 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description physikerwelt 2014-02-08 14:04:04 UTC
Recent deployments of changes made to the math extension demonstrate that a better test coverage is needed.
In the context of the MathSearch extension I created scripts for the automated creation of parser tests, based on sample renderings.
At some point in time jenkins stopped to run the parser tests for the extension math. Is that a temporary bug, or are parser tests deprecated.

I would prefere to (kind of abuse) phpunit tests for that rather than parser tests. i.e. they are easier to maintain and can produce better error messages.
Comment 1 Gerrit Notification Bot 2014-02-09 19:22:07 UTC
Change 112354 had a related patch set uploaded by Physikerwelt:
Test case generator

https://gerrit.wikimedia.org/r/112354
Comment 2 Gerrit Notification Bot 2014-02-09 19:23:47 UTC
Change 112354 merged by Physikerwelt:
Test case generator

https://gerrit.wikimedia.org/r/112354
Comment 3 physikerwelt 2014-02-09 19:25:33 UTC
.. mh I could not find a way to run the tests at jenkins. Locally the 387 tests run without problems and take about two minutes.
https://gerrit.wikimedia.org/r/#/c/112353/1
Comment 4 physikerwelt 2014-02-10 16:00:49 UTC
Now almost everything works with jenkins. Only the texvc executable is missing at jenkins. If jenkins was using vagrant we could simply enable the math role.
Comment 5 physikerwelt 2014-02-10 16:16:27 UTC
Here the link to the dataset used for the test generation. Feel free to change the page...
https://www.mediawiki.org/w/index.php?title=Extension:Math/CoverageTest
Comment 6 physikerwelt 2014-02-10 17:35:03 UTC
Now I'm waiting for a code review.
I don't want to add reviewers to the list that don't want to do a review. So I have left the list empty for now. Otherwise the status
Review in Progress
is misleading because it might indicate that somone is working on the code review.
Comment 7 Gerrit Notification Bot 2014-02-19 15:34:29 UTC
Change 114154 had a related patch set uploaded by Hashar:
Compile texvc in testsuite

https://gerrit.wikimedia.org/r/114154
Comment 8 Gerrit Notification Bot 2014-02-20 08:01:05 UTC
Change 114154 merged by jenkins-bot:
Compile texvccheck in testsuite

https://gerrit.wikimedia.org/r/114154
Comment 9 Gerrit Notification Bot 2014-02-20 08:01:30 UTC
Change 112353 had a related patch set uploaded by Physikerwelt:
Coverage tests for the Math extension

https://gerrit.wikimedia.org/r/112353
Comment 10 physikerwelt 2014-02-20 08:11:46 UTC
It's almost done.
Two things are still missing:

1) Jenkins fails to render some special commands like
\Coppa\coppa\varcoppa see https://integration.wikimedia.org/ci/job/mwext-Math-testextensions-master/656/console
I think this requires an extra latex package

2) I could not find a way to remove the lik to the old parser tests.
00:02:10.855 The data provider specified for MathParserTests::testParserTest is invalid.
00:02:10.856 Couldn't open file '/srv/ssd/jenkins-slave/workspace/mwext-Math-testextensions-master/extensions/Math/mathParserTests.txt'
Comment 11 Antoine "hashar" Musso (WMF) 2014-02-20 18:07:02 UTC
> 1) \Coppa\coppa\varcoppa  unrecognized
> I think this requires an extra latex package

I have installed texlive-latex-recommended which seems to be the one used in production. Might need something else?

Apparently \Coppa was added by https://www.mediawiki.org/wiki/Special:Code/MediaWiki/97014 for bug 27754. The commit message mention texlive-lang-greek which is not installed :/

We are also missing dvipng

In production the dependencies are provided by wikimedia-task-appserver which we can't install because it provides a bunch of packages we dont want (e.g.: php-apc).

On Jenkins slaves we would want to add: dvipng texlive-lang-all . Should be done in modules/contint/manifests/packages.pp


> 2) I could not find a way to remove the lik to the old parser tests.
> 00:02:10.855 The data provider specified for MathParserTests::testParserTest is invalid.
> 00:02:10.856 Couldn't open file '/srv/ssd/jenkins-slave/workspace/mwext-Math-testextensions-master/extensions/Math/mathParserTests.txt'

If those are no more valid, I guess we want to delete the file mathParserTests.txt and unregister it:

 $ git grep mathParserTests
 Math.php:$wgParserTestFiles[] = $dir . 'mathParserTests.txt';
 $
Comment 12 physikerwelt 2014-02-21 02:43:11 UTC
(In reply to Antoine "hashar" Musso from comment #11)
> > 1) \Coppa\coppa\varcoppa  unrecognized
> > I think this requires an extra latex package
> 
> I have installed texlive-latex-recommended which seems to be the one used in
> production. Might need something else?
> 
> Apparently \Coppa was added by
> https://www.mediawiki.org/wiki/Special:Code/MediaWiki/97014 for bug 27754.
> The commit message mention texlive-lang-greek which is not installed :/
If you look at the output it seems that this is the only pacakge which is still missing. Only 5 of 478 test failed
> 
> We are also missing dvipng
Why do you think so?
> 
> In production the dependencies are provided by wikimedia-task-appserver
> which we can't install because it provides a bunch of packages we dont want
> (e.g.: php-apc).
> 
> On Jenkins slaves we would want to add: dvipng texlive-lang-all . Should be
> done in modules/contint/manifests/packages.pp
Yes. I hope texvlive-lang-all includes teubner.sty
> 
> 
> > 2) I could not find a way to remove the lik to the old parser tests.
> > 00:02:10.855 The data provider specified for MathParserTests::testParserTest is invalid.
> > 00:02:10.856 Couldn't open file '/srv/ssd/jenkins-slave/workspace/mwext-Math-testextensions-master/extensions/Math/mathParserTests.txt'
> 
> If those are no more valid, I guess we want to delete the file
> mathParserTests.txt and unregister it:
> 
>  $ git grep mathParserTests
>  Math.php:$wgParserTestFiles[] = $dir . 'mathParserTests.txt';
>  $
Ah thank you. I just deleted everything but the test that tests math in HTML comments. However, I think that is unrelated to the math extension and should be moved to another place were parser tests are done.
Comment 13 physikerwelt 2014-02-24 03:38:40 UTC
@Hashar: Could you add texlive-lang-greek to the jenkins packages?
Comment 14 Gerrit Notification Bot 2014-02-24 05:13:49 UTC
Change 115102 had a related patch set uploaded by Physikerwelt:
Add texlive-lang-greek

https://gerrit.wikimedia.org/r/115102
Comment 15 Gerrit Notification Bot 2014-02-24 10:42:59 UTC
Change 115133 had a related patch set uploaded by Hashar:
Describe Math related packages in a class

https://gerrit.wikimedia.org/r/115133
Comment 16 Gerrit Notification Bot 2014-02-24 10:45:37 UTC
Change 115135 had a related patch set uploaded by Hashar:
Move math related packages to a puppet class

https://gerrit.wikimedia.org/r/115135
Comment 17 Gerrit Notification Bot 2014-02-24 10:47:48 UTC
Change 115102 abandoned by Physikerwelt:
Add texlive-lang-greek

Reason:
See Ifcf184b2f016f3dab6a1d32feab4162b7de51ca6

https://gerrit.wikimedia.org/r/115102
Comment 18 Antoine "hashar" Musso (WMF) 2014-02-24 10:54:41 UTC
I have manually installed the texlive packages on both Jenkins CI slaves gallium and lanthanum using:

apt-get install dvipng gsfonts texlive texlive-bibtex-extra texlive-font-utils texlive-fonts-extra texlive-lang-croatian texlive-lang-cyrillic texlive-lang-czechslovak texlive-lang-danish texlive-lang-dutch texlive-lang-finnish texlive-lang-french texlive-lang-german texlive-lang-greek texlive-lang-hungarian texlive-lang-italian texlive-lang-latin texlive-lang-mongolian texlive-lang-norwegian texlive-lang-other texlive-lang-polish texlive-lang-portuguese texlive-lang-spanish texlive-lang-swedish texlive-lang-vietnamese texlive-latex-extra texlive-math-extra texlive-pictures texlive-pstricks texlive-publishers 


That is essentially doing the same as applying the mediawiki::packages::math puppet class proposed by Gerrit change #115133
Comment 19 Antoine "hashar" Musso (WMF) 2014-02-24 11:01:16 UTC
Patchset 17 of https://gerrit.wikimedia.org/r/#/c/112353/ (Math extension) pass the tests http://integration.wikimedia.org/ci/job/mwext-Math-testextensions-master/663/

I guess we can close this bug, will make sure puppet/debian packages get reviewed and applied by ops. The changes are under my Gerrit dashboard :-]
Comment 20 physikerwelt 2014-02-24 20:11:26 UTC
Maybe keeping the bug open helps to get code review for
https://gerrit.wikimedia.org/r/#/c/112353/?
Otherwise we can close it.
Comment 21 Antoine "hashar" Musso (WMF) 2014-02-25 10:55:59 UTC
(In reply to physikerwelt from comment #20)
> Maybe keeping the bug open helps to get code review for
> https://gerrit.wikimedia.org/r/#/c/112353/?
> Otherwise we can close it.

Whatever works for you :-]  If there is any more troubles with tests you can always fill a new bug or reopen this one.
Comment 22 physikerwelt 2014-03-03 01:14:28 UTC
If someone wants to do a code review, please add yourself as reviewer:
https://gerrit.wikimedia.org/r/#/c/112353/
Comment 23 Gerrit Notification Bot 2014-03-11 15:47:19 UTC
Change 112353 merged by jenkins-bot:
Coverage tests for the Math extension

https://gerrit.wikimedia.org/r/112353
Comment 24 Antoine "hashar" Musso (WMF) 2014-03-13 15:39:51 UTC
I think this is completed. Moving to Math extension component for confirmation.
Comment 25 Gerrit Notification Bot 2014-10-28 14:51:28 UTC
Change 115133 abandoned by Hashar:
Describe Math related packages in a class

Reason:
The Math related packages are only needed on gallium/lanthanum and I installed them manually back in July.

I am abandoning both bit rotting Gerrit changes ( https://gerrit.wikimedia.org/r/#/c/115133/ and https://gerrit.wikimedia.org/r/#/c/115135/ ) since they clutter my Gerrit dashboard and is there no interest in migrating from wikimedia-task-appserver to puppet manifests).

I have reopened bug 61090 with lowest priority mentioning the packages still need to be migrated to puppet.

https://gerrit.wikimedia.org/r/115133
Comment 26 Gerrit Notification Bot 2014-10-28 14:51:32 UTC
Change 115135 abandoned by Hashar:
Move math related packages to a puppet class

Reason:
The Math related packages are only needed on gallium/lanthanum and I installed them manually back in July.

I am abandoning both bit rotting Gerrit changes ( https://gerrit.wikimedia.org/r/#/c/115133/ and https://gerrit.wikimedia.org/r/#/c/115135/ ) since they clutter my Gerrit dashboard and is there no interest in migrating from wikimedia-task-appserver to puppet manifests).

I have reopened bug 61090 with lowest priority mentioning the packages still need to be migrated to puppet.

https://gerrit.wikimedia.org/r/115135
Comment 27 Antoine "hashar" Musso (WMF) 2014-10-28 14:53:55 UTC
I have abandoned the Gerrit changes that migrated the Math packages definition from wikimedia-task-appserver to puppet.  Thus reopening and slightly rephrasing this bug as a remember to do the migration.

As a workaround, back in July, I have manually installed packages on both production slave servers gallium and lanthanum.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links