Skip to content

Commit

Permalink
Merge branch 'feature/atree-inlining-cadence-v1.0' into janez/migrati…
Browse files Browse the repository at this point in the history
…on-mainnet-add-keys-to-core-contracts
  • Loading branch information
janezpodhostnik committed Jul 8, 2024
2 parents 606745e + e3b8f92 commit 710bd3d
Show file tree
Hide file tree
Showing 60 changed files with 2,425 additions and 315 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/actions/test-monitor-process-results/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ 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'
service_account:
description: 'The GCP Service Account'
required: true
workload_identity_provider:
description: 'The GCP Workload Identity Provider'
required: true

runs:
Expand All @@ -14,20 +17,30 @@ runs:
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

- name: Google auth
id: auth
uses: google-github-actions/auth@v2
with:
service_account_key: ${{ inputs.gcp_sa_key }}
service_account: ${{ inputs.service_account }}
token_format: 'access_token'
workload_identity_provider: ${{ inputs.workload_identity_provider }}

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'

- name: Upload results to BigQuery (skipped tests)
uses: nick-fields/retry@v2
with:
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/flaky-test-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@ on:
push:
paths:
- '.github/workflows/flaky-test-monitor.yml'
permissions:
id-token: write
contents: read

env:
BIGQUERY_DATASET: production_src_flow_test_metrics
BIGQUERY_DATASET: dev_src_flow_test_metrics
BIGQUERY_TABLE: skipped_tests
BIGQUERY_TABLE2: test_results
GO_VERSION: "1.22"
Expand Down Expand Up @@ -73,7 +76,8 @@ jobs:
TEST_CATEGORY: unit
uses: ./.github/workflows/actions/test-monitor-process-results
with:
gcp_sa_key: ${{ secrets.GCP_SA_KEY }}
service_account: ${{ secrets.FLAKY_TEST_SERVICE_ACCOUNT }}
workload_identity_provider: ${{ secrets.FLAKY_TEST_WORKLOAD_IDENTITY_PROVIDER }}

unit-test-modules:
name: Unit Tests (Modules)
Expand Down Expand Up @@ -115,7 +119,8 @@ jobs:
TEST_CATEGORY: ${{ matrix.test_category }}
uses: ./.github/workflows/actions/test-monitor-process-results
with:
gcp_sa_key: ${{ secrets.GCP_SA_KEY }}
service_account: ${{ secrets.FLAKY_TEST_SERVICE_ACCOUNT }}
workload_identity_provider: ${{ secrets.FLAKY_TEST_WORKLOAD_IDENTITY_PROVIDER }}

integration-test:
name: Integration Tests
Expand Down Expand Up @@ -175,4 +180,6 @@ jobs:
TEST_CATEGORY: ${{ matrix.test_category }}
uses: ./.github/workflows/actions/test-monitor-process-results
with:
gcp_sa_key: ${{ secrets.GCP_SA_KEY }}
service_account: ${{ secrets.FLAKY_TEST_SERVICE_ACCOUNT }}
workload_identity_provider: ${{ secrets.FLAKY_TEST_WORKLOAD_IDENTITY_PROVIDER }}

Loading

0 comments on commit 710bd3d

Please sign in to comment.