Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
f9465db8
Commit
f9465db8
authored
11 months ago
by
Egor Ivkov
Committed by
Dmitry Ivanov
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
test/fuzz: generate fuzzing coverage report in ci
NO_DOC=internal NO_TEST=internal NO_CHANGELOG=internal
parent
bb7e0f94
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+27
-1
27 additions, 1 deletion
.gitlab-ci.yml
with
27 additions
and
1 deletion
.gitlab-ci.yml
+
27
−
1
View file @
f9465db8
...
...
@@ -72,6 +72,7 @@ coverage:
-
export PATH="$PATH:$PWD"
# for GLAuth (CMake will download it)
-
make -f .test.mk test-coverage
# TODO: move out shared setup for fuzzing jobs
# Check that fuzzing works
fuzz-check-build
:
extends
:
.test
...
...
@@ -84,10 +85,35 @@ fuzz-check-build:
# Checkout a fixed oss-fuzz commit to guarantee reproducible builds
-
git fetch --depth=1 origin e8e124996508f1e4ffe566896638c7213ab440d5
-
git checkout e8e124996508f1e4ffe566896638c7213ab440d5
-
python3 infra/helper.py build_image --no-pull --external ..
-
python3 infra/helper.py build_fuzzers --external .. --sanitizer=address
-
python3 infra/helper.py check_build --external .. --sanitizer=address
# Generate coverage report
fuzz-coverage
:
extends
:
.test
tags
:
[
shell_p_t
]
when
:
manual
script
:
# Clone oss-fuzz instead of adding it as a submodule
# as we don't want it to be checked by static analyzers - it's used only for fuzzing
-
git clone --depth=1 https://github.com/google/oss-fuzz.git
-
cd oss-fuzz
# Checkout a fixed oss-fuzz commit to guarantee reproducible builds
-
git fetch --depth=1 origin e8e124996508f1e4ffe566896638c7213ab440d5
-
git checkout e8e124996508f1e4ffe566896638c7213ab440d5
-
python3 infra/helper.py build_fuzzers --external .. --sanitizer=coverage
# `coverage` command requires corpus folders to be located in
# `oss-fuzz/build/corpus/{project_name}`
# TODO: find out why they are not located there by default
-
mkdir -p build/corpus/tarantool
-
cp -r ../test/static/corpus/* build/corpus/tarantool
# add `_fuzzer` postfix to corpus folders
-
(cd build/corpus/tarantool && for i in *; do mv "$i" "${i%.}_fuzzer"; done)
-
python3 infra/helper.py coverage --no-serve --external ..
artifacts
:
paths
:
-
oss-fuzz/build/out/tarantool/report
# Run fuzzers until they satisfy stop criterias
# XXX: Just a stub for now, it probably needs a custom runner
# and support for running several fuzzers
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment