Skip to content

Commit b80d24d

Browse files
authored
fix: add opentelemetry version (#322)
* chore: auto-release * feat:enable instance-level connection * lint * fix: opentelemetry version * changes * changes * changes
1 parent a4e8513 commit b80d24d

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.kokoro/presubmit/compliance.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Only run this nox session.
44
env_vars: {
55
key: "NOX_SESSION"
6-
value: "compliance_test_13"
6+
value: "compliance_test_20"
77
}

create_test_database.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def create_test_instance():
7070
configs = list(CLIENT.list_instance_configs())
7171
if not USE_EMULATOR:
7272
# Filter out non "us" locations
73-
configs = [config for config in configs if "us-west1" in config.name]
73+
configs = [config for config in configs if "asia-southeast1" in config.name]
7474

7575
instance_config = configs[0].name
7676
create_time = str(int(time.time()))

noxfile.py

+5
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ def compliance_test_14(session):
212212
def compliance_test_20(session):
213213
"""Run SQLAlchemy dialect compliance test suite."""
214214

215+
# Check the value of `RUN_COMPLIANCE_TESTS` env var. It defaults to true.
216+
if os.environ.get("RUN_COMPLIANCE_TESTS", "true") == "false":
217+
session.skip("RUN_COMPLIANCE_TESTS is set to false, skipping")
218+
215219
# Sanity check: Only run tests if the environment variable is set.
216220
if not os.environ.get("GOOGLE_APPLICATION_CREDENTIALS", "") and not os.environ.get(
217221
"SPANNER_EMULATOR_HOST", ""
@@ -228,6 +232,7 @@ def compliance_test_20(session):
228232

229233
session.install("mock")
230234
session.install("-e", ".[tracing]")
235+
session.run("pip", "install", "opentelemetry-api<=1.10", "--force-reinstall")
231236
session.run("python", "create_test_database.py")
232237

233238
session.install("sqlalchemy>=2.0")

0 commit comments

Comments
 (0)