-
Notifications
You must be signed in to change notification settings - Fork 201
40 lines (33 loc) · 1.09 KB
/
config-fuzzing.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
name: Configuration fuzzing
# This action will compile netplan with ASAN (address sanitizer),
# generate random netplan YAML and call netplan generate against each
# one of them.
# The job will fail if issues are detected.
on:
push:
branches: [ main ]
paths-ignore:
- 'doc/**'
pull_request:
branches: [ '**' ]
paths-ignore:
- 'doc/**'
jobs:
config-fuzzer:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- name: Install build depends
run: |
echo "APT::Get::Always-Include-Phased-Updates \"true\";" | sudo tee /etc/apt/apt.conf.d/90phased-updates
sudo apt update
sudo apt -y install curl expect ubuntu-dev-tools devscripts equivs
sudo snap install node --classic
pull-lp-source netplan.io
# Workaround for https://bugs.launchpad.net/bugs/2048768
sudo sysctl vm.mmap_rnd_bits=28
mk-build-deps -i -B -s sudo netplan.io-*/debian/control
- name: Fuzzer Runner
run: |
cd tests/config_fuzzer
unbuffer bash runner.sh ../../ 1000