mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 19:25:43 +00:00
4c0867917e
If a Buildbot test job is scheduled through TaskCluster (The Buildbot Bridge supports this), then the generated Buildbot Change associated to a test job does not have the installer and test url necessary to Mozharness to run the test job. Since we can't modify how a test job is called on Buildbot (we can't switch from --read-builbot-config to --installer-url and --test-url), we have to detect that there is a 'taskId' defined for the test job (this indicates that the job was scheduled through the BBB) and based on suc 'taskID' we can determine the parent task and the artifacts it uploaded. Changes to ScriptMixin: * Refactor _retry_download_file() to _retry_download() * If no file is specified when calling_retry_download() we call _urlopen() instead of _download_file() * Add load_json_url() method to fetch the contents of a json file without writing to disk Changes to TestingMixin: * If the job is triggered through Buildbot we look for the Changes object, otherwise, we look for artifacts of the parent task * Added functions find_artifacts_from_buildbot_changes (original behaviour) and find_artifacts_from_taskcluster (functionality via TaskClusterArtifactsFinderMixin) * Call self.exception() instead of raising exceptions + minor fixes New TaskClusterArtifactsFinderMixin: * It allows any inheriting class to find the artifacts of the build job which triggers this test job --HG-- extra : commitid : 2KCqLM0WFcK extra : rebase_source : 77358aab22a74e0f3d77f8807b1488c3c3f9161f |
||
---|---|---|
.. | ||
config | ||
crashtest | ||
docker | ||
gtest | ||
instrumentation | ||
luciddream | ||
marionette | ||
mochitest | ||
modules | ||
mozbase | ||
mozharness | ||
profiles | ||
runtimes | ||
specialpowers | ||
talos | ||
taskcluster | ||
tools | ||
tps | ||
web-platform | ||
xpcshell | ||
cppunittest.ini | ||
mach_commands.py | ||
machine-configuration.json | ||
README.txt | ||
remotecppunittests.py | ||
runcppunittests.py | ||
testsuite-targets.mk |
Common testing tools for mozilla codebase projects, test suite definitions for automated test runs, tests that don't fit anywhere else, and other fun stuff