-
Notifications
You must be signed in to change notification settings - Fork 4.8k
76 lines (70 loc) · 2.11 KB
/
_check_coverage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Check/coverage
permissions:
contents: read
on:
workflow_call:
secrets:
gcs-cache-key:
required: true
gcp-key:
required: true
inputs:
gcs-cache-bucket:
type: string
required: true
request:
type: string
required: true
trusted:
type: boolean
required: true
concurrency:
group: ${{ github.head_ref || github.run_id }}-${{ github.workflow }}-coverage
cancel-in-progress: true
jobs:
coverage:
secrets:
gcs-cache-key: ${{ secrets.gcs-cache-key }}
gcp-key: ${{ secrets.gcp-key }}
permissions:
contents: read
packages: read
uses: ./.github/workflows/_run.yml
name: ${{ matrix.name ||matrix.target }}
with:
# bazel-extra: '--config=remote-envoy-engflow'
cache-build-image: ${{ fromJSON(inputs.request).request.build-image.default }}
concurrency-suffix: -${{ matrix.target }}
error-match: |
ERROR
error:
Error:
lower than limit
gcs-cache-bucket: ${{ inputs.gcs-cache-bucket }}
rbe: true
rbe-google: true
request: ${{ inputs.request }}
runs-on: ${{ fromJSON(inputs.request).config.ci.agent-ubuntu }}
steps-post: |
- uses: envoyproxy/toolshed/gh-actions/gcs/artefact/[email protected]
with:
bucket: ${{ inputs.trusted && vars.GCS_ARTIFACT_BUCKET_POST || vars.GCS_ARTIFACT_BUCKET_PRE }}
path: generated/${{ matrix.target }}
path-upload: ${{ matrix.target }}
sha: ${{ fromJSON(inputs.request).request.sha }}
redirect: >-
${{ vars.GCS_ARTIFACT_PREFIX
&& format('{0}-', vars.GCS_ARTIFACT_PREFIX)
}}${{ fromJSON(inputs.request).request.pr
|| fromJSON(inputs.request).request.target-branch }}
target: ${{ matrix.target }}
timeout-minutes: 180
trusted: ${{ inputs.trusted }}
strategy:
fail-fast: false
matrix:
include:
- target: coverage
name: Coverage
- target: fuzz_coverage
name: Fuzz coverage