-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into leo/adjust-metrics-buckets
- Loading branch information
Showing
609 changed files
with
28,099 additions
and
14,440 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
.github/workflows/actions/test-monitor-process-results/action.yml
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Test Monitor - Process Results | ||
|
||
description: Custom action that's used in multiple Flaky Test Monitor jobs to process test results and upload them to BigQuery | ||
|
||
inputs: | ||
gcp_sa_key: | ||
description: 'The GCP service account key for uploading to BigQuery' | ||
required: true | ||
|
||
runs: | ||
using : "composite" | ||
steps: | ||
- name: Get commit date | ||
id: commit_date | ||
run: echo "::set-output name=date::$(git show --no-patch --no-notes --pretty='%cI' $COMMIT_SHA)" | ||
shell: bash | ||
- name: Get job run date | ||
id: job_run_date | ||
run: echo "::set-output name=date::$(TZ=":UTC" date -Iseconds)" | ||
shell: bash | ||
- name: Process test results | ||
run: cat test-output | go run tools/test_monitor/level1/process_summary1_results.go | ||
env: | ||
JOB_STARTED: ${{ steps.job_run_date.outputs.date }} | ||
COMMIT_DATE: ${{ steps.commit_date.outputs.date }} | ||
shell: bash | ||
- name: Set up Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v0 | ||
with: | ||
service_account_key: ${{ inputs.gcp_sa_key }} | ||
- name: Upload results to BigQuery (skipped tests) | ||
uses: nick-fields/retry@v2 | ||
with: | ||
timeout_minutes: 1 | ||
max_attempts: 3 | ||
command: bq load --source_format=NEWLINE_DELIMITED_JSON $BIGQUERY_DATASET.$BIGQUERY_TABLE $SKIPPED_TESTS_FILE tools/test_monitor/schemas/skipped_tests_schema.json | ||
- name: Upload results to BigQuery (test run) | ||
uses: nick-fields/retry@v2 | ||
with: | ||
timeout_minutes: 2 | ||
max_attempts: 3 | ||
command: bq load --source_format=NEWLINE_DELIMITED_JSON $BIGQUERY_DATASET.$BIGQUERY_TABLE2 $RESULTS_FILE tools/test_monitor/schemas/test_results_schema.json |
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
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 |
---|---|---|
|
@@ -51,6 +51,9 @@ jobs: | |
outputs: | ||
matrix: ${{ steps.generate.outputs.matrix }} | ||
steps: | ||
- name: Print all input variables | ||
run: echo '${{ toJson(inputs) }}' | jq | ||
|
||
- id: generate | ||
run: | | ||
roles=() | ||
|
@@ -74,6 +77,7 @@ jobs: | |
fi | ||
rolesJSON=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${roles[@]}") | ||
echo "matrix={\"role\":$(echo $rolesJSON)}" >> $GITHUB_OUTPUT | ||
docker-push: | ||
name: ${{ matrix.role }} images | ||
runs-on: ubuntu-latest | ||
|
@@ -89,10 +93,12 @@ jobs: | |
uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.19' | ||
|
||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ inputs.tag }} | ||
|
||
# Provide Google Service Account credentials to Github Action, allowing interaction with the Google Container Registry | ||
# Logging in as [email protected] | ||
- name: Docker login | ||
|
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.