Skip to content

Commit

Permalink
chore(tests): update python version used for environment tests (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche committed Sep 3, 2022
1 parent ed737cd commit ac85f4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions .kokoro/environment_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@ gcloud config set compute/zone us-central1-b
# authenticate docker
gcloud auth configure-docker -q

# Remove old nox
python3.6 -m pip uninstall --yes --quiet nox-automation

# Install nox
python3.6 -m pip install --upgrade --quiet nox
python3.6 -m nox --version
virtualenv .venv
source .venv/bin/activate
python3 -m pip install --upgrade --quiet nox
python3 -m nox --version

# Install kubectl
if [[ "${ENVIRONMENT}" == "kubernetes" ]]; then
Expand All @@ -73,7 +72,7 @@ echo $ENVCTL_ID
# Run the specified environment test
set +e

python3.6 -m nox --session "tests(language='python', platform='$ENVIRONMENT')"
python3 -m nox --session "tests(language='python', platform='$ENVIRONMENT')"
TEST_STATUS_CODE=$?

# destroy resources
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/performance/test_performance.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def test_client_init_performance(self, time_limit=0.25):
total_time = self._print_results(pr, results, time_limit, "Client Init")
self.assertLessEqual(total_time, time_limit)

def test_structured_logging_performance(self, time_limit=10):
def test_structured_logging_performance(self, time_limit=12):
"""
Test the performance of StructuredLoggingHandler
Expand Down Expand Up @@ -278,7 +278,7 @@ def profiled_code(logger, payload, num_logs=100, flush=False):
total_time = self._print_results(pr, results, time_limit, "CloudLoggingHandler")
self.assertLessEqual(total_time, time_limit)

def test_logging_performance(self, time_limit=15):
def test_logging_performance(self, time_limit=20):
"""
Test the performance of logger
Expand Down Expand Up @@ -312,7 +312,7 @@ def profiled_code(logger, payload, num_logs=100):
total_time = self._print_results(pr, results, time_limit, "Logger.Log")
self.assertLessEqual(total_time, time_limit)

def test_batch_performance(self, time_limit=10):
def test_batch_performance(self, time_limit=12):
"""
Test the performance of logger
Expand Down

0 comments on commit ac85f4f

Please sign in to comment.