Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download unit test results from GCS #511

Merged
merged 2 commits into from
Aug 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading