Repository navigation
76 lines (72 loc) · 3.01 KB
/
Copy pathrunner-conformance.yml
File metadata and controls
76 lines (72 loc) · 3.01 KB
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: runner-conformance
permissions:
contents: read
env:
CARGO_HOME: /home/runner/.cargo
RUSTUP_HOME: /home/runner/.rustup
on:
push:
branches: [main]
pull_request:
paths-ignore:
- "**.md"
schedule:
- cron: "0 3 * * 1"
workflow_dispatch:
jobs:
runner-light:
name: Runner light conformance
# Trusted contexts only (see server-conformance): fork PR code never
# executes on the self-hosted pool.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: self-hosted
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# Conformance goldens are LFS-tracked; without this they arrive
# as pointer stubs and every test that reads them fails.
lfs: true
persist-credentials: false
- name: Validate runner status responses
run: python3 benchmarks/real-world/runner-conformance.py --mode light
- name: Upload light report
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: runner-light-conformance
path: benchmarks/compatibility/runner/behavior/RUNNER-CONFORMANCE-REPORT.md
if-no-files-found: error
runner-deep:
name: Runner deep conformance on GitHub-hosted KVM
if: (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch') && vars.PRELOOP_CONFORMANCE_DEEP == '1'
runs-on: ubuntu-latest
timeout-minutes: 180
env:
GH_REPO: ${{ vars.RUNNER_CONFORMANCE_REPO || 'preloopdev/preloop-conformance' }}
GH_TOKEN: ${{ secrets.RUNNER_CONFORMANCE_TOKEN }}
PRELOOP_RUNNER_HOST: ${{ github.workspace }}/target/x86_64-unknown-linux-musl/release/preloop-runner
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# Same as the light job: the deep batch replays live runners, not the
# committed golden captures.
lfs: false
- name: Build current PR runner for smolVM
run: cargo zigbuild -p preloop-runner --release --target x86_64-unknown-linux-musl
- name: Run deep runner conformance
run: |
rm -f benchmarks/compatibility/runner/behavior/conformance-{preloop,official}.jsonl
bash ./benchmarks/real-world/batch-conformance.sh both '10[1-9]-*' '11[0-5]-*'
python3 benchmarks/real-world/runner-conformance.py --mode deep
- name: Upload deep report and captures
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: runner-deep-conformance
path: |
benchmarks/compatibility/runner/behavior/RUNNER-CONFORMANCE-REPORT.md
benchmarks/compatibility/runner/behavior/conformance-*.jsonl
benchmarks/compatibility/runner/behavior/vm-*.log
if-no-files-found: error