Skip to content

Commit 90f2481

Browse files
authored
[gitpython]: Move Fuzz Tests & Configuration Upstream (#11803)
Updates the gitpython project files to enable migrating and maintaining fuzz targets and build scripts upstream. Related PR in the upstream repo: gitpython-developers/GitPython#1901 `project.yaml` updates: - @Byron, the maintainer of GitPython, is added as the primary contact. - @EliahKagan and myself are added to the `auto_ccs` list as discussed with @Byron here: gitpython-developers/GitPython#1889 (comment) - @DavidKorczynski I removed what I believe is your email from the `vendor_ccs` because it looked like you were included as the default when no other contacts were listed. If this was a mistake on my part and you want to remain listed as a CC, please let me know and I'll correct it. Thanks!
1 parent 52dce5e commit 90f2481

File tree

5 files changed

+13
-118
lines changed

5 files changed

+13
-118
lines changed

Diff for: projects/gitpython/Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/python3
21
# Copyright 2023 Google LLC
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,5 +13,7 @@
1413
# limitations under the License.
1514
FROM gcr.io/oss-fuzz-base/base-builder-python
1615
RUN git clone https://github.com/gitpython-developers/gitpython gitpython
17-
COPY *.sh *py $SRC/
16+
RUN $SRC/gitpython/fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh
17+
18+
COPY *.sh $SRC/
1819
WORKDIR $SRC/gitpython

Diff for: projects/gitpython/build.sh

+1-5
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,5 @@
1414
# limitations under the License.
1515
#
1616
################################################################################
17-
pip3 install .
1817

19-
# Build fuzzers in $OUT.
20-
for fuzzer in $(find $SRC -name 'fuzz_*.py'); do
21-
compile_python_fuzzer $fuzzer
22-
done
18+
. "$SRC/gitpython/fuzzing/oss-fuzz-scripts/build.sh"

Diff for: projects/gitpython/fuzz_config.py

-45
This file was deleted.

Diff for: projects/gitpython/fuzz_tree.py

-58
This file was deleted.

Diff for: projects/gitpython/project.yaml

+9-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
fuzzing_engines:
2-
- libfuzzer
3-
homepage: https://github.com/gitpython-developers/gitpython
1+
homepage: "https://github.com/gitpython-developers/gitpython"
42
language: python
5-
main_repo: https://github.com/gitpython-developers/gitpython
3+
primary_contact: "[email protected]"
4+
auto_ccs:
5+
6+
7+
main_repo: "https://github.com/gitpython-developers/gitpython"
8+
fuzzing_engines:
9+
- libfuzzer
610
sanitizers:
7-
- address
8-
- undefined
9-
vendor_ccs:
10-
11+
- address

0 commit comments

Comments
 (0)