Skip to content

Commit

Permalink
[gitpython]: Move Fuzz Tests & Configuration Upstream (#11803)
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
DaveLak committed Apr 18, 2024
1 parent 52dce5e commit 90f2481
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 118 deletions.
5 changes: 3 additions & 2 deletions projects/gitpython/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/python3
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,5 +13,7 @@
# limitations under the License.
FROM gcr.io/oss-fuzz-base/base-builder-python
RUN git clone https://github.com/gitpython-developers/gitpython gitpython
COPY *.sh *py $SRC/
RUN $SRC/gitpython/fuzzing/oss-fuzz-scripts/container-environment-bootstrap.sh

COPY *.sh $SRC/
WORKDIR $SRC/gitpython
6 changes: 1 addition & 5 deletions projects/gitpython/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,5 @@
# limitations under the License.
#
################################################################################
pip3 install .

# Build fuzzers in $OUT.
for fuzzer in $(find $SRC -name 'fuzz_*.py'); do
compile_python_fuzzer $fuzzer
done
. "$SRC/gitpython/fuzzing/oss-fuzz-scripts/build.sh"
45 changes: 0 additions & 45 deletions projects/gitpython/fuzz_config.py

This file was deleted.

58 changes: 0 additions & 58 deletions projects/gitpython/fuzz_tree.py

This file was deleted.

17 changes: 9 additions & 8 deletions projects/gitpython/project.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
fuzzing_engines:
- libfuzzer
homepage: https://github.com/gitpython-developers/gitpython
homepage: "https://github.com/gitpython-developers/gitpython"
language: python
main_repo: https://github.com/gitpython-developers/gitpython
primary_contact: "byronimo@gmail.com"
auto_ccs:
- "david.js.lakin@gmail.com"
- "eliah.kagan@gmail.com"
main_repo: "https://github.com/gitpython-developers/gitpython"
fuzzing_engines:
- libfuzzer
sanitizers:
- address
- undefined
vendor_ccs:
- david@adalogics.com
- address

0 comments on commit 90f2481

Please sign in to comment.