Closed Bug 1197162 Opened 9 years ago Closed 9 years ago

Move remote tests into the functional folder and use tags for identification


(Testing :: Firefox UI Tests, defect)

43 Branch
Not set


(firefox40 fixed, firefox41 fixed, firefox42 fixed, firefox43 fixed, firefox-esr38 fixed)

Tracking Status
firefox40 --- fixed
firefox41 --- fixed
firefox42 --- fixed
firefox43 --- fixed
firefox-esr38 --- fixed


(Reporter: whimboo, Assigned: whimboo)



(1 file)

Right now we have stored the tests which access remote data in a separate test folder beside the functional tests. Given that in general those type of tests are the same it doesn't make sense to have them located at different locations.

The one thing which is important is that there has to be an option to only let the local tests run. This would be necessary once our tests are in mozilla-central and buildbot/taskcluster is running our tests. Given their requirements no externally hosted data should be accessed.

I briefly talked with Chris and we think that the --tags option should be the right thing to use here. I will have to explore how this will look like.

With that change we would only have to add a single script to mozharness instead of two, and also on Treeherder the results would be cut by 50% which is immense.
What we can do here and which seems totally sufficient is to add indeed a tag for tests which test data is locally hosted. It will look like that in the manifest file:

> []
> tags = local
> []

Given that we do not care about remote tests only, I would only add tags for local. That way only the local tests can be executed via buildbot/taskcluster. It can be done the following way:

> firefox-ui-tests --binary=path --tag=local
Ok, I reverted my idea and also added a remote tag to those tests which are getting run remotely. Thing is that with default settings for manifest file we do not really have to add that many lines. The folders which contain more tests with local data, get `local` as default. For remote data the other way around. For individual tests in such a folder which differ I overwrote the tag for the test itself.
With this patch we no longer have dedicated remote tests. All tests (beside the update tests) are in the same folder now.

Please keep in mind that the landing of the patch will break mozmill-ci until an appropriate patch for it has been landed too. Until that happened I can temporarily disable remote tests for the landed branches very easily.
Attachment #8651027 - Flags: review?(jmaher)
We want to get this changed for every supported branch.
Summary: Move remote tests into the functional folder and use tags to for identification → Move remote tests into the functional folder and use tags for identification
The following issue will keep track of the necessary changes in our CI:
Comment on attachment 8651027 [details] [review]

I didn't run this locally, but 2 passes through the changes look good.  I don't see anything of great concern and really like the use of tags.
Attachment #8651027 - Flags: review?(jmaher) → review+ (master)

When it works well over the weekend I'm going to backport this early next week.
Target Milestone: --- → Firefox 43
Product: Mozilla QA → Testing
You need to log in before you can comment on or make changes to this bug.