-
Notifications
You must be signed in to change notification settings - Fork 124
87 lines (76 loc) · 2.49 KB
/
veristat-meta.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
77
78
79
80
81
82
83
84
85
86
name: veristat_meta
on:
workflow_call:
inputs:
arch:
required: true
type: string
description: The architecture to build against, e.g x86_64, aarch64, s390x...
toolchain:
required: true
type: string
description: The toolchain, e.g gcc, llvm
runs_on:
required: true
type: string
description: The runners to run the test on. This is a json string representing an array of labels.
aws_region:
required: true
type: string
description: The AWS region where we pull bpf objects to run against veristat.
secrets:
AWS_ROLE_ARN:
required: true
description: The AWS role used by GH to pull BPF objects from AWS.
jobs:
veristat:
name: ${{ inputs.arch }}-${{ inputs.toolchain }} veristat_meta
runs-on: ${{ fromJSON(inputs.runs_on) }}
timeout-minutes: 100
permissions:
id-token: write
contents: read
env:
KERNEL: LATEST
REPO_ROOT: ${{ github.workspace }}
REPO_PATH: ""
KBUILD_OUTPUT: kbuild-output/
ARCH_AND_TOOL: ${{ inputs.arch }}-${{ inputs.toolchain }}
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: |
.github
ci
- uses: actions/download-artifact@v4
with:
name: vmlinux-${{ env.ARCH_AND_TOOL }}
path: .
- name: Untar artifacts
run: zstd -d -T0 vmlinux-${{ env.ARCH_AND_TOOL }}.tar.zst --stdout | tar -xf -
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: ${{ inputs.aws_region }}
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
role-session-name: github-action-bpf-ci
- name: Download BPF objects
run: |
mkdir ./bpf_objects
aws s3 sync s3://veristat-bpf-binaries ./bpf_objects
env:
AWS_ROLE_ARN: ${{ secrets.AWS_ROLE_ARN }}
- name: Run veristat
uses: libbpf/ci/run-vmtest@v2
with:
arch: x86_64
vmlinuz: '${{ github.workspace }}/vmlinuz'
kernel-root: '.'
max-cpu: 8
kernel-test: 'run_veristat_meta'
output-dir: '${{ github.workspace }}'
- name: Compare and save veristat.meta.csv
uses: ./.github/actions/veristat_baseline_compare
with:
veristat_output: veristat-meta
baseline_name: ${{ env.ARCH_AND_TOOL}}-baseline-veristat-meta