Skip to content

Commit

Permalink
Remove branch name env variable in periodic e2e tests (#1595)
Browse files Browse the repository at this point in the history
* remove branch name env variable

* adding git checkout commitId
  • Loading branch information
Tulsishah committed Jan 9, 2024
1 parent 15f6bbd commit 4ed0b75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
Expand Up @@ -22,11 +22,11 @@ readonly RUN_E2E_TESTS_ON_INSTALLED_PACKAGE=true
cd "${KOKORO_ARTIFACTS_DIR}/github/gcsfuse"
echo "Building and installing gcsfuse..."
# Get the latest commitId of yesterday in the log file. Build gcsfuse and run
commitId=$(git log origin/$BRANCH_NAME --before='yesterday 23:59:59' --max-count=1 --pretty=%H)
commitId=$(git log --before='yesterday 23:59:59' --max-count=1 --pretty=%H)
./perfmetrics/scripts/build_and_install_gcsfuse.sh $commitId

# To execute tests for a specific branch, ensure you've checked out from that branch first.
git checkout origin/$BRANCH_NAME
# To execute tests for a specific commitId, ensure you've checked out from that commitId first.
git checkout $commitId

echo "Running e2e tests on installed package...."
# $1 argument is refering to value of testInstalledPackage
Expand Down
Expand Up @@ -12,11 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

env_vars {
key: "BRANCH_NAME"
value: "master"
}

action {
define_artifacts {
regex: "gcsfuse-failed-integration-test-logs-*"
Expand Down
Expand Up @@ -12,11 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

env_vars {
key: "BRANCH_NAME"
value: "read_cache_release"
}

action {
define_artifacts {
regex: "gcsfuse-failed-integration-test-logs-*"
Expand Down

0 comments on commit 4ed0b75

Please sign in to comment.