Skip to content

Commit

Permalink
temp commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmeenkaur committed Nov 23, 2023
1 parent d95ad8e commit 22b2886
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions perfmetrics/scripts/presubmit_test/pr_perf_test/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function execute_perf_test() {
go run . $GCSFUSE_FLAGS $BUCKET_NAME $MOUNT_POINT
# Running FIO test
chmod +x perfmetrics/scripts/presubmit/run_load_test_on_presubmit.sh
./perfmetrics/scripts/presubmit/run_load_test_on_presubmit.sh
# ./perfmetrics/scripts/presubmit/run_load_test_on_presubmit.sh
sudo umount gcs
}

Expand Down Expand Up @@ -91,29 +91,35 @@ if [[ "$perfTestStr" == *"$EXECUTE_PERF_TEST_LABEL"* ]];
then
# Executing perf tests for master branch
install_requirements
git reset --hard
git checkout master
# Store results
touch result.txt
echo Mounting gcs bucket for master branch and execute tests
echo writing config file without log rotation
mkdir /tmp/gcsfuse_integration_test_logs
rm -r /tmp/gcsfuse_integration_test_logs
echo "logging:
file-path: /tmp/gcsfuse_integration_test_logs/log.txt
format: text
severity: trace
log-rotate:
max-file-size-mb: 1
file-count: 1
compress: true
" > /tmp/gcsfuse_config.yaml
git reset --hard
git checkout master
# Store results
touch result.txt
echo Mounting gcs bucket for master branch and execute tests
execute_perf_test


# Executing perf tests for PR branch
echo checkout PR branch
git reset --hard
git checkout pr/$KOKORO_GITHUB_PULL_REQUEST_NUMBER
echo writing config file with log rotation
echo "logging:
file-path: /tmp/gcsfuse_integration_test_logs/log.txt
format: text
severity: trace
log-rotate:
max-file-size-mb: 200
file-count: 10
compress: true
" > /tmp/gcsfuse_config.yaml
echo Mounting gcs bucket from pr branch and execute tests
execute_perf_test

Expand Down

0 comments on commit 22b2886

Please sign in to comment.