From c80be192e20d8b3d7d94be3722e43ceaf99d5bf1 Mon Sep 17 00:00:00 2001 From: Preston Vasquez Date: Mon, 16 Sep 2024 12:21:53 -0600 Subject: [PATCH 1/4] Fix leading slash exit in fuzz test --- .evergreen/run-fuzz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.evergreen/run-fuzz.sh b/.evergreen/run-fuzz.sh index 3538da7f34..6163cd6e5f 100755 --- a/.evergreen/run-fuzz.sh +++ b/.evergreen/run-fuzz.sh @@ -63,7 +63,7 @@ done # If the fuzz directory exists, then tar it up in preparation to upload to S3. if [ -d $PROJECT_DIRECTORY/fuzz ]; then echo "Tarring up fuzz directory" - tar -czf $PROJECT_DIRECTORY/fuzz.tgz $PROJECT_DIRECTORY/fuzz + tar -czf $PROJECT_DIRECTORY/fuzz.tgz --absolute-names $PROJECT_DIRECTORY/fuzz # Exit with code 1 to indicate that errors occurred in fuzz tests, resulting in corpus files being generated. # This will trigger a notification to be sent to the Go Driver team. From fd8cdbd8b3e3761decd49bc97df6f3030b836eb9 Mon Sep 17 00:00:00 2001 From: Preston Vasquez Date: Mon, 16 Sep 2024 19:12:40 -0600 Subject: [PATCH 2/4] Change directory before tarring --- .evergreen/run-fuzz.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.evergreen/run-fuzz.sh b/.evergreen/run-fuzz.sh index 6163cd6e5f..09738e893a 100755 --- a/.evergreen/run-fuzz.sh +++ b/.evergreen/run-fuzz.sh @@ -63,7 +63,9 @@ done # If the fuzz directory exists, then tar it up in preparation to upload to S3. if [ -d $PROJECT_DIRECTORY/fuzz ]; then echo "Tarring up fuzz directory" - tar -czf $PROJECT_DIRECTORY/fuzz.tgz --absolute-names $PROJECT_DIRECTORY/fuzz + + cd $PROJECT_DIRECTORY + tar -cfz fuzz.tgz ./fuzz # Exit with code 1 to indicate that errors occurred in fuzz tests, resulting in corpus files being generated. # This will trigger a notification to be sent to the Go Driver team. From 36d6cb5503ff9ee15f851db25a5108bc11dd03fd Mon Sep 17 00:00:00 2001 From: Preston Vasquez Date: Mon, 16 Sep 2024 19:17:22 -0600 Subject: [PATCH 3/4] Fix indentation --- .evergreen/run-fuzz.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.evergreen/run-fuzz.sh b/.evergreen/run-fuzz.sh index 09738e893a..cd727855b6 100755 --- a/.evergreen/run-fuzz.sh +++ b/.evergreen/run-fuzz.sh @@ -64,8 +64,8 @@ done if [ -d $PROJECT_DIRECTORY/fuzz ]; then echo "Tarring up fuzz directory" - cd $PROJECT_DIRECTORY - tar -cfz fuzz.tgz ./fuzz + cd $PROJECT_DIRECTORY + tar -cfz fuzz.tgz ./fuzz # Exit with code 1 to indicate that errors occurred in fuzz tests, resulting in corpus files being generated. # This will trigger a notification to be sent to the Go Driver team. From b7c4223bbeca3f0644c059451199ccaeb36ccfbb Mon Sep 17 00:00:00 2001 From: Preston Vasquez Date: Mon, 16 Sep 2024 21:14:40 -0600 Subject: [PATCH 4/4] Update .evergreen/run-fuzz.sh Co-authored-by: Steven Silvester --- .evergreen/run-fuzz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.evergreen/run-fuzz.sh b/.evergreen/run-fuzz.sh index cd727855b6..bb914d9027 100755 --- a/.evergreen/run-fuzz.sh +++ b/.evergreen/run-fuzz.sh @@ -65,7 +65,7 @@ if [ -d $PROJECT_DIRECTORY/fuzz ]; then echo "Tarring up fuzz directory" cd $PROJECT_DIRECTORY - tar -cfz fuzz.tgz ./fuzz + tar cfz fuzz.tgz ./fuzz # Exit with code 1 to indicate that errors occurred in fuzz tests, resulting in corpus files being generated. # This will trigger a notification to be sent to the Go Driver team.