-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Download unit test results from GCS (#511)
* Download unit test results from GCS * Use self-hosted runner
- Loading branch information
Showing
1 changed file
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,13 +19,24 @@ on: | |
default: false | ||
|
||
jobs: | ||
linux-x64: | ||
runs-on: ubuntu-latest | ||
android: | ||
runs-on: [self-hosted, linux, X64] | ||
steps: | ||
- name: Checkout | ||
uses: kaidokert/[email protected] | ||
with: | ||
fetch-depth: 1 | ||
- name: Set up Cloud SDK | ||
uses: isarkis/setup-gcloud@40dce7857b354839efac498d3632050f568090b6 # v1.1.1 | ||
- name: Download Unit Test Results from GCS | ||
if: always() | ||
shell: bash | ||
env: | ||
DOWNLOAD_PATH: unit-test-results.zip | ||
GCS_PATH: gs://cobalt-unittest-storage/results/ | ||
SESSION_ID: 7f0f3e44-3f78-4c80-b0fa-bf1ac2bc11ff | ||
SHARD: 0 | ||
run: | | ||
set -eux | ||
# TODO: Get session id | ||
gsutil -d cp "${GCS_PATH}/${SESSION_ID}.zip" . | ||
unzip ${SESSION_ID}.zip -d unit-test-results/${SHARD}/ | ||
- name: Archive unit test report | ||
uses: actions/upload-artifact@v3 | ||
# TODO: Should only run for unit-tests | ||
|