Closed Bug 1107336 Opened 10 years ago Closed 9 years ago

Split marionette automation API into its own package and not have a monolithic package

Categories

(Testing :: Marionette Client and Harness, defect, P1)

defect

Tracking

(firefox38 fixed, firefox39 fixed)

RESOLVED FIXED
mozilla39
Tracking Status
firefox38 --- fixed
firefox39 --- fixed

People

(Reporter: automatedtester, Assigned: automatedtester)

References

Details

(Keywords: pi-marionette-client)

Attachments

(13 files, 1 obsolete file)

39 bytes, text/x-review-board-request
jgriffin
: review+
automatedtester
: review+
Details
39 bytes, text/x-review-board-request
jgriffin
: review+
automatedtester
: review+
Details
39 bytes, text/x-review-board-request
automatedtester
: review+
jgriffin
: review+
Details
39 bytes, text/x-review-board-request
jgriffin
: review+
automatedtester
: review+
Details
39 bytes, text/x-review-board-request
jgriffin
: review+
automatedtester
: review+
Details
39 bytes, text/x-review-board-request
jgriffin
: review+
automatedtester
: review+
Details
39 bytes, text/x-review-board-request
jgriffin
: review+
automatedtester
: review+
Details
39 bytes, text/x-review-board-request
jgriffin
: review+
automatedtester
: review+
Details
39 bytes, text/x-review-board-request
jgriffin
: review+
automatedtester
: review+
Details
39 bytes, text/x-review-board-request
jgriffin
: review+
automatedtester
: review+
Details
39 bytes, text/x-review-board-request
jgriffin
: review+
automatedtester
: review+
Details
39 bytes, text/x-review-board-request
jgriffin
: review+
automatedtester
: review+
Details
39 bytes, text/x-review-board-request
jgriffin
: review+
automatedtester
: review+
Details
We need to split this so that it allows us to be able to drop in packages when we need them
OS: Mac OS X → All
Hardware: x86 → All
You need to update testsuite-targets.mk to package the new marionette-driver package in tests.zip:

http://dxr.mozilla.org/mozilla-central/source/testing/testsuite-targets.mk#536

