Page MenuHomePhabricator
Paste P7127

raw PGP/MIME email
ActivePublic

Authored by Legoktm on May 15 2018, 1:35 AM.
Tags
None
Referenced Files
F18271804: raw PGP/MIME email
May 15 2018, 1:35 AM
Subscribers
None
From - Fri Feb 02 01:25:14 2018
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00800000
X-Mozilla-Keys:
To: wikitech-l <wikitech-l@lists.wikimedia.org>
From: Kunal Mehta <legoktm@member.fsf.org>
Subject: Test coverage reports for patchsets
Message-ID: <9eca9b88-f959-0535-64af-e5a4f7ce3b16@member.fsf.org>
Date: Fri, 2 Feb 2018 01:25:11 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.5.2
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
protocol="application/pgp-signature";
boundary="yWsqtc0RoOztopDrn8iXhYnPqNi6Mkm0p"
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--yWsqtc0RoOztopDrn8iXhYnPqNi6Mkm0p
Content-Type: multipart/mixed; boundary="jbalwt6n4AC3xsjXWnhLKctP7bT5HAe4M";
protected-headers="v1"
From: Kunal Mehta <legoktm@member.fsf.org>
To: wikitech-l <wikitech-l@lists.wikimedia.org>
Message-ID: <9eca9b88-f959-0535-64af-e5a4f7ce3b16@member.fsf.org>
Subject: Test coverage reports for patchsets
--jbalwt6n4AC3xsjXWnhLKctP7bT5HAe4M
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
Hi,
I've been working on a tool, phpunit-patch-coverage[0], that tries to
provide test coverage reports for patches before they are merged[1].
Since it takes 2-3 hours to do a full coverage report for MediaWiki
core, the tool figures out what files were modified, and runs those tests=
=2E
For now I've set up a job that runs for MediaWiki core, and leaves a
comment like "PHP test coverage increased (or stayed the same)"[2] or
"PHP test coverage decreased :-("[3]. This job is slow so it is run
separately from unit tests to avoid delaying that feedback.
I'm sure there are bugs, please report them in the Phabricator
project[4], along with any feature requests on how we can make this
more useful. This should be considered beta quality software for now :-).=
[0] https://packagist.org/packages/mediawiki/phpunit-patch-coverage
[1] https://phabricator.wikimedia.org/T101544
[2] https://gerrit.wikimedia.org/r/#/c/407592/
[3] https://gerrit.wikimedia.org/r/#/c/407157/2
[4] https://phabricator.wikimedia.org/project/profile/3222/
-- Legoktm
--jbalwt6n4AC3xsjXWnhLKctP7bT5HAe4M--
--yWsqtc0RoOztopDrn8iXhYnPqNi6Mkm0p
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQJLBAEBCgA1FiEE+h6fmkHn9DUCyl1jUvyOe+23/KIFAlp0LncXHGxlZ29rdG1A
bWVtYmVyLmZzZi5vcmcACgkQUvyOe+23/KIBMw//YFsv5ZRcSsWIChCsaikd1ixa
RW15blNBkbsx+47wbYOZpwAJ3z7WaB0zO8KBkuOsK3Bt5bj3f3DLJ8nK2FuT7DZV
PLvdB2xkqNecJ9I3MKvhb5NFarJzEy3U6DKhKlEaIhXpHl7C5Jz1rz4EgfhWkcEs
YJR3cbIVV1Pey8A2Js4voMp9FYw1BqCGCrsslosG3azsagnCWmBPIuVFck6+MmN0
TWNxVkN+zk2Uwe1P5by/yCac/MrXnOvpykCFjmMxigBgUr2ViPLGMx0JaOeAhIOA
Ui4bzCcsMGSTsBA/dz3Cgx3fLGV/upiesrdw9Q4txOYmvEruxL//Ffj1/s4N/MRv
Y20dB6Lt2brvV2aUN/nkRa/GllPluXcM7gvLOGtGcF+MmNd9mTqqHnyglnCnYJWk
3xQFGgt8V3CgX7RDESUfOHGDpDTfTO/JGEVAc0tkYv+WIVUruCwcS/u52WA0jm4P
su3xCREwwPRC5JFdQY4XVzYsJkG8sBOp5tzraO+PmPbqcXNtC5gXPaCshKy4eMmX
CsDPAB08wZCO/W4VATnGaA8VYFymTIyNdjJGShLABS7gXYaSWL+OoKtjH1bw9P5A
KI0TBFLvrVzeMLRsQEiFIDRzCct1RVwEX8gCwDYBj8rbY0m3WbxOXRIyqu7Ttqaq
6bRvxOIFpGTRKXfWYis=
=40cD
-----END PGP SIGNATURE-----
--yWsqtc0RoOztopDrn8iXhYnPqNi6Mkm0p--