Closed Bug 1239988 Opened 9 years ago Closed 9 years ago

Remove packaging for firefox-ui-tests (and its dependency in firefox-ui-harness)

Categories

(Testing :: Firefox UI Tests, defect)

defect
Not set
normal

Tracking

(firefox48 fixed)

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

Attachments

(4 files)

As of now we are packaging firefox-ui-tests to be able to access the resources folder and the manifests. We should drop those dependencies and make the tests a normal folder. With that we would also be able to run a single test via mach once bug 1237179 got implemented. http://hg.mozilla.org/mozilla-central/file/default/testing/firefox-ui/harness/firefox_ui_harness/runners/base.py#l13 I referenced the mirrored code here because it uses the packaging for all parts, which will also land soon in our github repository.
Depends on: 1237179
Removing the package for tests would mean the user has to specify the path to the local test files when calling the firefox ui scripts. To ensure that this would not cause to confusion right now, I would wait with this bug until a proper documentation is in place. See bug 1237552 for details.
Depends on: 1237552
Thinking more about it I would wait even a bit more until we have our tests running via TaskCluster on inbound and try. If we do this now developers won't notice a difference because they use mach, but everyone else who uses the github repo would have to specify the path. I suggest to wait for bug 1237550.
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
This will remove any dependency for firefox-ui-tests from inside firefox-ui-harness. Affected test types are functional and update tests. To keep update tests working and testable I also added them to the mach command. Review commit: https://reviewboard.mozilla.org/r/39205/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/39205/
Attachment #8728972 - Flags: review?(mjzffr)
The firefox-ui-tests package is no longer required. Removing it will allow us later to move tests to the appropriate places in the tree. The commit also has updates for the build system and mozharness. Review commit: https://reviewboard.mozilla.org/r/39207/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/39207/
Attachment #8728973 - Flags: review?(mjzffr)
The resources folder should actually not be part of the tests folder. It contains test data for all tests and once tests are moved to other places the tests folder will not exist anymore. Review commit: https://reviewboard.mozilla.org/r/39209/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/39209/
Attachment #8728974 - Flags: review?(mjzffr)
This was always a hack which made it easier for us to trigger both type of tests at once. Now with mach and mozharness we should finally get rid of it. Review commit: https://reviewboard.mozilla.org/r/39211/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/39211/
Attachment #8728975 - Flags: review?(mjzffr)
Blocks: 1237552
No longer depends on: 1237552
Comment on attachment 8728972 [details] MozReview Request: Bug 1239988 - Remove dependency for firefox-ui-tests in firefox-ui-harness. r?maja_zf https://reviewboard.mozilla.org/r/39205/#review35905 ::: testing/firefox-ui/mach_commands.py:71 (Diff revision 1) > - parser.verify_usage(args) > + return test_types[testtype]['cli_module'].cli(args=args) This will return 1, 10, or 0, whereas only 1 or 0 was possible in the original version. I don't know if mach has any assumptions around only 1 or 0 being possible; highlighting just in case.
Attachment #8728972 - Flags: review?(mjzffr) → review+
Comment on attachment 8728973 [details] MozReview Request: Bug 1239988 - Remove packaging for firefox-ui-tests. r?maja_zf https://reviewboard.mozilla.org/r/39207/#review35909 ::: testing/mozharness/mozharness/mozilla/testing/firefox_ui_tests.py:215 (Diff revision 1) > - 'abs_test_install_dir': tests_dir, > + 'abs_test_install_dir': abs_tests_install_dir, It seems you don't really need the abs_tests_install_dir variable.
Attachment #8728973 - Flags: review?(mjzffr) → review+
Comment on attachment 8728974 [details] MozReview Request: Bug 1239988 - Move resources for firefox-ui-tests out of tests folder. r?maja_zf https://reviewboard.mozilla.org/r/39209/#review35913
Comment on attachment 8728975 [details] MozReview Request: Bug 1239988 - Remove top-level manifest for functional and puppeteer tests. r?maja_zf https://reviewboard.mozilla.org/r/39211/#review35915
https://reviewboard.mozilla.org/r/39205/#review35905 > This will return 1, 10, or 0, whereas only 1 or 0 was possible in the original version. I don't know if mach has any assumptions around only 1 or 0 being possible; highlighting just in case. Maybe I better revert this change then. It's clearly not related to the other changes.
https://reviewboard.mozilla.org/r/39207/#review35909 > It seems you don't really need the abs_tests_install_dir variable. We need this for the requirements.txt file under `/tests/configs` below. So I cannot remove this.
Comment on attachment 8728972 [details] MozReview Request: Bug 1239988 - Remove dependency for firefox-ui-tests in firefox-ui-harness. r?maja_zf Review request updated; see interdiff: https://reviewboard.mozilla.org/r/39205/diff/1-2/
Comment on attachment 8728973 [details] MozReview Request: Bug 1239988 - Remove packaging for firefox-ui-tests. r?maja_zf Review request updated; see interdiff: https://reviewboard.mozilla.org/r/39207/diff/1-2/
Comment on attachment 8728974 [details] MozReview Request: Bug 1239988 - Move resources for firefox-ui-tests out of tests folder. r?maja_zf Review request updated; see interdiff: https://reviewboard.mozilla.org/r/39209/diff/1-2/
Comment on attachment 8728975 [details] MozReview Request: Bug 1239988 - Remove top-level manifest for functional and puppeteer tests. r?maja_zf Review request updated; see interdiff: https://reviewboard.mozilla.org/r/39211/diff/1-2/
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: