mozilla-mobile / mobile-test-eng

Task tracking for Mobile Test Engineering Team
2 stars 0 forks source link

XCResult script CSV upload portion #139

Open AaronMT opened 3 years ago

AaronMT commented 3 years ago

Currently https://github.com/AaronMT/xcresult_extract/blob/main/xcresult_extract.py can be ran on command line with a supplied project xcodeproj and scheme and will output formatted in comma separated values. The script uses the newest XCResult file so should be ran often. By piping the output into a CSV we can save a temporary file (*.csv) and upload to a public-read only bucket on Google Storage Cloud. This public read-only CSV can be consumed by Google Sheets with an IMPORTDATA function for our viewing.

% python3 xcresult_extract.py -project ~/Mozilla/firefox-ios/Client.xcodeproj -scheme "Fennec_Enterprise_XCUITests" | tee ~/Desktop/test1.csv | gsutil -h "Cache-Control:max-age=0,no-cache" cp -a public-read ~/Desktop/test1.csv gs://test-eng-perf

Requirements an authenticated GC account and access to the bucket.

AaronMT commented 3 years ago
AaronMT commented 3 years ago

Bitrise Env:

$BITRISE_PROJECT_PATH "Fennec_Enterprise_XCUITests"

Script that clones https://github.com/AaronMT/xcresult_extract.git