Skip to content

Commit 297aa3c

Browse files
committed
[gitpython]: Move tests and configuration upstream
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
1 parent ed0d9c7 commit 297aa3c

File tree

5 files changed

+15
-120
lines changed

5 files changed

+15
-120
lines changed

projects/gitpython/Dockerfile

+4-4
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");
@@ -13,8 +12,9 @@
1312
# See the License for the specific language governing permissions and
1413
# limitations under the License.
1514
FROM gcr.io/oss-fuzz-base/base-builder-python
16-
RUN git clone https://github.com/gitpython-developers/gitpython gitpython \
17-
&& python3 -m pip install --upgrade pip;
15+
RUN git clone https://github.com/gitpython-developers/gitpython gitpython;
16+
RUN chmod +x $SRC/gitpython/fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh && \
17+
$SRC/gitpython/fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh;
1818

19-
COPY *.sh *py $SRC/
19+
COPY *.sh $SRC/
2020
WORKDIR $SRC/gitpython

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-
python3 -m pip 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"

projects/gitpython/fuzz_config.py

-45
This file was deleted.

projects/gitpython/fuzz_tree.py

-58
This file was deleted.

projects/gitpython/project.yaml

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
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
12+
- undefined

0 commit comments

Comments
 (0)