47
edits
(Add mach try fuzzy) |
(Remove mentions of classic try syntax, as it is no longer supported: https://groups.google.com/a/mozilla.org/g/dev-platform/c/OtwGNKEUXew/m/MEXTRW3aAQAJ ; also replace ini with toml) |
||
| Line 5: | Line 5: | ||
Try jobs can be scheduled via the web interface or via the "mach try" command. | Try jobs can be scheduled via the web interface or via the "mach try" command. | ||
Symbols for the following [https://web.archive.org/web/20191005073152/https://developer.mozilla.org/en-US/docs/Mozilla/QA/Automated_testing#In_production test suites] are shown in the test results on Treeherder. Test suite identifiers for use with "-t" in "mach try" are listed below the main bullet points: | Symbols for the following [https://web.archive.org/web/20191005073152/https://developer.mozilla.org/en-US/docs/Mozilla/QA/Automated_testing#In_production test suites] are shown in the test results on Treeherder. Test suite identifiers for use with "-t" in "mach try" are listed below the main bullet points: | ||
| Line 27: | Line 20: | ||
Pass --artifact to speed up builds (only if your changes do not require recompilation of C++/Rust code, such as Java (Android) and JavaScript-only changes). | Pass --artifact to speed up builds (only if your changes do not require recompilation of C++/Rust code, such as Java (Android) and JavaScript-only changes). | ||
Tests can be run in a debug build | Tests can be run in a debug build, an optimized build, or both. It is recommended to run both, because together they can catch more potential failures: | ||
* Some tests are only enabled in one of the two build types because of intermittent/permanent test failures ("skip-if" in the . | * Some tests are only enabled in one of the two build types because of intermittent/permanent test failures ("skip-if" in the test manifests (.toml files) that describe the tests). | ||
* Debug builds usually run slower than optimized builds, and reveal weaknesses in tests (e.g. time-sensitive race conditions). | * Debug builds usually run slower than optimized builds, and reveal weaknesses in tests (e.g. time-sensitive race conditions). | ||
* Debug builds have additional checks (e.g. validation of extension API schema against the actual implementation). | * Debug builds have additional checks (e.g. validation of extension API schema against the actual implementation). | ||
| Line 36: | Line 29: | ||
By default, "mach try" is an alias for [https://firefox-source-docs.mozilla.org/tools/try/selectors/auto.html "mach try auto"], which attempts to select some relevant tests. If unsure about what to run, "mach try" is recommended. | By default, "mach try" is an alias for [https://firefox-source-docs.mozilla.org/tools/try/selectors/auto.html "mach try auto"], which attempts to select some relevant tests. If unsure about what to run, "mach try" is recommended. | ||
To have more control over the tests to run, | To have more control over the tests to run, [https://firefox-source-docs.mozilla.org/tools/try/selectors/fuzzy.html "mach try fuzzy"] can be used instead. | ||
=== mach try fuzzy === | === mach try fuzzy === | ||
| Line 50: | Line 43: | ||
If in doubt about what to use in the query (<nowiki>-q</nowiki>), run <nowiki>./mach try fuzzy --no-push</nowiki> to launch an interactive program that displays the matched jobs. | If in doubt about what to use in the query (<nowiki>-q</nowiki>), run <nowiki>./mach try fuzzy --no-push</nowiki> to launch an interactive program that displays the matched jobs. | ||
== Test failures == | == Test failures == | ||
edits