6 Commits

Author SHA1 Message Date
9ff0ee0329 test fixes
Some checks failed
Gentoo Utils / build-oci-image (push) Successful in 7s
Gentoo Utils / check-format (push) Successful in 7s
Gentoo Utils / docs (push) Successful in 12s
Gentoo Utils / build (push) Successful in 19s
Gentoo Utils / test (push) Successful in 28s
Gentoo Utils / fuzz (push) Has been cancelled
2025-12-13 21:22:53 -06:00
30ec6dad99 test fixes 2025-12-13 21:22:53 -06:00
5fe3919bc6 ci: fuzz: add timeout 2025-12-13 21:22:53 -06:00
2b48fbf3cb scripts: fuzzer: add fork count 2025-12-13 21:22:53 -06:00
91b5ddaad2 ci: build: remove debugging echos
ci: build: remove redundant source
2025-12-13 21:22:53 -06:00
925ff03057 ci: add fuzzer job 2025-12-13 21:22:53 -06:00
2 changed files with 31 additions and 5 deletions

View File

@@ -9,7 +9,6 @@ defaults:
jobs:
build-oci-image:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Restore git cache
uses: actions/cache@v4
@@ -98,10 +97,6 @@ jobs:
- name: build and check
run: |
echo $USER
echo "CC=$CC"
echo "CXX=$CXX"
source /etc/profile
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized -Ddocs=enabled build
meson compile -C build
@@ -125,6 +120,36 @@ jobs:
meson compile -C build
ninja test -C build
fuzz:
runs-on: brutalisk
timeout: 1m
env:
CC: 'clang'
CXX: 'clang++'
needs: [build-oci-image, build]
container:
image: ${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ needs.build-oci-image.outputs.image_tag }}
steps:
- name: Checkout repo
uses: actions/checkout@v5
# FIXME: Get rid of this step when portage has fixes merged?
# needed because portage has fixes upstream we need that arent stable yet
- name: Checkout tip of portage
run: |
git clone https://github.com/gentoo/portage.git
cd portage
python -m venv && ./venv/bin/pip install -e .
source ./venv/bin/activate
which emerge
- name: build and fuzz
run: |
which emerge
meson setup -Dfuzz=enabled -Dtests=enabled -Dbuildtype=debugoptimized build
meson compile atom_parser_fuzzer:alias -C build
./scripts/fuzz.sh
check-format:
runs-on: brutalisk
needs: [build-oci-image]

View File

@@ -11,4 +11,5 @@ ${PROJECT_DIR}/scripts/atom.py <${in} >${out} \
| ${PROJECT_DIR}/build/fuzz/atom/parser/fuzzer >${in} <${out} \
${PROJECT_DIR}/build/atom_parser_fuzzer_corpus \
-only_ascii=1 \
-fork=$(($(nproc) / 2))
"$@"