Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload also the realm file when the fuzzer fails #7700

Merged
merged 3 commits into from
May 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,10 @@ functions:
script: |-
if ls crash-*> /dev/null 2>&1; then
echo "Found crash file"
#Rename the crash file and the realm file.
#If there is a crash, this will signal that something needs to be uploaded.
mv crash-* realm-fuzzer-crash.txt
mv fuzz-realm.realm fuzzer_realm.realm
fi

- command: s3.put
Expand All @@ -443,14 +446,29 @@ functions:
bucket: mciuploads
permissions: public-read
content_type: text/plain
display_name: Fuzzer crash report
display_name: Crash input file
optional: true

- command: s3.put
params:
working_dir: realm-core/build/test/realm-fuzzer
aws_key: '${artifacts_aws_access_key}'
aws_secret: '${artifacts_aws_secret_key}'
local_file: 'realm-core/build/test/realm-fuzzer/fuzzer_realm.realm'
remote_file: '${project}/${branch_name}/${task_id}/${execution}/fuzzer_realm.realm'
bucket: mciuploads
permissions: public-read
content_type: application/x-binary
display_name: Realm File
optional: true

- command: shell.exec
params:
working_dir: realm-core/build/test/realm-fuzzer
script: |-
#remove the crash file and the realm produced by the fuzzer run
rm realm-fuzzer-crash.txt
rm fuzzer_realm.realm

"run hang analyzer":
- command: shell.exec
Expand Down
Loading