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 8f9dbcd commit 300bbf5
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions perfmetrics/scripts/presubmit_test/pr_perf_test/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ git fetch origin -q
function execute_perf_test() {
mkdir -p gcs
echo "running perf tests with trace logs"
GCSFUSE_FLAGS="--implicit-dirs --max-conns-per-host 100 --config-file=/tmp/gcsfuse_config.yaml"
GCSFUSE_FLAGS="--foreground --implicit-dirs --max-conns-per-host 100 --config-file=/tmp/gcsfuse_config.yaml"
BUCKET_NAME=presubmit-perf-tests
MOUNT_POINT=gcs
# The VM will itself exit if the gcsfuse mount fails.
Expand Down Expand Up @@ -91,34 +91,38 @@ 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
file-path:
format: text
severity: trace
" > /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 "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
mkdir /tmp/gcsfuse_integration_test_logs
rm -r /tmp/gcsfuse_integration_test_logs
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 300bbf5

Please sign in to comment.