Skip to content

Commit a7effa0

Browse files
committed
fix(ci): explicitly skip sqlalchemy-bigquery on python 3.15+ in profiler script
1 parent edc0423 commit a7effa0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

scripts/import_profiler/profiler.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ def _format_stats(title, data, p50, p90, p99, fmt):
156156

157157
def run_master(iterations, target_module, cpu=0, csv_path=None, clear_cache=True, fail_threshold=None, diff_baseline=None, diff_threshold=None):
158158
"""Orchestrates the benchmark."""
159+
# Skip packages/sqlalchemy-bigquery because python_requires restricts to < 3.15
160+
# TODO: Re-enable once Python 3.15 is supported (see issue #17786)
161+
if (target_module == "sqlalchemy.bigquery" or target_module == "sqlalchemy_bigquery") and sys.version_info >= (3, 15):
162+
print(f"\nWARNING: Skipping {target_module} import profiling: python_requires limits support to < 3.15 (see issue #17786)")
163+
print("\nSession import_profiler was successful.")
164+
sys.exit(0)
165+
159166
if iterations < 1:
160167
raise ValueError("Number of iterations must be at least 1.")
161168
times, memories, rss_memories = [], [], []

0 commit comments

Comments
 (0)