Skip to content

Commit

Permalink
Download unit test results from GCS (#511)
Browse files Browse the repository at this point in the history
* Download unit test results from GCS

* Use self-hosted runner
  • Loading branch information
oxve authored Aug 2, 2023
1 parent b7e3b7f commit 9c2dacd
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9c2dacd

Please sign in to comment.