Closed Bug 836772 Opened 11 years ago Closed 11 years ago

Grab Gaia UI tests from Mercurial (rather than needing to mirror it into the gaia repo)

Categories

(Release Engineering :: General, defect, P2)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: armenzg, Assigned: jgriffin)

References

Details

Attachments

(1 file, 1 obsolete file)

We'll need to modify the mozharness script to clone http://hg.mozilla.org/integration/gaia-ui-tests/, install gaiatest from there (instead of gaia-tests.zip, although we'll continue to install Marionette from gaia-tests.zip), and then run the tests from the cloned repo.
Assignee: nobody → armenzg
Priority: -- → P2
If someone could grab this while I work on bug 834354 it will be great.
Assignee: armenzg → nobody
I'll try to take a stab at this Tuesday.
Assignee: nobody → jgriffin
This seems to work ok locally, although I can only test up to the point where mozpool is invoked.This causes us to use both the tests and the gaiatest package from the cloned gaia-ui-tests repo; we still install Marionette from the --tests-url gaia-tests.zip package.
Attachment #710313 - Flags: review?(aki)
Comment on attachment 710313 [details] [diff] [review]
Use gaia-ui-tests from cloned repo,

I think this works.

* You may want to keep virtualenv_config_options in self.config_options, though it's not required.  It mainly gives you virtualenv_path.

* I think this is a good way to keep the gaia ui tests from falling out of date, with the caveat that this is another moving target for the sheriffs to have to account for should tests start failing.  If we go down this road, we probably need to output the gaia-ui-tests revision in a TinderboxPrint.  I'm not sure how stable the repo is, but tagging or branching so that we're on a known-good set of tests might be advisable too, depending.

If, aiui, we're pretty much just hiding these if they go orange anyway, then this probably won't make things any worse, however.
Attachment #710313 - Flags: review?(aki) → review+
(In reply to Aki Sasaki [:aki] from comment #4)
> Comment on attachment 710313 [details] [diff] [review]
> Use gaia-ui-tests from cloned repo,
> 
> I think this works.
> 
> * You may want to keep virtualenv_config_options in self.config_options,
> though it's not required.  It mainly gives you virtualenv_path.

testing_config_options already includes virtualenv_config_options: http://hg.mozilla.org/build/mozharness/file/6f01e94c6de1/mozharness/mozilla/testing/testbase.py#l51

> 
> * I think this is a good way to keep the gaia ui tests from falling out of
> date, with the caveat that this is another moving target for the sheriffs to
> have to account for should tests start failing.  If we go down this road, we
> probably need to output the gaia-ui-tests revision in a TinderboxPrint.  I'm
> not sure how stable the repo is, but tagging or branching so that we're on a
> known-good set of tests might be advisable too, depending.
> 
> If, aiui, we're pretty much just hiding these if they go orange anyway, then
> this probably won't make things any worse, however.

Yes, this is not a perfect solution either, but I think it will be better than having the gaia-ui-tests always be out-of-date, and requiring manual merging to gaia (which we don't have a mechanism to test).

I'll add something to output the gaia-ui-tests revision in the log.
Updated with TinderboxPrint for the gaia-ui-tests revision
Attachment #710392 - Flags: review?(aki)
Attachment #710313 - Attachment is obsolete: true
Attachment #710392 - Flags: review?(aki) → review+
Comment on attachment 710392 [details] [diff] [review]
Use gaia-ui-tests from cloned repo,

http://hg.mozilla.org/build/mozharness/rev/34a94dd97259

I'll retrigger a run on cedar to make sure I didn't break anything.
Attachment #710392 - Flags: checked-in+
This works now.  All the tests are failing, but that's due to a gaia-ui-test issue that needs to be fixed.  I'll file a PR for that.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Depends on: 839118
Product: mozilla.org → Release Engineering
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: