Skip to content

Commit

Permalink
Merge branch 'master' into kan/transition-to-merge-queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Kay-Zee authored Aug 11, 2023
2 parents 5ebdb11 + cc67154 commit 172c5b7
Show file tree
Hide file tree
Showing 18 changed files with 763 additions and 481 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/actions/test-monitor-process-results/action.yml
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
6 changes: 6 additions & 0 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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=()
Expand All @@ -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
Expand All @@ -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
Expand Down
225 changes: 0 additions & 225 deletions .github/workflows/flaky-test-debug.yml

This file was deleted.

Loading

0 comments on commit 172c5b7

Please sign in to comment.