Skip to content

Commit

Permalink
Revert "git reset before checkout in scripts"
Browse files Browse the repository at this point in the history
This reverts commit 704056e.
This commit was temporary fix for allowing presubmit perf
tests to pass.
  • Loading branch information
gargnitingoogle committed Nov 1, 2023
1 parent d89ae3f commit 435acac
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions perfmetrics/scripts/presubmit_test/pr_perf_test/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ 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
Expand All @@ -97,7 +96,6 @@ then

# Executing perf tests for PR branch
echo checkout PR branch
git reset --hard
git checkout pr/$KOKORO_GITHUB_PULL_REQUEST_NUMBER
echo Mounting gcs bucket from pr branch and execute tests
execute_perf_test
Expand All @@ -111,7 +109,6 @@ fi
if [[ "$integrationTestsStr" == *"$EXECUTE_INTEGRATION_TEST_LABEL"* ]];
then
echo checkout PR branch
git reset --hard
git checkout pr/$KOKORO_GITHUB_PULL_REQUEST_NUMBER

echo "Running e2e tests...."
Expand Down

0 comments on commit 435acac

Please sign in to comment.