Find
C
ase-sensitive
R
egexp search
Path
mozilla-central
/
taskcluster
/
scripts
/
tests
Navigation
Enable keyboard shortcuts
Name
Description
Size
copy-artifacts-from-ftl.py
This script is designed to automate the process of fetching artifacts (either baseline profile or crash logs) from Google Cloud Storage (GCS) for devices in Firebase TestLab. It is intended to be run as part of a Taskcluster job following a scheduled test task, or as part of a Taskcluster that runs baseline profile generation on Firebase TestLab. The script requires the presence of a `matrix_ids.json` artifact in the results directory and the availability of the `gsutil` command in the environment. The script performs the following operations: - Loads the `matrix_ids.json` artifact to identify the GCS paths for the artifacts. - In the case of crash logs, identifies failed devices based on the outcomes specified in the `matrix_ids.json` artifact. - Fetches the specified artifact type (baseline profiles or crash logs) from the specified GCS paths. - Copies the fetched artifacts to the current worker artifact results directory. The script is configured to log its operations and errors, providing visibility into its execution process. It uses the `gsutil` command-line tool to interact with GCS, ensuring compatibility with the GCS environment. Usage: python3 copy-artifacts-from-ftl.py <artifact_type> artifact_type: "baseline_profile" or "crash_log" Requirements: - The `matrix_ids.json` artifact must be present in the results directory. - The `gsutil` command must be available in the environment. - The script should be run after a scheduled test task in a Taskcluster job or as part of a scheduled baseline profile task in a Taskcluster job Output: - Artifacts are copied to the current worker artifact results directory.
10445
test-lab.py
Configure logging for the script.
8186