Repository navigation
77 lines (68 loc) · 2.5 KB
/
Copy pathdiffuzz.yml
File metadata and controls
77 lines (68 loc) · 2.5 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
77
name: Diff-Fuzz (Go native vs WASM oracle)
# Differential-fuzz harness: the native Go port at go-native/ressrf/
# against the Rust ressrf-core compiled to WASM (the same artifact the
# wazero binding embeds at go/ressrf/core.wasm). Catches parser drift
# the conformance vectors cannot see.
#
# Triggered on:
# - changes to either side of the parser comparison: native engine,
# wazero binding's WASM artifact, Rust core, or wasm-ABI crate
# - weekly Monday 04:00 UTC (one hour after the cargo-fuzz job)
# - manual workflow_dispatch
#
# Divergence findings fail the job: a fresh parser divergence
# blocks the merge that introduced it.
on:
schedule:
- cron: "0 4 * * 1"
workflow_dispatch:
pull_request:
paths:
- "go-native/ressrf/policy.go"
- "go-native/ressrf/errors.go"
- "go-native/ressrf/deny_reasons.go"
- "go-native/ressrf/internal/engine/**"
- "go-native/ressrf/internal/diff/**"
- "go-native/ressrf/go.mod"
- "go/ressrf/core.wasm"
- "crates/ressrf-core/**"
- "crates/ressrf-wasm/**"
permissions: {}
concurrency:
group: diffuzz-${{ github.ref }}
cancel-in-progress: true
jobs:
diffuzz:
name: Native Go vs WASM oracle
runs-on: ubuntu-latest
permissions:
contents: read
env:
# Fail the job loudly if the WASM oracle is missing rather than
# silently passing with every subtest SKIPped. See diff_fuzz_test.go.
RESSRF_REQUIRE_WASM: "1"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go-native/ressrf/go.mod
cache-dependency-path: go-native/ressrf/go.sum
# Oracle is the in-tree go/ressrf/core.wasm artifact — no
# /tmp/ressrf clone, no cargo step, no Rust toolchain install.
- name: Replay persisted divergence corpus
working-directory: go-native/ressrf
run: make fuzz-rust-regress
- name: Live fuzz against the WASM oracle
working-directory: go-native/ressrf
env:
FUZZ_RUST_DURATION: "5m"
run: make fuzz-rust
- name: Upload divergence corpus
if: failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: diffuzz-divergences
path: go-native/ressrf/internal/diff/testdata/fuzz/FuzzPolicyDiff/
retention-days: 30