You can follow the same pattern that was used for packaging the transport.
Assignee: nobody → dburns
Depends on: 1118201
Priority: -- → P1
There's at least 1 loop test (browser/components/loop/test/functional/test_1_browser_call.py) that doesn't run in automation but might want to have its imports updated with this bug.
(In reply to Chris Manchester [:chmanchester] from comment #7)
> There's at least 1 loop test
> (browser/components/loop/test/functional/test_1_browser_call.py) that
> doesn't run in automation but might want to have its imports updated with
> this bug.

Updated in my patch queue
Summary: Split marionette.py into it's own package and not have a monolithic package → Split marionette automation API into it's own package and not have a monolithic package
Blocks: 1120364
Attachment #8550540 - Flags: review?(jgriffin)
/r/2603 - Bug 1107336: Update mach for newly created MarionetteDriver
/r/2605 - Bug 1107336: Update Marionette unit tests to use Marionette Driver modules
/r/2607 - Bug 1107336: Update layout tests that use marionette to use new Marionette Driver module
/r/2609 - Bug 1107336: Move marionette code for driving the browser out of the runner
/r/2611 - Bug 1107336: Update testsuite targets to make sure MarionetteDriver is available
/r/2613 - Bug 1107336: update tests not covered by manifest for when they are ready
/r/2615 - Bug 1107336: Update imports to new Marionette Driver from runner
/r/2617 - Bug 1107336: correct loop imports for marionette
/r/2619 - Bug 1107336: selection tests imports for marionette
/r/2621 - Bug 1107336: Final clean up of imports
/r/2623 - Bug 1107336: Update imports for loop tests
/r/2625 - Bug 1107336: fix rebase errors

Pull down these commits:

hg pull review -r 6de0373a8df9044f8c9c813a69d6e4de5527d6c7
Comment on attachment 8550540 [details]
MozReview Request: bz://1107336/AutomatedTester

https://reviewboard.mozilla.org/r/2601/#review1935

Try looks good, and this patch does too, although it's large so I may have missed something!
Attachment #8550540 - Flags: review?(jgriffin) → review+
have added in item in comment 14
no sheriffs around currently so will land first thing tomorrow (~9 hours from now)
No longer blocks: 1120364
Comment on attachment 8550540 [details]
MozReview Request: bz://1107336/AutomatedTester

/r/2603 - Bug 1107336: Update b2g desktop imports to use marionette driver; r=ahal
/r/2605 - Bug 1107336: Update mach for newly created MarionetteDriver; r=jgriffin
/r/2607 - Bug 1107336: Update layout tests that use marionette to use new Marionette Driver module; r=jgriffin
/r/2609 - Bug 1107336: Move marionette code for driving the browser out of the runner; r=jgriffin
/r/2611 - Bug 1107336: Update testsuite targets to make sure MarionetteDriver is available; r=jgriffin
/r/2613 - Bug 1107336: update tests not covered by manifest for when they are ready; r=jgriffin
/r/2615 - Bug 1107336: Update imports to new Marionette Driver from runner; r=jgriffin
/r/2617 - Bug 1107336: correct loop imports for marionette; r=jgriffin
/r/2619 - Bug 1107336: selection tests imports for marionette; r=jgriffin
/r/2621 - Bug 1107336: Update imports for loop tests; r=jgriffin
/r/2623 - Bug 1107336: update Marionette-Client dependencies to include marionette driver; r=jgriffin
/r/2625 - Bug 1107336: Update Marionette unit tests to use Marionette Driver modules; r=jgriffin
/r/3397 - Bug 1107336: Update b2g desktop imports of marionette; r=jgriffin

Pull down these commits:

hg pull review -r b7643d78d660b06aee4e5fbe4b8e6701b99e1667
Attachment #8550540 - Flags: review?(jgriffin)
Attachment #8550540 - Flags: review?(ahalberstadt)
Attachment #8550540 - Flags: review+
for some reason my try push is not picking up my changes to WPTRunner that landed in https://github.com/w3c/wptrunner/pull/70 and have been synced to m-c :/
Comment on attachment 8550540 [details]
MozReview Request: bz://1107336/AutomatedTester

Note: this is an r+ on the single commit I was flagged for in the review request.
Attachment #8550540 - Flags: review?(ahalberstadt) → review+
Comment on attachment 8550540 [details]
MozReview Request: bz://1107336/AutomatedTester

https://reviewboard.mozilla.org/r/2601/#review2793

::: browser/components/loop/test/functional/test_1_browser_call.py
(Diff revision 2)
> -    def check_video(self, selector):

Did you really mean to delete content from this test?

Looks good; we should ask jgraham about the wpt failures.  For the Gip failures, we'll need push a fix to the Gaia repo, which will be a bit tricky. :(
Attachment #8550540 - Flags: review?(jgriffin)
Depends on: 1131356
patch up in bug 1131356
Comment on attachment 8550540 [details]
MozReview Request: bz://1107336/AutomatedTester

/r/2603 - Bug 1107336: Update b2g desktop imports to use marionette driver; r=ahal
/r/2605 - Bug 1107336: Update mach for newly created MarionetteDriver; r=jgriffin
/r/2607 - Bug 1107336: Update layout tests that use marionette to use new Marionette Driver module; r=jgriffin
/r/2609 - Bug 1107336: Move marionette code for driving the browser out of the runner; r=jgriffin
/r/2611 - Bug 1107336: Update testsuite targets to make sure MarionetteDriver is available; r=jgriffin
/r/2613 - Bug 1107336: update tests not covered by manifest for when they are ready; r=jgriffin
/r/2615 - Bug 1107336: Update imports to new Marionette Driver from runner; r=jgriffin
/r/2617 - Bug 1107336: correct loop imports for marionette; r=jgriffin
/r/2619 - Bug 1107336: selection tests imports for marionette; r=jgriffin
/r/2621 - Bug 1107336: update Marionette-Client dependencies to include marionette driver; r=jgriffin
/r/2623 - Bug 1107336: Update Marionette unit tests to use Marionette Driver modules; r=jgriffin
/r/2625 - Bug 1107336: Update b2g desktop imports of marionette; r=jgriffin

Pull down these commits:

hg pull review -r 9faeb4777def4f9f71cb670484cce1d9210f59ad
Attachment #8550540 - Flags: review?(jgriffin)
Attachment #8550540 - Flags: review?(ahalberstadt)
Attachment #8550540 - Flags: review+
Comment on attachment 8550540 [details]
MozReview Request: bz://1107336/AutomatedTester

/r/2603 - Bug 1107336: Update b2g desktop imports to use marionette driver; r=ahal
/r/2605 - Bug 1107336: Update mach for newly created MarionetteDriver; r=jgriffin
/r/2607 - Bug 1107336: Update layout tests that use marionette to use new Marionette Driver module; r=jgriffin
/r/2609 - Bug 1107336: Move marionette code for driving the browser out of the runner; r=jgriffin
/r/2611 - Bug 1107336: Update testsuite targets to make sure MarionetteDriver is available; r=jgriffin
/r/2613 - Bug 1107336: update tests not covered by manifest for when they are ready; r=jgriffin
/r/2615 - Bug 1107336: Update imports to new Marionette Driver from runner; r=jgriffin
/r/2617 - Bug 1107336: correct loop imports for marionette; r=jgriffin
/r/2619 - Bug 1107336: selection tests imports for marionette; r=jgriffin
/r/2621 - Bug 1107336: update Marionette-Client dependencies to include marionette driver; r=jgriffin
/r/2623 - Bug 1107336: Update Marionette unit tests to use Marionette Driver modules; r=jgriffin
/r/2625 - Bug 1107336: Update b2g desktop imports of marionette; r=jgriffin

Pull down these commits:

hg pull review -r 7e952380edfde4a4f1a4e05a0631fe3d69437953
Comment on attachment 8550540 [details]
MozReview Request: bz://1107336/AutomatedTester

https://reviewboard.mozilla.org/r/2601/#review2903

Thanks for the update; lgtm
Attachment #8550540 - Flags: review?(jgriffin) → review+
Summary: Split marionette automation API into it's own package and not have a monolithic package → Split marionette automation API into its own package and not have a monolithic package
Attachment #8550540 - Flags: review?(ahalberstadt) → review+
wptrunner patch up for review https://critic.hoppipolla.co.uk/r/4035

Everything looks green! \o/
Comment on attachment 8550540 [details]
MozReview Request: bz://1107336/AutomatedTester

/r/2603 - Bug 1107336: Update loop tests to use new Marionette Driver; r=jgriffin
/r/2605 - Bug 1107336: Update b2g desktop ref test runner to use new Marionette Driver; r=ahal
/r/2607 - Bug 1107336: Update layout tests to use new Marionette Driver; r=jgriffin
/r/2609 - Bug 1107336: update build and test targets to use new marionette driver; r=jgriffin
/r/2611 - Bug 1107336: Update marionette unit tests to use new marionette driver; r=jgriffin
/r/2613 - Bug 1107336: update marionette client runners to use the new marionette driver; r=jgriffin
/r/2615 - Bug 1107336: Create Marionette Driver containining all of the automation API code; r=jgriffin

Pull down these commits:

hg pull review -r e9ee645e6c62eca51ac7fd49a33651f90bcfe317
Attachment #8550540 - Flags: review?(jgriffin)
Attachment #8550540 - Flags: review?(ahalberstadt)
Attachment #8550540 - Flags: review+
Comment on attachment 8550540 [details]
MozReview Request: bz://1107336/AutomatedTester

https://reviewboard.mozilla.org/r/2601/#review3413

Ship It!
Attachment #8550540 - Flags: review?(jgriffin) → review+
Comment on attachment 8550540 [details]
MozReview Request: bz://1107336/AutomatedTester

Carrying r+ forward
Attachment #8550540 - Flags: review?(ahalberstadt) → review+
With that patch landed we fail to install the marionette-driver package because of the following failure:

  Running setup.py (path:/home/henrik/.virtualenvs/test/build/marionette-driver/setup.py) egg_info for package marionette-driver
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/home/henrik/.virtualenvs/test/build/marionette-driver/setup.py", line 8, in <module>
        with open('requirements.txt') as f:
    IOError: [Errno 2] No such file or directory: 'requirements.txt'

I would suggest to do a follow-up fix on this bug, which will make it easier to maintain for a backport to the aurora branch for Firefox 38.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Sorry the problem here is really that marionette-driver has not been released yet. Lets get this fixed via bug 1124667 ASAP.
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
The underlying problem is that marionette-driver does not have a MANIFEST.in file and that's why requirements.txt is not getting packaged. I took care of this in my patch on bug 1124667.
Target Milestone: mozilla39 → mozilla38
Target Milestone: mozilla38 → mozilla39
Attachment #8550540 - Attachment is obsolete: true
Attachment #8618779 - Flags: review+
Attachment #8618780 - Flags: review+
Attachment #8618781 - Flags: review+
Attachment #8618782 - Flags: review+
Attachment #8618783 - Flags: review+
Attachment #8618784 - Flags: review+
Attachment #8618785 - Flags: review+
Attachment #8618786 - Flags: review+
Attachment #8618787 - Flags: review+
Attachment #8618788 - Flags: review+
Attachment #8618789 - Flags: review+
Attachment #8618790 - Flags: review+
Attachment #8618791 - Flags: review+
Product: Testing → Remote Protocol

Moving bugs for Marionette client due to component changes.

Component: Marionette → Marionette Client and Harness
Product: Remote Protocol → Testing
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: