On 02/09/2016 08:08, Henrik Skupin wrote:
Gijs Kruitbosch wrote on 09/01/2016 06:24 PM:

As I did over IRC, I would like to strongly object to the continued use
of per-test-type subfolders in our test directories. You can already use
a specific mach command per test type, and the tests are listed in
different manifests, *and* there's all the different filename
conventions (browser_, test_....html, test_....xul, <whatever>.js) that
further point out what type of test you're looking at. The subfolders
add nothing useful.

The problematic piece here will be the package-tests step which
currently picks complete subfolders. It would mean if we mix-up tests
for firefox-ui-tests and eg. mochitests all would end-up twice in the
common.tests.zip archive. If we want to get away from using subfolders
we would have to improve the test archiver
(https://dxr.mozilla.org/mozilla-central/source/python/mozbuild/mozbuild/action/test_archive.py)
first to not only collect the directories of referenced manifests, but
also only pick those tests which are referenced and leave all others
behind. This would apply to all test suites currently covered by this
mozbuild action.

I am not familiar with this bit of our build architecture, but as far as I can tell from a quick look it builds bits of the zipfile off the objdir. So it collects mochitests from $OBJDIR/_tests/testing/mochitest, where (again, AFAICT) things get installed via manifests.

We should be doing the same for firefox-ui tests. Not just to avoid duplication of files in archives, but because otherwise, if we want to add new tests somewhere else, we both have to add the manifests to the build system and then modify this build system python file to make sure they get included in the test archive. That would be wrong.

In case I'm wrong (always possible!): As I noted in my other email, there are other cases where we mix tests, so if the archiver is really that dumb then maybe we should fix the archiver. :-)

~ Gijs
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to