Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

chore(tests): update python version used for environment tests #620

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Sep 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions 11 .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
6 changes: 3 additions & 3 deletions 6 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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.