[Wikitech-l] Re: Code coverage for JavaScript testing?
On Tue, Oct 26, 2021 at 2:31 AM planetenxin wrote: > Is there a generic approach, how to get some coverage reports for the > JavaScript parts of MW and MW extensions? > Is https://doc.wikimedia.org/cover/ helpful in your case? -- | Greg Grossmeier GPG: B2FA 27B1 F7EB D327 6B8E | | Dir. Engineering Productivity A18D 1138 8E47 FAC8 1C7D | ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
[Wikitech-l] Removing the "fonts" submodule from operations/mediawiki-config
Hi, tl;dr: The "fonts" submodule in operations/mediawiki-config will go away For a very long time, we've had a Git repository, operations/mediawiki-config/fonts, that contains a random assortment of font files copied out of an Ubuntu appserver back in 2008. My understanding is that these fonts were only ever used by the EasyTimeline extension via ploticus. The current README ends with: We can presumably dump it if we kill ploticus running from app servers. -- brion 2008-12-09 ...which has now happened with the migration to Shellbox. During the build process, the fonts are copied out of the Git repository into the Shellbox container[1]. I intend to: 1) remove the fonts submodule from the operations/mediawiki-config repository, removing it from all appservers[2]. 2) Empty out most of the fonts repository so it only contains the 3 fonts we actually use for Timelines (FreeSans, FreeSansWMF, unifont)[3]. I am mostly sending this email in case someone else is using this repository for fonts or expecting this path to exist on appservers, in which case, please say something. Semi-relatedly, there is an open task to remove all the fonts installed via Debian packages from appservers, now that all thumbnailing and image generation happens on thumbor/shellbox servers[4]. [1] https://gerrit.wikimedia.org/g/mediawiki/libs/Shellbox/+/e6c19d0927b65e3c507f095d04cc19b3f4f00750/.pipeline/blubber.yaml#113 [2] https://gerrit.wikimedia.org/r/723652 [3] https://gerrit.wikimedia.org/r/732792 [4] https://phabricator.wikimedia.org/T294378 -- Kunal ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
[Wikitech-l] Selenium tests are getting failed for Popups extension
Hi, I am trying to run selenium test suite for Popups extension. I have followed this https://www.mediawiki.org/wiki/MediaWiki-Docker/Extension/Popups. Some of the test cases are getting failed. [0-0] RUNNING in chrome - /tests/selenium/specs/page_previews.js [0-0] AssertionError [ERR_ASSERTION] in "Dwelling on a valid page link I should see a page preview" AssertionError [ERR_ASSERTION]: Page preview is shown. at Context. (/core/extensions/Popups/tests/selenium/specs/page_previews.js:18:3) [0-0] AssertionError [ERR_ASSERTION] in "Dwelling on a valid page link Quickly hovering, abandoning and re-hovering a link shows page preview" AssertionError [ERR_ASSERTION]: Page preview is shown. at Context. (/core/extensions/Popups/tests/selenium/specs/page_previews.js:31:3) [0-0] FAILED in chrome - /tests/selenium/specs/page_previews.js [0-1] (node:6255) ExperimentalWarning: The dns.promises API is experimental [0-1] (node:6255) ExperimentalWarning: The fs.promises API is experimental [0-1] RUNNING in chrome - /tests/selenium/specs/reference_previews.js [0-1] PASSED in chrome - /tests/selenium/specs/reference_previews.js "dot" Reporter: F.F Spec Files: 1 passed, 1 failed, 2 total (100% completed) in 00:00:55 Any dependencies that I need to add? #selenium #Popups #extensions #testsuite #testcases ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
[Wikitech-l] Re: Regarding Contribution in your Organization
Hi Ayush and welcome! On Tue, 2021-10-26 at 19:26 +0530, Ayush Gadre wrote: > I would love to join your open source community and learn from your > mentors. I'm looking forward to being accepted to your group to learn > more about the projects. So, I hereby request you to please add me in > your mailing list or on your channel. Thanks for your interest! Please see https://www.mediawiki.org/wiki/New_Developers Thanks, andre -- Andre Klapper (he/him) | Bugwrangler / Developer Advocate https://blogs.gnome.org/aklapper/ ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
[Wikitech-l] Regarding Contribution in your Organization
Hello! I am Ayush Gadre. Sophomore at Institute of Engineering and Technology DAVV Indore. I want to learn about open source and want to contribute in your organization. 1. Education : - B.Tech 2. Experience :- Web development Internship from LetsGrowMore 3. Skills :- HTML, CSS, JS and React JS I would love to join your open source community and learn from your mentors. I'm looking forward to being accepted to your group to learn more about the projects. So, I hereby request you to please add me in your mailing list or on your channel. Github :- https://github.com/Ayushgadre Linkedin :- https://www.linkedin.com/in/ayushgadre/ Thank you for your consideration. Regards, Ayush Gadre ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
[Wikitech-l] Code coverage for JavaScript testing?
[1] describes how to do QUnit testing but it does not mention if / how to get some coverage reports (e.g. with the help of Istanbul). While searching for an answer, I found this [2] post about testing challenges for Extension:Popups and solutions implemented for this specific extension. Is there a generic approach, how to get some coverage reports for the JavaScript parts of MW and MW extensions? /Alexander [1] https://www.mediawiki.org/wiki/Manual:JavaScript_unit_testing [2] https://phabricator.wikimedia.org/phame/post/view/96/fast_and_isolated_js_unit_tests/ ___ Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-le...@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/